nanogui: Thread: nano-X: GsError (GrNewPixmap) Out of server memory


[<<] [<] Page 1 of 1 [>] [>>]
Subject: nano-X: GsError (GrNewPixmap) Out of server memory
From: "Claudia De Bartolomeis" ####@####.####
Date: 2 May 2007 15:46:27 +0100
Message-Id: <008101c78cc8$906dc7d0$0f00a8c0@CLAUDIA>

Hi,
I'm working with microwindows
 in the BSP m532xevb, based on kernel uClinux  2.6.17.7-uc1 by Freescale, using Ltib.

I'm developing an application using pixmap but 
The Nano-X server produces the following error: 

Allocation of length 1232896 from process 108 failed
DMA per-cpu: empty
DMA32 per-cpu: empty
Normal per-cpu:
cpu 0 hot: high 6, batch 1 used:5
cpu 0 cold: high 2, batch 1 used:0
HighMem per-cpu: empty
Free pages:       11544kB (0kB HighMem)
Active:186 inactive:360 dirty:0 writeback:0 unstable:0 free:2886 slab:1732 mapped:0 pagetables:0
DMA free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? n
o
lowmem_reserve[]: 0 0 32 32
DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable?
 no
lowmem_reserve[]: 0 0 32 32
Normal free:11544kB min:724kB low:904kB high:1084kB active:744kB inactive:1440kB present:32768kB pages_scanned
:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unrecl
aimable? no
lowmem_reserve[]: 0 0 0 0
DMA: empty
DMA32: empty
Normal: 10*4kB 2*8kB 0*16kB 1*32kB 1*64kB 1*128kB 0*256kB 2*512kB 2*1024kB 0*2048kB 2*4096kB = 11544kB
HighMem: empty
nano-X: GsError (GrNewPixmap) Out of server memory

when my application does

pmap = GrNewPixmap(640, 480, NULL);

I suppose this is due to the memory reserved to the server,
is it possible to enlarge it?
Thanks in advance
Claudia
Subject: Re: [nanogui] nano-X: GsError (GrNewPixmap) Out of server memory
From: "Greg Haerr" ####@####.####
Date: 10 May 2007 14:46:48 +0100
Message-Id: <025f01c79309$8fb65b30$2f01a8c0@HaydenLake>

> The Nano-X server produces the following error: 
> Allocation of length 1232896 from process 108 failed
> pmap = GrNewPixmap(640, 480, NULL);

When you execute the above GrNewPixmap, the
server allocates 640*480*4 bytes per pixel for
the image (when running on 32bpp framebuffer), 
which is the cause of your memory error.

You'll need to look into the details of your OS and
application allocation strategy to allow more memory,
or perhaps switch to a less memory-consuming hardware
pixel format.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.