[GRASS-dev] Re: [GRASS GIS] #1006: r.terraflow fails to stat() stream file on Windows

GRASS GIS trac at osgeo.org
Sat Jul 10 00:21:35 EDT 2010


#1006: r.terraflow fails to stat() stream file on Windows
-----------------------------------+----------------------------------------
 Reporter:  marisn                 |       Owner:  grass-dev@…              
     Type:  defect                 |      Status:  new                      
 Priority:  critical               |   Milestone:  6.4.0                    
Component:  Raster                 |     Version:  svn-releasebranch64      
 Keywords:  wingrass, r.terraflow  |    Platform:  MSWindows Vista          
      Cpu:  x86-32                 |  
-----------------------------------+----------------------------------------

Comment(by hamish):

 Hi, just tested 6.5svn r42750 nightly build on XP. And I'm back to the
 original error message & exit code 3:
 {{{
 #spearfish
 g.region rast=elevation.10m
 r.terraflow elev=elevation.10m ...

 Assertion failed: nrows * ncols == str->stream_len(), file grass2str.h,
 line 144
 }}}

 the left over .../Temp/STREAM_a02688 file is 10,619,208 bytes.

  * (and .../Temp/ is full of 100+ old tmp*.ppm files at a MB each... :-/
 new ones even after exiting the wxGUI cleanly. now that I look, it's the
 same in /tmp/ in linux)

 {{{
 D2/3: G__read_Cell_head
 D2/3: G__read_Cell_head_array
 D3/3: region item: proj:       1
 D3/3: region item: zone:       13
 D3/3: region item: north:      4928000
 D3/3: region item: south:      4914020
 D3/3: region item: east:       609000
 D3/3: region item: west:       590010
 D3/3: region item: cols:       1899
 D3/3: region item: rows:       1398
 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 (1899 columns)
 C:/DOCUME~1/Hamish/LOCALS~1/Temp/STREAM_a02688: length = 9175040
 sizeof(T)=4
 D3/3: nrows=1398   ncols=1899    stream_len()=2293760
 C:/DOCUME~1/Hamish/LOCALS~1/Temp/STREAM_a02688: length = 9175040
 sizeof(T)=4
 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.
 }}}

 the `length = 9175040` reported by the debug message jumps around every
 time I run it, sometimes it's 0, sometimes its ~550000 or so.

  * also often it dies just after the "stats.out file found, renaming."
 message with error code 1. `rm stats.out*` at the msys prompt gets it
 working again.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1006#comment:46>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list