Re: [XFree86] Is there a defined xpixmap width limit?

2011-04-22 Thread Emmanuel Thomas-Maurin
On 04/21/2011 08:47 PM, Marc Aurele La France wrote:
 So my question is: Is it an 'out of memory' error (returned by malloc)
 or a width value above a defined limit?
 
 BadAlloc normally indicates an inability to malloc() the space.  A 64K x
 64K 32-bit pixmap would require 128GB which would need to be provided by
 a combination of real memory and swap space.
 
 Marc.

Thanks.
I've just been looking at the x11 protocol and xpixmaps width/height is
stored as 16-bit unsigned int (CARD16.) Anyways, it just makes sense to
run out of memory for really huge pixmpas.


-- 
Emmanuel Thomas-Maurin manutm...@gmail.com
___
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86


[XFree86] Is there a defined xpixmap width limit?

2011-04-21 Thread Emmanuel Thomas-Maurin
Good day list!

I've been searching for this for a while but, so far, it's still unclear
to me : Is there a width and height limit for pixmaps? Widht / height
type is int but I'm wondering what's the maximum supported values.

I'm using GTK and I know GDK pixmaps and windows can't be wider than
65535. But I got a crash in a GTK app when trying to create a big
pixmap, less wide than 65535 but wider than 32767:

The program 'my_app' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.

So my question is: Is it an 'out of memory' error (returned by malloc)
or a width value above a defined limit?

Mainly, I'd like to know if this is documented somewhere.

I can provide an example programme that reproduces the issue.

Thanks in advance for any hints.

-- 
Emmanuel Thomas-Maurin manutm...@gmail.com
___
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86