[GRASS-dev] Re: [GRASS GIS] #1006: r.terraflow fails to create temp
file on Windows when launched from wxgui
GRASS GIS
trac at osgeo.org
Thu Mar 25 15:51:31 EDT 2010
#1006: r.terraflow fails to create temp file on Windows when launched from wxgui
------------------------------+---------------------------------------------
Reporter: marisn | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-releasebranch64
Resolution: | Keywords: wxgui, wingrass, terraflow
Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):
Replying to [comment:8 hamish]:
> Replying to [comment:7 hamish]:
> > Note the '''Free Memory=-1''' at the top of the file ...
>
> that's nothing. freeMem() is hardcoded to that on Windows.
>
> in r41535 I've added a new debug message to devbr6.5 to show the values
tested in that assert(). So we'll see what tomorrow's nightly build says
about it.
>
> On linux for elevation.dem at spearfish I get:
> {{{
> D3/3: nrows=466 ncols=633 stream_len()=294978
> }}}
> as expected.
>
>
> Hamish
grass65, self compiled in osgeo4w-stack, WinVista32
r41535
{{{
g.gisenv set=DEBUG=3
}}}
{{{
g.region -p -a rast=elevation at PERMANENT
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 228500
south: 215000
west: 630000
east: 645000
nsres: 10
ewres: 10
rows: 1350
cols: 1500
cells: 2025000
}}}
{{{
r.terraflow --verbose elevation=elevation at PERMANENT filled=elevflood1
direction=elevdir1 swatershed=elevsinkw1 accumulation=elevacc1
tci=elevtci1 memory=900
MFD flow direction
D8CUT=999999986991104.000000
Memory size: 900.00M (943718400) bytes
Memory manager registering memory in MM_WARN_ON_MEMORY_EXCEEDED mode.
D2/3: G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 99
D3/3: region item: zone: 0
D3/3: region item: north: 228500
D3/3: region item: south: 215000
D3/3: region item: east: 645000
D3/3: region item: west: 630000
D3/3: region item: cols: 1500
D3/3: region item: rows: 1350
D3/3: region item: e-w resol: 10
D3/3: region item: n-s resol: 10
D3/3: region item: top: 1
D3/3: region item: bottom: 0
D3/3: region item: cols3: 1500
D3/3: region item: rows3: 1350
D3/3: region item: depths: 1
D3/3: region item: e-w resol3: 10
D3/3: region item: n-s resol3: 10
D3/3: region item: t-b resol: 1
D2/3: G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 99
D3/3: region item: zone: 0
D3/3: region item: north: 228500
D3/3: region item: south: 215000
D3/3: region item: east: 645000
D3/3: region item: west: 630000
D3/3: region item: cols: 1500
D3/3: region item: rows: 1350
D3/3: region item: e-w resol: 10
D3/3: region item: n-s resol: 10
D3/3: region item: format: -1
D3/3: region item: compressed: 1
cell elevation header compatible with region header
Elevation stored as FLOAT (4B)
Region size is 1350 x 1500
STREAM temporary files in
C:/Users/syringia/AppData/Local/Temp (THESE INTERMEDIATE
STREAMS WILL NOT BE DELETED IN CASE OF ABNORMAL TERMINATION
OF THE PROGRAM. TO SAVE SPACE PLEASE DELETE THESE FILES
MANUALLY!)
reading data from elevation to stream
C:/Users/syringia/AppData/Local/Temp/STREAM_a06112: D2/3:
G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 99
D3/3: region item: zone: 0
D3/3: region item: north: 228500
D3/3: region item: south: 215000
D3/3: region item: east: 645000
D3/3: region item: west: 630000
D3/3: region item: cols: 1500
D3/3: region item: rows: 1350
D3/3: region item: e-w resol: 10
D3/3: region item: n-s resol: 10
D3/3: region item: format: -1
D3/3: region item: compressed: 1
D3/3: create window mapping (1500 columns)
D3/3: nrows=1350 ncols=1500 stream_len()=0
'''Assertion failed: nrows * ncols == str->stream_len(), file
grass2str.h, line 146'''
This application has requested the Runtime to terminate it
in an unusual way.
Please contact the application's support team for more
information.
}}}
{{{
stats.out:
Free Memory=-1
[0.0] Thu Mar 25 20:26:58 2010
Command Line:
r.terraflow --verbose elevation=elevation at PERMANENT filled=elevflood1
direction=elevdir1 swatershed=elevsinkw1 accumulation=elevacc1
tci=elevtci1 memory=900
input elevation grid: elevation
output (flooded) elevations grid: elevflood1
output directions grid: elevdir1
output sinkwatershed grid: elevsinkw1
output accumulation grid: elevacc1
output tci grid: elevtci1
[0.0] MFD flow direction
[0.0] D8CUT=999999986991104.000000
[0.0] Memory size: 900.00M (943718400) bytes
region size = 1.93M (2025000) elts (1350 rows x 1500 cols)
internal nodata value: -9999
reading raster map elevationto stream
C:/Users/syringia/AppData/Local/Temp/STREAM_a06112
}}}
Helmut
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1006#comment:9>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list