[cairo] Error: Cairo does not yet support the requested image format:

Baz brian.ewins at gmail.com
Mon Jan 7 03:49:23 PST 2008

On Jan 6, 2008 8:29 AM, Captain Kaplan <captain.kaplan at gmail.com> wrote:
> hello folks. I've just installed  CentOS 5.1 on my IBM Thinkpad A31 and I
> tried to launch firefox and display on X11 running on my MackBook Pro. This
> is what I got.  Is this is a real bug or I have my X11 setup incorrectly on
> my mac?

Its a real bug, but there may be something you can do to mitigate it
in your mac setup. see below.

> cheers,
> C. Kaplan
> Error: Cairo does not yet support the requested image format:
>         Depth: 16
>         Alpha mask: 0x00000000
>         Red   mask: 0x00007c00
>         Green mask: 0x000003e0
>         Blue  mask: 0x0000001f
> Please file an enhacement request (quoting the above) at:
> http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
> firefox-bin: cairo-image-surface.c:155: _cairo_format_from_pixman_format:
> Assert
> ion `NOT_REACHED' failed.
> /usr/lib/firefox- line 131:  3768 Aborted
>   "$prog" ${1+"$@"}

Others know more about the X issue here, but this looks like you're
using something like a 565 visual. In cairo 1.5.2 support was added
for an image fallback so that cairo will work with that kind of X
setup. However, firefox was released before that patch,
depends on a *much* earlier version of cairo, and is not getting
patched any more by mozilla. AFAIK it only used cairo for SVG back
then, which makes it surprising that you're hitting cairo at all on
startup; is it possible that you're using a gtk theme that requires
cairo (clearlooks springs to mind)? If that's the cause you'll see
other apps crash too.

Some suggestions:
- try using a higher-depth visual if you can; this is where your mac
setup counts. Xquartz should automatically be using 24-bit if your
macbook display is set to 'millions of colours'. If its set to
'thousands of colours' you'll default to 16 bit, and I guess that's
what you've done. However, if you switch to 24-bit, you may hit this
bug instead if you're on Leopard:
http://bugs.freedesktop.org/show_bug.cgi?id=12995 . If you're getting
16 bit with the display set to 'millions of colours' thats worth
investigating further (avoiding the grotty patch solutions below)
- use a simpler desktop theme. I don't know how much this will help
under X11, but with gtk-quartz clearlooks was a common source of
crashes (it hit bugs in cairo-quartz), while other themes were ok.
- if it really is just firefox crashing, build firefox for yourself
with svg disabled (and hence no cairo dependency).
- investigate the patching your system cairo on centos. You don't
mention what cairo version you're using but there are several patches
attached to this bug: http://bugs.freedesktop.org/show_bug.cgi?id=4945
that may be useful (most of that is about 8-bit visuals, but 16-bit
gets mentioned too)

Hope this is useful to you, someone else might want to pipe up on the
current status of 565.


> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list