Bug 12073

Summary: CRASH: _cairo_format_from_pixman_format: Assertion `NOT_REACHED' failed.
Product: cairo Reporter: Saikat Guha <saikat>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: ed.sternin
Version: 1.4.9   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Requested output from xdpyinfo

Description Saikat Guha 2007-08-20 15:06:10 UTC
Error: Cairo 1.4.10 does not yet support the requested image format:
        Depth: 8
        Alpha mask: 0x00000000
        Red   mask: 0x00ff0000
        Green mask: 0x0000ff00
        Blue  mask: 0x000000ff
Please file an enhancement request (quoting the above) at:
http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
python: cairo-image-surface.c:199: _cairo_format_from_pixman_format: Assertion `NOT_REACHED' failed.
Comment 1 Carl Worth 2007-08-20 15:37:45 UTC
That's a very confusing error message.

It appears that your X server is advertising a visual with 8 bits for each of the red, green, and blue channels but then also declaring the total depth to be only 8.

What X server is this?

And could you include the output from xdpyinfo with that X server?

Thanks,

-Carl
Comment 2 Saikat Guha 2007-08-22 05:28:15 UTC
Created attachment 11206 [details]
Requested output from xdpyinfo
Comment 3 Ed Sternin 2008-01-11 15:42:04 UTC
$ iceweasel 
Error: Cairo 1.4.12 does not yet support the requested image format:
        Depth: 8
        Alpha mask: 0x00000000
        Red   mask: 0x00000000
        Green mask: 0x00000000
        Blue  mask: 0x00000000
Please file an enhancement request (quoting the above) at:
http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
iceweasel-bin: cairo-image-surface.c:199: _cairo_format_from_pixman_format: Assertion `NOT_REACHED' failed.
/usr/lib/iceweasel/run-mozilla.sh: line 131:  3415 Aborted                 "$prog" ${1+"$@"}

This is on a Zenwalk 5.0 distribution server, connected to from an NCD Xterminal (HMXpro), and running Xterminal's native wm.  This is an 8-bit display.

Opera 9.24 works fine (though complains at launch about missing MIT-SHM extension). 
Comment 4 Chris Wilson 2008-04-11 07:25:39 UTC
Mass closing of 8-/15-/16-/32-bit unsupported image formats as these should now all work in 1.6.0. Please test and reopen if you have any issues.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.