<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thanks Mark, and others.<br><br>I found a pc with a bit more ram, reduced the region to the dtm and it was fine.<br><br>Cheers,<br>Michael<br><br>> Date: Wed, 13 Apr 2011 16:12:22 +0200<br>> Subject: Re: [GRASS-user] r.watershed G_malloc error<br>> From: markus.metz.giswork@googlemail.com<br>> To: michael_spencer@live.co.uk<br>> CC: grass-user@lists.osgeo.org<br>> <br>> On Wed, Apr 13, 2011 at 3:37 PM, Michael Spencer<br>> <michael_spencer@live.co.uk> wrote:<br>> > Hi All,<br>> ><br>> > I'm on windows xp using GRASS 6.4 and 7 and I'm getting the following error<br>> > running r.watershed:<br>> ><br>> > ERROR: G_malloc: unable to allocate 2521456396 bytes of memory at<br>> > init_vars.c:137<br>> ><br>> > I've 2Gb of ram and the dtm I'm using is 185Mb in (pre import) ascii grid<br>> > format, so not massive. Is the above error because I'm short on ram for the<br>> > above process, or is it something else?<br>> ><br>> <br>> 1. make sure the current region settings are ok, i.e. not extending<br>> beyond the extents of the dtm and aligned to the dtm (g.region<br>> align=dtm)<br>> <br>> 2. use the disk swap mode with r.watershed -m<br>> <br>> Markus M<br>                                            </body>
</html>