[GRASS-user] G_malloc: out of memory
Kurt Springs
ferret_bard at mac.com
Thu Nov 20 20:48:08 EST 2008
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
on 1m 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(5528) 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
Other project locations, set at 10m are okay.
Kurt
On Nov 20, 2008, at 6:59 PM, Glynn Clements wrote:
>
> Kurt Springs wrote:
>
>> I am running into a problem I've never seen before. I was trying to
>> digitize a vector file. I had imported it from a dxf file and was
>> trying to close up some vectors points. Suddenly v.digit closed, and
>> when I tried to reopen I got:
>>
>> v.digit(4314,0xa0371fa0) malloc: *** mmap(size=1207963648) failed
>> (error code=12)
>> *** error: can't allocate region
>> *** set a breakpoint in malloc_error_break to debug
>>
>> G_malloc: out of memory
>>
>> When I tried to open my raster map I got:
>>
>>
>> PNG: GRASS_TRUECOLOR status: TRUE
>>
>> PNG: collecting to file: /Users/kurtsprings/grassdata/OSI0834/
>> PERMANENT/.tmp/Kurt-Springs-MacPro.local/4266.0.ppm,
>>
>> GRASS_WIDTH=309, GRASS_HEIGHT=482
>> d.rast(4325) 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
>>
>> I tried opening a different project location and it still works. Can
>> anyone tell me what is wrong and how to get this project location up
>> and running again, or what went wrong to begin with.
>
> The most likely reason is that the region resolution is too fine. Use
> "g.region res=..." to change it, or "g.region -d" to restore the
> default region.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list