[GRASS-dev] [GRASS GIS] #2957: t.rast.what throw error while running on large number of maps

#2957: t.rast.what throw error while running on large number of maps
-----------------------------------+-------------------------
Reporter: spareeth | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Temporal | Version: svn-trunk
Keywords: temporal, t.rast.what | CPU: Unspecified
Platform: Linux |
-----------------------------------+-------------------------
The temporal module t.rast.what throw error when nprocs is not used, while
running on large number of maps (10,800 raster input in my case).
The error is:
{{{
Traceback (most recent call last):
   File "/usr/local/grass-7.1.svn/scripts/t.rast.what", line 526, in
<module>
     main(options, flags)
   File "/usr/local/grass-7.1.svn/scripts/t.rast.what", line 266, in main
     mod(map=map_names, output=file_name)
NameError: global name 'map_names' is not defined

}}}

It works if I give nprocs option; for example nprocs=4

With smaller number of maps, with or without nprocs work fine.

Sajid

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957&gt;
GRASS GIS <https://grass.osgeo.org>

#2957: t.rast.what throw error while running on large number of maps
--------------------------+-----------------------------------
  Reporter: spareeth | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: temporal, t.rast.what
       CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------------

Comment (by lrntct):

I encountered the same bug with a STRDS of 422 maps, meanwhile another
STRDS of 600 maps of the same size worked fine.
passing nprocs resolved the issue as well.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2957: t.rast.what throw error while running on large number of maps
--------------------------+-----------------------------------
  Reporter: spareeth | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: temporal, t.rast.what
       CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------------

Comment (by neteler):

See also #2418

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#2957: t.rast.what throw error while running on large number of maps
--------------------------+-----------------------------------
  Reporter: spareeth | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: temporal, t.rast.what
       CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------------

Comment (by annakrat):

In [changeset:"69814" 69814]:
{{{
#!CommitTicketReference repository="" revision="69814"
t.rast.what: fix undefined variable, see #2957
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#2957: t.rast.what throw error while running on large number of maps
--------------------------+-----------------------------------
  Reporter: spareeth | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.0
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: temporal, t.rast.what
       CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------------

Comment (by annakrat):

In [changeset:"69815" 69815]:
{{{
#!CommitTicketReference repository="" revision="69815"
t.rast.what: fix undefined variable, see #2957 (merge from trunk, r69814)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

#2957: t.rast.what throw error while running on large number of maps
--------------------------+-----------------------------------
  Reporter: spareeth | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.3
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: temporal, t.rast.what
       CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------------

Comment (by veroandreo):

can we close this ticket?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957#comment:9&gt;
GRASS GIS <https://grass.osgeo.org>

#2957: t.rast.what throw error while running on large number of maps
--------------------------+-----------------------------------
  Reporter: spareeth | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.4
Component: Temporal | Version: svn-trunk
Resolution: fixed | Keywords: temporal, t.rast.what
       CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------------
Changes (by veroandreo):

* status: new => closed
* resolution: => fixed

Comment:

Tested here in NC with 1000 maps:
{{{
for i in `seq -w 1 1000` ; do r.mapcalc expression="map_$i = 1" ; done
t.create output=test type=strds temporaltype=absolute title="test"
description="test"
g.list rast pat=map_* output=list
t.register input=test file=list start='2000-01-01' increment="1 days" -i
t.rast.what coordinates=494637.096774,154319.556452 strds=test
}}}

all fine, no error reported. Closing.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2957#comment:12&gt;
GRASS GIS <https://grass.osgeo.org>