Opened 8 years ago
Last modified 5 years ago
#3330 new enhancement
t.rast.to.rast3 error: Argument list too long
Reported by: | richardc | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 7.8.3 |
Component: | Temporal | Version: | 7.2.0 |
Keywords: | Cc: | ||
CPU: | x86-64 | Platform: | Linux |
Description
The following error is output from t.rast.to.rast3 when more than 5000 raster layers in a STRDS and used.
'AFAICT, the issue is not with the number of open files, but with a list of map names (arguments) that is too long for the run_command call that calls r.to.rast3. A solution to this could be to allow as input to r.to.rast3 a file with map names (such as for r.series).
You should create a bug report for this.
Moritz'
Error: t.rast.to.rast3 --overwrite --verbose input=capha_test_5@cahpa output=cahpa_test_5_3d Traceback (most recent call last):
File "/usr/local/grass-7.2.0/scripts/t.rast.to.rast3",
line 194, in <module>
main()
File "/usr/local/grass-7.2.0/scripts/t.rast.to.rast3",
line 152, in main
output=output, overwrite=grass.overwrite())
File
"/usr/local/grass-7.2.0/etc/python/grass/script/core.py", line 408, in run_command
ps = start_command(*args, kwargs)
File
"/usr/local/grass-7.2.0/etc/python/grass/script/core.py", line 377, in start_command
return Popen(args, popts)
File
"/usr/local/grass-7.2.0/etc/python/grass/script/core.py", line 74, in init
subprocess.Popen.init(self, args, kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in
init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in
_execute_child
raise child_exception
OSError: [Errno 7] Argument list too long (Fri Apr 7 17:30:33 2017) Command finished (2 sec)
System Info GRASS version: 7.2.0 GRASS SVN revision: exported Build date: 2017-04-07 Build platform: x86_64-pc-linux-gnu GDAL: 1.11.2 PROJ.4: 4.9.0 GEOS: 3.4.2 SQLite: 3.8.2 Python: 2.7.6 wxPython: 2.8.12.1 Platform: Linux-3.13.0-95-generic-x86_64-with-LinuxMint-17.1-rebecca More details here: http://osgeo-org.1560.x6.nabble.com/Temporal-framework-calculating-annual-5-day-extremes-td5316014.html#a5316295
Change History (11)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:5 by , 7 years ago
Milestone: | → 7.2.4 |
---|
comment:7 by , 6 years ago
Milestone: | 7.2.4 → 7.8.0 |
---|---|
Type: | defect → enhancement |
This is a OS limitation. However a workaround could be added, I guess. See also #2418
comment:11 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Here is the error log again (sorry for the formatting above):