pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Quick (non)fix for getting cairo working again?

On Sat, Oct 27, 2012 at 12:01:24AM +0200, Jan Danielsson wrote:
>    No luck. But I'm wondering if I'm seeing a different issue. I can get
> Firefox to start up, it shows the "Ooops! Something went wrong!" page,
> and I can choose to restore session, and that's when it crashes.
> However, the time it stays alive seems to vary a little (crash instantly
> to running a few seconds).
>    On the console I get some error messages along the line of "ABORT
> X_SendEvent: BadValue" just after the crashes occur.
>    NetBSD/amd64 6.0.

There's another patch you can try in PR 47124. It's a bit outdated
because cairo got updated to 1.12.6 in the meantime, the relevant part
is (sorry copy'n'pasted so whitespace probably wrong):

--- src/cairo-xlib-surface-shm.c.orig   2012-10-05 13:06:00.000000000 +0000
+++ src/cairo-xlib-surface-shm.c
@@ -1018,6 +1021,7 @@ _cairo_xlib_shm_surface_mark_active (cai
     cairo_xlib_display_t *display = (cairo_xlib_display_t *) _shm->device;
     XShmCompletionEvent ev;

+    bzero (&ev, sizeof(ev));
     ev.type = display->shm->event;
     ev.drawable = display->shm->window;
     ev.major_code = display->shm->opcode;

Does that fix your problem?

Home | Main Index | Thread Index | Old Index