Problem in gnustep with latest cairo package

Germán Arias <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Xelalug
Message-ID <20130112043612.4768b2fc@rafaela>
Hi, I'm a gnustep developer and I'm having a problem with latest pixman
and cairo packages. Cairo is the default backend for gnustep. The
problem seems to be related with glx. In a normal installation with
pixman 0.28.2 and cairo 1.12.8, all apps crash at startup. The solution
I found is compile gnustep-back without support for glx. Isn't clear
for me if this is a bug on gnustep or in cairo or pixman. Here is the
backtrace I get when launch a gnustep app. Any advice will be
appreciate. Thanks.

Program received signal SIGSEGV, Segmentation fault.
_pixman_implementation_lookup_composite (toplevel=0x816f170, op=PIXMAN_OP_SRC, 
    src_format=PIXMAN_x8r8g8b8, src_flags=42429183, mask_format=0, 
    mask_flags=8192, dest_format=PIXMAN_a8r8g8b8, dest_flags=34032255, 
    out_imp=0xbfffc7e4, out_func=0xbfffc7e0) at pixman-implementation.c:96
96		if (info->op == op			&&
(gdb) backtrace
#0  _pixman_implementation_lookup_composite (toplevel=0x816f170, 
    op=PIXMAN_OP_SRC, src_format=PIXMAN_x8r8g8b8, src_flags=42429183, 
    mask_format=0, mask_flags=8192, dest_format=PIXMAN_a8r8g8b8, 
    dest_flags=34032255, out_imp=0xbfffc7e4, out_func=0xbfffc7e0)
    at pixman-implementation.c:96
#1  0xb52ad0bb in pixman_image_composite32 (op=<optimized out>, src=0x0, 
    mask=0xb56cc6d0, dest=0x1, src_x=-1251162432, src_y=1, mask_x=-1251162484, 
    mask_y=1, dest_x=-1251162496, dest_y=1, width=0, height=0) at pixman.c:673
#2  0xb552d840 in draw_image_boxes (_dst=0x826fd78, image=0x8272748, 
    boxes=0xbfffcd18, dx=0, dy=0) at cairo-xlib-render-compositor.c:270
#3  0xb55145ce in upload_boxes (boxes=0xbfffcd18, extents=0xbfffcf80, 
    compositor=<optimized out>) at cairo-traps-compositor.c:1331
#4  clip_and_composite_boxes (compositor=0xb55824e0, extents=0xbfffcf80, 
    boxes=0xbfffcd18) at cairo-traps-compositor.c:1725
#5  0xb5515099 in _cairo_traps_compositor_paint (_compositor=0xb55824e0, 
    extents=0xbfffcf80) at cairo-traps-compositor.c:2036
#6  0xb54b8354 in _cairo_compositor_paint (compositor=0xb55824e0, 
    surface=0x826fd78, op=CAIRO_OPERATOR_SOURCE, source=0xbfffd2bc, 
    clip=0x8272878) at cairo-compositor.c:65
#7  0xb553260c in _cairo_xlib_surface_paint (_surface=0x826fd78, 
    op=CAIRO_OPERATOR_SOURCE, source=0xbfffd2bc, clip=0x8272878)
    at cairo-xlib-surface.c:1524
#8  0xb550082f in _cairo_surface_paint (surface=0x826fd78, 
---Type <return> to continue, or q <return> to quit---
    op=CAIRO_OPERATOR_SOURCE, source=0xbfffd2bc, clip=0x8272878)
    at cairo-surface.c:2006
#9  0xb54c1161 in _cairo_gstate_paint (gstate=0x8272128) at cairo-gstate.c:1067
#10 0xb54b223e in *INT_cairo_paint (cr=0x8271fb8) at cairo.c:1999
#11 0xb55cf8aa in -[CairoGState DPSimage:::::::::::] (self=0x8271f34, 
    _cmd=0xb55ed128, matrix=0x827253c, pixelsWide=64, pixelsHigh=64, 
    bitsPerSample=8, samplesPerPixel=3, bitsPerPixel=24, bytesPerRow=192, 
    isPlanar=0 '\000', hasAlpha=0 '\000', colorSpaceName=0xb7fb0954, 
    data=0xbfffd5fc) at CairoGState.m:1183
#12 0xb559a821 in -[GSContext(NSGraphics) NSDrawBitmap:::::::::::] (
    self=0x826f984, _cmd=0xb55fd610, rect=..., pixelsWide=64, pixelsHigh=64, 
    bitsPerSample=8, samplesPerPixel=3, bitsPerPixel=24, bytesPerRow=192, 
    isPlanar=0 '\000', hasAlpha=0 '\000', colorSpaceName=0xb7fb0954, 
    data=0xbfffd5fc) at GSContext.m:919
#13 0xb55d1a68 in -[CairoContext(Ops) GSDrawImage::] (self=0x826f984, 
    _cmd=0xb7efb900, rect=..., imageref=0x8266d54) at CairoContext.m:208
#14 0xb7c59398 in -[NSBitmapImageRep draw] (self=0x8266d54, _cmd=0xb7f37ab8)
    at NSBitmapImageRep.m:1387
#15 0xb7cda046 in -[NSImageRep drawAtPoint:] (self=0x8266d54, _cmd=0xb7f351b0, 
    aPoint=...) at NSImageRep.m:521
