[cairo] Threaded animation with cairo_gl backend over a GtkWidget

Uli Schlachter psychon at znc.in
Mon Jan 14 13:25:15 PST 2013


Hi,

On 14.01.2013 21:24, Carlos López González wrote:
[...]
> The program 'cairo-sample' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadMatch (invalid parameter attributes)'.
>   (Details: serial 230 error_code 8 request_code 135 minor_code 5)

minor_code 5 likely is DRI2's GetBuffer request, but could also be a
RANDRGetScreenInfo, RenderChangePicture, SHAPEQueryExtents, SHMCreatePixmap or
SyncQueryCounter. Of course, this doesn't really help us (does it?).

[...]
>   (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.)

do "break gdk_x_error" before you "run" the program.

> [Thread 0xb4738b40 (LWP 3625) exited]
> [Thread 0xb54ffb40 (LWP 3624) exited]
> [Thread 0xb6224880 (LWP 3620) exited]
> [Inferior 1 (process 3620) exited with code 01]
> (gdb) where
> No stack.
> (gdb)
> 
> 
> How can I add the --sync option?

If the program supports this option: "run --sync".

Uli
-- 
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?" -- A. P. J.


More information about the cairo mailing list