[GRASS-dev] [GRASS GIS] #2667: r.mapcalculator in a loop generates C++ runtime error

#2667: r.mapcalculator in a loop generates C++ runtime error
---------------------------------+-------------------------
Reporter: lobelius | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Raster | Version: 6.4.3
Keywords: QGIS python console | CPU: x86-64
Platform: MSWindows 8 |
---------------------------------+-------------------------
Hello. I'm employing r.mapcalculator in a QGIS console loop as per the
following line.
The script works just fine. However, from time to time, subprocess sh.exe
raises a Windows C++ Runtime popup error R6016, which stops the loop as
long as user doesn't click the ok button (attached an example taken from
internet). The loop itself just freezes up, but doesn't terminate.

import processing

for i in range (0,1000):
processing.runalg('grass:r.mapcalculator',img1,img2,None,None,None,None,'A*B','-180,180,-90,90',0.25,imgout)

Any clues?

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

#2667: r.mapcalculator in a loop generates C++ runtime error
-----------------------+---------------------------------
  Reporter: lobelius | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Raster | Version: 6.4.3
Resolution: | Keywords: QGIS python console
       CPU: x86-64 | Platform: MSWindows 8
-----------------------+---------------------------------
Changes (by lobelius):

* Attachment "runtime error.JPG" added.

runtime error

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