Opened 2 years ago

Last modified 13 months ago

#3330 new defect

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

Reported by: richardc Owned by: grass-dev@…
Priority: major Milestone: 7.2.4
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 (5)

comment:1 Changed 2 years ago by richardc

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 Changed 2 years ago by martinl

Milestone: 7.2.17.2.2

comment:3 Changed 19 months ago by neteler

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:4 Changed 13 months ago by martinl

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:5 Changed 13 months ago by martinl

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