Opened 7 years ago

Last modified 4 years ago

#3330 new enhancement

t.rast.to.rast3 error: Argument list too long

Reported by: richardc Owned by: grass-dev@…
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 richardc, 7 years ago

Here is the error log again (sorry for the formatting above):

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)    

comment:2 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:3 by neteler, 7 years ago

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:4 by martinl, 6 years ago

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:5 by martinl, 6 years ago

Milestone: 7.2.4

comment:6 by martinl, 5 years ago

Still relevant?

comment:7 by sbl, 5 years ago

Milestone: 7.2.47.8.0
Type: defectenhancement

This is a OS limitation. However a workaround could be added, I guess. See also #2418

comment:8 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:9 by neteler, 4 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:10 by neteler, 4 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:11 by neteler, 4 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.