[GRASS-dev] [GRASS GIS] #3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside region

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
----------------------+-------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Keywords: r.volume | CPU: All
Platform: All |
----------------------+-------------------------
mentioned first on the [https://lists.osgeo.org/pipermail/grass-
dev/2016-April/079919.html dev ML]

a reproducible test case with the NC sample dataset

{{{
g.region -p vector=geology@PERMANENT res=25
v.to.rast input=geology@PERMANENT output=myrast_to_check use=attr
attribute_column=GEOL250_
r.mapcalc "myrast_to_clump = myrast_to_check@user1 /
myrast_to_check@user1"
}}}

{{{
r.volume input=myrast_to_check@user1 clump=myrast_to_clump@user1
ERROR: Reading raster map <myrast_to_clump@user1> request for row -7 is
outside region
}}}

tested with

{{{
System Info
GRASS version: 7.1.svn
GRASS SVN revision: r68309
Build date: 2016-04-26
Build platform: x86_64-w64-mingw32
GDAL: 2.0.2
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
}}}

but it's also in linux debian.

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------

Comment (by neteler):

Confirmed on my Linux box:

The issue seems to happen in this loop (check briefly with gdb debugger):

https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.volume/centroids.c#L77

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------

Comment (by annakrat):

Fixed integer overflow in r68376. Please test.

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------

Comment (by hellik):

Replying to [comment:2 annakrat]:
> Fixed integer overflow in r68376. Please test.

Fixed,closing ticket.

Thanks.

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------
Changes (by hellik):

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

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------

Comment (by hellik):

Replying to [comment:2 annakrat]:
> Fixed integer overflow in r68376. Please test.

Should be backported?

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------
Changes (by martinl):

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

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

#3004: r.volume: ERROR: Reading raster map <xy> request for row z is outside
region
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.4
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords: r.volume
       CPU: All | Platform: All
---------------------+-------------------------
Changes (by annakrat):

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

Comment:

Backported in 68378.

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