[cairo] Cairo Troubleshooting

Dave Beckett dave.beckett at bristol.ac.uk
Sat Jan 24 10:01:56 PST 2004


On Sat, 24 Jan 2004 16:35:14 +0000
Daniel Smith <daniel at pling.net> wrote:

> Hello all,
> 
> I run debian unstable and have installed all of the debian packages as
> 
> built by Dave Beckett.
> I have compiled up the cairo demo programs and fdclock and cannot get 
> them to run.

What's fdclock?  That's not in the demos.

 
> I'm sure this is a basic error on my part, and I apologise for taking
> up your time, however I know there is going to be a concept that would
> be useful for me to grasp.
> 
> The error is as such:
> 
> ---
> 
> daniel at xander:~/fdclock$ ./fdclock
> X Error of failed request:  BadMatch (invalid parameter attributes)
>   Major opcode of failed request:  72 (X_PutImage)
>   Serial number of failed request:  32
>   Current serial number in output stream:  39

That's because cairo no longer works with X in the current Debian
and there does not seem any diagnosis of the problem.

I think I'm going to revert the change that caused this for the debian
packages so that it'll work again and repackage them.  The patch to the
cairo lib is:

Index: src/cairo_xlib_surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_xlib_surface.c,v
retrieving revision 1.13
diff -r1.13 cairo_xlib_surface.c
260c260
<                          image->depth,
---
>                          image->depth == 32 ? 24 : image->depth,

which restores it to working for the XFree86 installed on Debian.

Dave




More information about the cairo mailing list