[GRASS-dev] Re: [GRASS GIS] #775: r.terraflow: file=/home/mlennert/STREAM/STREAM_tQhXkQ:cannot read!: Bad address

GRASS GIS trac at osgeo.org
Tue Nov 10 06:50:34 EST 2009


#775: r.terraflow: file=/home/mlennert/STREAM/STREAM_tQhXkQ:cannot read!: Bad
address
-----------------------+----------------------------------------------------
  Reporter:  mlennert  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  normal    |   Milestone:  6.4.0                    
 Component:  Raster    |     Version:  6.4.0 RCs                
Resolution:            |    Keywords:  terraflow aborted        
  Platform:  Linux     |         Cpu:  Unspecified              
-----------------------+----------------------------------------------------
Changes (by fram):

  * keywords:  terraflow bad address => terraflow aborted
  * version:  svn-develbranch6 => 6.4.0 RCs

Comment:

 I tried to apply the patch of r.terraflow (r.terraflow.diff).  I do not
 know if I did it fine, what I did was to change the original
 "include/iostream/ami_sort_impl.h" file with the modifications in the
 .diff file. If this was fine, below is the output of r.terraflow which to
 me seems to give a different error as before.

 ===============================================================
 GRASS 6.4.0RC5 (WGS84_UTM33):~ > r.terraflow elevation=dem_tagliato
 filled=flood direction=flow swatershed=sink accumulation=accumulation
 tci=tci d8cut=infinity memory=1600 STREAM_DIR=/tmp stats=stats.out
 STREAM temporary files in /tmp  (THESE INTERMEDIATE STREAMS WILL NOT BE
 DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE SPACE
 PLEASE DELETE THESE FILES MANUALLY!)
 MFD flow direction
 D8CUT=999999986991104.000000
 Memory size: 1.56G (1677721600) bytes
 Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
 total elements=67071935, nodata elements=61864898
 largest temporary files:
 FILL: 3.50G (3756028360) [67071935 elements, 56B each]
 FLOW: 397.27M (416562960) [5207037 elements, 80B each]
 Will need at least 7.00G (7512056720) space available in /tmp
 ------------------------------
 COMPUTING FLOW DIRECTIONS
 classifying nodata (inner & boundary)
 EMPQUEUEADAPTIVE: starting in-memory pqueue
 EMPQUEUEADAPTIVE: available memory: 1597.93MB
 EMPQUEUEADAPTIVE: desired memory: 1597.93MB
 sz_stream: 270388 buf_arity: 200 mm_overhead: 8665728 mm_avail:
 1675549602.
 EMPQUEUEADAPTIVE: memory overhead set to 8.26428MB
 EMPQUEUEADAPTIVE: pqsize set to 208360484
 assigning preliminary directions
 finding flat areas (plateaus and depressions)
 EMPQUEUEADAPTIVE: starting in-memory pqueue
 EMPQUEUEADAPTIVE: available memory: 1597.41MB
 EMPQUEUEADAPTIVE: desired memory: 1597.41MB
 sz_stream: 270388 buf_arity: 200 mm_overhead: 8665728 mm_avail:
 1675008754.
 EMPQUEUEADAPTIVE: memory overhead set to 8.26428MB
 EMPQUEUEADAPTIVE: pqsize set to 208292878
 assigning directions on plateaus
 generating watersheds and watershed graph
 AMI_STREAM::write_item failed.
 /tmp/STREAM_HHSoQw: File too large
 r.terraflow: /usr/local/svn/grass/grass640_rc5/dist.i686-pc-linux-
 gnu/include/grass/iostream/ami_stream.h:560: AMI_err
 AMI_STREAM<T>::write_item(const T&) [with T = compressedWaterWindowType]:
 Assertion `0' failed.
 Abortito
 GRASS 6.4.0RC5 (WGS84_UTM33):~ >
 ===============================================================

 Francesco

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/775#comment:10>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list