#16 0xb7cd6933 in -[NSImage drawRepresentation:inRect:] (self=0x8268b4c, 
    _cmd=0xb7f35240, imageRep=0x8266d54, aRect=...) at NSImage.m:795
#17 0xb7cd6fc7 in -[NSImage lockFocusOnRepresentation:] (self=0x8268b4c, 
---Type <return> to continue, or q <return> to quit---
    _cmd=0xb7f351f8, imageRep=0x826e0ac) at NSImage.m:1018
#18 0xb7cd7ddc in -[NSImage(Private) _doImageCache:] (self=0x8268b4c, 
    _cmd=0xb7f351e0, rep=0x8266d54) at NSImage.m:2064
#19 0xb7cd6b94 in -[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:] (self=0x8268b4c, _cmd=0xb7f09f18, dstRect=..., srcRect=..., 
    op=NSCompositeSourceOver, delta=1, respectFlipped=1 '\001', hints=0x0)
    at NSImage.m:879
#20 0xb7c78919 in -[NSCell drawInteriorWithFrame:inView:] (self=0x8269764, 
    _cmd=0xb7f09f28, cellFrame=..., controlView=0x82564bc) at NSCell.m:2043
#21 0xb7c78aaa in -[NSCell drawWithFrame:inView:] (self=0x8269764, 
    _cmd=0xb7ef4160, cellFrame=..., controlView=0x82564bc) at NSCell.m:2067
#22 0xb7c3fcf5 in -[NSAppIconView drawRect:] (self=0x82564bc, _cmd=0xb7f9c0c8, 
    rect=...) at NSApplication.m:568
#23 0xb7dc2b3c in -[NSView displayRectIgnoringOpacity:inContext:] (
    self=0x82564bc, _cmd=0xb7f9c0b8, aRect=..., context=<optimized out>)
    at NSView.m:2569
#24 0xb7dc2d4d in -[NSView displayRectIgnoringOpacity:inContext:] (
    self=0x8227c24, _cmd=0xb7f9c0b8, aRect=..., context=<optimized out>)
    at NSView.m:2602
#25 0xb7db46d6 in -[NSView displayRectIgnoringOpacity:] (self=0x8227c24, 
    _cmd=0xb7f9c0a8, aRect=...) at NSView.m:2518
#26 0xb7dc1124 in -[NSView displayIfNeededInRectIgnoringOpacity:] (
    self=0x8227c24, _cmd=0xb7f9c098, aRect=...) at NSView.m:2450
---Type <return> to continue, or q <return> to quit---
#27 0xb7db4552 in -[NSView displayIfNeededInRect:] (self=0x8227c24, 
    _cmd=0xb7f9c090, aRect=...) at NSView.m:2428
#28 0xb7db4377 in -[NSView displayIfNeeded] (self=0x8227c24, _cmd=0xb7fa33d0)
    at NSView.m:2410
#29 0xb7dcc59c in -[NSWindow orderWindow:relativeTo:] (self=0x82254fc, 
    _cmd=0xb7ef40e0, place=NSWindowAbove, otherWin=-1) at NSWindow.m:1826
#30 0xb7c3f2f4 in -[NSIconWindow orderWindow:relativeTo:] (self=0x82254fc, 
    _cmd=0xb7fa3388, place=NSWindowAbove, otherWin=-1) at NSApplication.m:447
#31 0xb7dc7bf0 in -[NSWindow orderFrontRegardless] (self=0x82254fc, 
    _cmd=0xb7ef41c8) at NSWindow.m:1735
#32 0xb7c45166 in -[NSApplication(Private) _appIconInit] (self=0x8153ea4, 
    _cmd=0xb7ef4350) at NSApplication.m:3808
#33 0xb7c47b23 in -[NSApplication _init] (self=0x8153ea4, _cmd=0xb7ef4360)
    at NSApplication.m:925
#34 0xb7891f1d in -[NSObject performSelector:withObject:] (self=0x8153ea4, 
    _cmd=0xb7b42410, aSelector=0xb7ef4360, anObject=0x8153ea4)
    at NSObject.m:2019
#35 0xb78fb535 in -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] (self=0x8153ea4, _cmd=0xb7b424b0, 
    aSelector=0xb7ef4360, aThread=<optimized out>, anObject=0x8153ea4, 
    aFlag=1 '\001', anArray=0x8190424) at NSThread.m:1245
#36 0xb78f8e92 in -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:modes:] (self=0x8153ea4, _cmd=0xb7b424b8, 
---Type <return> to continue, or q <return> to quit---
    aSelector=0xb7ef4360, anObject=0x8153ea4, aFlag=1 '\001', 
    anArray=0x8190424) at NSThread.m:1204
#37 0xb78fa831 in -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] (self=0x8153ea4, _cmd=0xb7ef4368, 
    aSelector=0xb7ef4360, anObject=0x8153ea4, aFlag=1 '\001')
    at NSThread.m:1214
#38 0xb7c462a7 in -[NSApplication init] (self=0x8153ea4, _cmd=0xb7ef40d0)
    at NSApplication.m:981
#39 0xb7c3e7a5 in +[NSApplication sharedApplication] (self=0xb7ef3a00, 
    _cmd=0x804ddc0) at NSApplication.m:851
#40 0x0804952d in main (argc=2, argv=0x0, env=0xb56cc6d0) at main.m:37
(gdb)
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.