[GRASS-user] G_malloc: out of memory

Glynn Clements glynn at gclements.plus.com
Fri Nov 21 08:44:47 EST 2008


Kurt Springs wrote:

> I used g.region  to set the resolution from 10m to 100m, then to 1m.
> 
> on 100m I get
> 
> PNG: GRASS_TRUECOLOR status: TRUE
> 
> PNG: collecting to file: /Users/kurtsprings/grassdata/OSI0834/ 
> PERMANENT/.tmp/Kurt-Springs-MacPro.local/5417.0.ppm,
> 
>       GRASS_WIDTH=309, GRASS_HEIGHT=482
> d.rast(5512) malloc: *** mmap(size=1206358016) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> 
> G_malloc: out of memory

First, try from the command line.

If the resolution isn't the problem, it might be the bounds. Check
that the output from "g.region -p" is sane (specifically, the number
of rows and columns).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list