Bug 7479

Summary: Cairo crashes on Solaris due to depth/mask problems
Product: cairo Reporter: Steve Evans <stevee>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: major    
Priority: high    
Version: 1.2.0   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Steve Evans 2006-07-10 05:11:59 UTC
I get this crash when running any application that uses cairo:

(gtk-chtheme:15702): GLib-CRITICAL **: g_scanner_input_file: assertion `input_fd
>= 0' failed
Error: Cairo does not yet support the requested image format:
        Depth: 32
        Alpha mask: 0x00000000
        Red   mask: 0x000000ff
        Blue  mask: 0x0000ff00
        Green mask: 0x00ff0000

On most suns the values for the masks when using a 24 bit display are:

 visual:
   visual id:    0x27
   class:    TrueColor
   depth:    24 planes
   available colormap entries:    256 per subfield
   red, green, blue masks:    0xff, 0xff00, 0xff0000
   significant bits in color specification:    8 bits

However we have one machine out of 20 where the masks do match what you expect:

  visual:
    visual id:    0x22
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
Comment 1 Behdad Esfahbod 2006-07-10 07:29:55 UTC

*** This bug has been marked as a duplicate of 7294 ***

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.