[GRASS-dev] [GRASS GIS] #1903: r.watershed fails with "Subprocess failed with exit code 6"

GRASS GIS trac at osgeo.org
Wed Mar 20 07:44:11 PDT 2013


#1903: r.watershed fails with "Subprocess failed with exit code 6"
-------------------------+--------------------------------------------------
 Reporter:  marcosc      |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.3                    
Component:  Raster       |     Version:  svn-releasebranch64      
 Keywords:  r.watershed  |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by marcosc):

 LFS is enabled, but we are working on a 64-bit platform anyway.

 The command:
 {{{
 r.watershed -fm elevation=... accumulation=... drainage=... basin=basins
 stream=... threshold=10000 memory=25000 --overwrite --verbose
  }}}
 ... with:
 {{{
 g.region -p

 rows:       38728
 cols:       55611
 cells:      2153702808
  }}}
 ...results in:
  {{{
 ERROR: G_malloc: unable to allocate 596992000 bytes at setup.c:64
 WARNING: Subprocess failed with exit code 256
 WARNING: category information for [flow_accumulation] in [r.watershed]
          missing or invalid
 WARNING: category information for [drainage_direction] in [r.watershed]
          missing or invalid
 WARNING: category information for [basins] in [r.watershed] missing or
          invalid
 WARNING: category information for [streams] in [r.watershed] missing or
          invalid
 Removing raster <MASK>
 [H[2JClosing monitors ...
 Cleaning up temporary files ...
 Done.
  }}}

 The system runs with 32 gb of RAM, so ~600 MB shouldn't be a problem.

 We checked the setup.c in /lib/segment/setup.c but could not locate the
 problem.

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



More information about the grass-dev mailing list