[cairo] cairo-xlib-surface.c:402: _swap_ximage_to_native:
Assertion `NOT_REACHED' failed.
Daniel Amelang
daniel.amelang at gmail.com
Sat Nov 18 11:09:14 PST 2006
On 11/18/06, Erik Ohrnberger <erik at echohome.org> wrote:
> Dear Cairo users,
> I've been struggling with a Gentoo system where the error message
> above is causing all the program that rely on cairo, like gtkmm based
> programs, to core out.
In cairo-xlib-surface.c, there's a comment that warns that this could happen:
switch (ximage->bits_per_pixel) {
...
default:
/* This could be hit on some uncommon but possible cases,
* such as bpp=4. These are cases that libpixman can't deal
* with in any case.
*/
ASSERT_NOT_REACHED;
}
I'm going to guess that in your case, ximage->bits_per_pixel is 24, as
that case also takes the default path.
> I was wondering if there were any known issues of configuration
> changes that could be applied to remove this issue.
I think you can change the color depth in your Xorg.conf. I think
you're looking for this:
Option "Pixmap" "32"
On the other hand, maybe cairo should be able to handle 24 bpp, so in
that case it's a bug/feature request that should be filed. Carl?
Dan
More information about the cairo
mailing list