Opened 8 years ago

Closed 8 years ago

#3004 closed defect (fixed)

r.volume: ERROR: Reading raster map <xy> request for row z is outside region

Reported by: hellik Owned by: grass-dev@…
Priority: major Milestone: 7.0.4
Component: Raster Version: svn-trunk
Keywords: r.volume Cc:
CPU: All Platform: All

Description

mentioned first on the 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.

Change History (7)

comment:1 by neteler, 8 years ago

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

comment:2 by annakrat, 8 years ago

Fixed integer overflow in r68376. Please test.

in reply to:  2 comment:3 by hellik, 8 years ago

Replying to annakrat:

Fixed integer overflow in r68376. Please test.

Fixed,closing ticket.

Thanks.

comment:4 by hellik, 8 years ago

Resolution: fixed
Status: newclosed

in reply to:  2 comment:5 by hellik, 8 years ago

Replying to annakrat:

Fixed integer overflow in r68376. Please test.

Should be backported?

comment:6 by martinl, 8 years ago

Resolution: fixed
Status: closedreopened

comment:7 by annakrat, 8 years ago

Resolution: fixed
Status: reopenedclosed

Backported in 68378.

Note: See TracTickets for help on using tickets.