[cairo] Firefox failure with cairo 1.12.6 on NetBSD-current amd64

Martin Husemann martin at duskware.de
Wed Oct 24 06:39:44 PDT 2012


Hi folks,

pkgsrc recently updated cairo to version 1.12.6 and that causes my firefox
to crash at startup with:

###!!! ABORT: X_SendEvent: BadValue (integer parameter out of range for operation); 494 requests ago: file /usr/pkgobj/devel/xulrunner/work/mozilla-release/toolkit/xre/nsX11ErrorHandler.cpp, line 157

Setting a breakpoint on the X11Error handler in gdb shows:

Breakpoint 1, X11Error (display=0x7f7ff7b40000, event=0x7f7fffff5570)
    at /usr/pkgobj/devel/xulrunner/work/mozilla-release/toolkit/xre/nsX11ErrorHandler.cpp:20
20      X11Error(Display *display, XErrorEvent *event) {
(gdb) print *event
$3 = {type = 0, display = 0x7f7ff7b40000, resourceid = 205, serial = 3983, 
  error_code = 2 '\002', request_code = 25 '\031', minor_code = 0 '\000'}
(gdb) bt
#0  X11Error (display=0x7f7ff7b40000, event=0x7f7fffff5570)
    at /usr/pkgobj/devel/xulrunner/work/mozilla-release/toolkit/xre/nsX11ErrorHandler.cpp:20
#1  0x00007f7ff0074610 in _XError () from /usr/X11R7/lib/libX11.so.7
#2  0x00007f7ff004b0d7 in ?? () from /usr/X11R7/lib/libX11.so.7
#3  0x00007f7ff004b109 in ?? () from /usr/X11R7/lib/libX11.so.7
#4  0x00007f7ff004b6e3 in _XEventsQueued () from /usr/X11R7/lib/libX11.so.7
#5  0x00007f7ff0074ac5 in _XData32 () from /usr/X11R7/lib/libX11.so.7
#6  0x00007f7ff0804448 in XRenderAddGlyphs ()
   from /usr/X11R7/lib/libXrender.so.2
#7  0x00007f7ff0c872d9 in composite_glyphs () from /usr/pkg/lib/libcairo.so.2
#8  0x00007f7ff0c70b1a in clip_and_composite () from /usr/pkg/lib/libcairo.so.2
#9  0x00007f7ff0c70d4d in _cairo_traps_compositor_glyphs ()
   from /usr/pkg/lib/libcairo.so.2
#10 0x00007f7ff0c24aed in _cairo_compositor_glyphs ()
   from /usr/pkg/lib/libcairo.so.2
#11 0x00007f7ff0c8a84f in _cairo_xlib_surface_glyphs ()
   from /usr/pkg/lib/libcairo.so.2
#12 0x00007f7ff0c60da7 in _cairo_surface_show_text_glyphs ()
   from /usr/pkg/lib/libcairo.so.2
#13 0x00007f7ff0c2c585 in _cairo_gstate_show_text_glyphs ()
   from /usr/pkg/lib/libcairo.so.2

which seems to point at cairo as the culprit.
I've been told to create a xtrace (attached) and this error seems to show
up here:

001:<:03fd: 16: Request(53): CreatePixmap depth=0x18 pid=0x014000e5 drawable=0x014000d5 width=16 height=16
001:<:03fe: 24: RENDER-Request(149,4): CreatePicture pid=0x014000e6 drawable=0x014000e5 format=0x0000002a values={poly-mode=Imprecise(0x01)}
001:<:03ff: 28: RENDER-Request(149,26): FillRectangles op=Minimum/Clear(0x00) dst=0x014000e6 red=0x0000 green=0x0000 blue=0x0000 alpha=0x0000 rects={x=0 y=0 w=16 h=16};
001:<:0400: 24: Request(55): CreateGC cid=0x014000e7 drawable=0x014000e5 values={fill-style=Tiled(0x01) graphics-exposures=false(0x00)}
001:<:0401: 28: Request(62): CopyArea src-drawable=0x014000d5 dst-drawable=0x014000e5 gc=0x014000e7 src-x=74 src-y=57 dst-x=0 dst-y=0 width=16 height=16
001:<:0402: 28: Request(62): CopyArea src-drawable=0x014000a2 dst-drawable=0x014000a0 gc=0x01400087 src-x=0 src-y=0 dst-x=0 dst-y=0 width=48 height=16
001:<:0403: 44: Request(25): SendEvent propagate=false(0x00) destination=0x01400083 event-mask=0 (generated) MIT-SHM-Completion(77) drawable=0x01400083 shmseg=0x000a0006 offset=0x00072000
001:<:0404: 24: RENDER-Request(149,4): CreatePicture pid=0x014000e8 drawable=0x014000a0 format=0x00000026 values={subwindow-mode=IncludeInferiors(0x01)}
001:<:0405: 16: RENDER-Request(149,30): SetPictureFilter picture=0x014000e8 name='fast' values=;
001:>:0403:Error 2=Value: major=25, minor=0, bad=205
001:<:0406: 16: RENDER-Request(149,5): ChangePicture picture=0x014000e8 values={repeat=unknown:0x02}
001:<:0407: 36: RENDER-Request(149,8): Composite op=Over(0x03) src=0x014000e8 mask=None(0x00000000) dst=0x014000e6 xSrc=0 ySrc=0 xMask=0 yMask=0 xDst=0 yDst=0 width=16 height=16
001:<:0408: 16: RENDER-Request(149,33): UNKNOWN opcode=0x95 opcode2=0x21 unparsed-data=0xe9,0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x4c,0x4c;
001:<:0409: 36: RENDER-Request(149,8): Composite op=Over(0x03) src=0x014000e6 mask=0x014000e9 dst=0x014000d6 xSrc=0 ySrc=0 xMask=0 yMask=0 xDst=74 yDst=57 width=16 height=16
001:<:040a:  8: RENDER-Request(149,7): FreePicture picture=0x014000e6


Any ideas?

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-firefox-bug.txt.bz2
Type: application/octet-stream
Size: 87280 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121024/ed71e79a/attachment-0001.obj>


More information about the cairo mailing list