[GRASS-dev] Re: [GRASS GIS] #1006: r.terraflow fails to stat()
stream file on Windows
GRASS GIS
trac at osgeo.org
Mon May 17 16:15:39 EDT 2010
#1006: r.terraflow fails to stat() stream file on Windows
------------------------------+---------------------------------------------
Reporter: marisn | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: Raster | Version: svn-releasebranch64
Resolution: | Keywords: wingrass, r.terraflow
Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):
Replying to [comment:28 hamish]:
> Replying to [comment:27 hamish]:
> > as LFS support for WinGrass is not a goer for 6.4.0, how about
> > if we #ifdef the ftell() patch for MINGW32 in the release branch,
> > and leave the UNIXes running the non-portable stat() version.
> >
> > Lack of large file support especially sucks for r.terraflow which
> > likes to have very large temp files, but it's better than the
> > current situation on WinGrass which is that the module won't run
> > at all.
> >
> > Maybe we can figure out something better to include with 6.4.1.
>
>
> patch attached for consideration. debug messages should be removed after
testing.
>
>
> Hamish
patch tested on a self compiled grass65 on WinVista 32. shortened error
log attached.
{{{
r.terraflow --verbose elevation=elevation at PERMANENT filled=filflood
direction=flowdir swatershed=sinkwatershed accumulation=flowacc
tci=tpoconv memory=800
MFD flow direction
D8CUT=999999986991104.000000
Memory size: 800.00M (838860800) bytes
Memory manager registering memory in MM_WARN_ON_MEMORY_EXCEEDED mode.
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_a06204>
[...]
Assertion failed: ae == AMI_ERROR_NO_ERROR, file
filldepr.cc, line 136
This application has requested the Runtime to terminate it
in an unusual way.
Please contact the application's support team for more
information.
UnionFind::makeSet: reallocate double 2000
UnionFind::makeSet: reallocate double 4000
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1006#comment:29>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list