Bug 5205

Summary: X-error received with 8 Bit color X-Terminal
Product: cairo Reporter: Martin Hoehle <bugs>
Component: xlib backendAssignee: Carl Worth <cworth>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 1.0.2   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Martin Hoehle 2005-12-01 06:28:40 UTC
running gimp with gtk 2.8.7 and cairo 1.0.2 on an linux Host and
NCD 256 color X Terminal produce the following message:

The program 'gimp' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 998 error_code 8 request_code 72 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

this dosn't occur if I use an true color X-Terminal.

after some debugging I found:

in
src/cairo-xlib-surface.c
in function
  _draw_image_surface

XPutImage will be called with an ximage with depth 0 (!).
Comment 1 Carl Worth 2006-04-19 17:07:26 UTC

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

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.