Sun 06 Jul 2003 10:43:55 PM UTC, original submission:
With current CVS version, running any graphical application on Solaris 2.6 with libwraster of WMaker 0.80.2 installed leads to a crash.
Compilation occoured with gcc 3.2.2, so no libobjc is used.
the backtrace of such a a crash is:
#0 0xee2fdd50 in _bitmap_combine_alpha (context=0x104348,
data_planes=0x1e81a0, width=64, height=16777215, bits_per_sample=255,
samples_per_pixel=0, bits_per_pixel=24, bytes_per_row=192, colour_space=1,
one_is_black=0, is_planar=0, has_alpha=0 '\000', fast_min=1,
dest_im=0x1de008, dest_alpha=0x1de048, srect={x = 0, y = -64, width = 64,
height = 64}, drect=0xefffe100, op=NSCompositeClear,
drawMechanism=XGDM_FAST32) at XGBitmap.m:930
#1 0xee307a60 in i_XGGState_Ops_DPSimage__________ (self=0x1ec2e0,
_cmd=0x1, matrix=0x1de008, pixelsWide=64, pixelsHigh=64, bitsPerSample=8,
samplesPerPixel=3, bitsPerPixel=24, bytesPerRow=192, isPlanar=0,
hasAlpha=0, colorSpaceName=0xef72c054, data=0x1ddca8) at XGGState.m:1830
#2 0xee2df628 in i_GSContext_NSGraphics_NSDrawBitmap__________ (
self=0x11ce18, _cmd=0xef732248, rect={origin = {x = 0, y = 0}, size = {
width = 64, height = 64}}, pixelsWide=64, pixelsHigh=64,
bitsPerSample=8, samplesPerPixel=3, bitsPerPixel=24, bytesPerRow=192,
isPlanar=0, hasAlpha=0, colorSpaceName=0xef72c054, data=0x1ddca8)
at GSContext.m:805
#3 0xef51e134 in _i_NSBitmapImageRep__draw (self=0xefffe2b0, _cmd=0x8)
at ../Headers/AppKit/NSGraphics.h:168
#4 0xef580698 in i_NSImageRep__drawAtPoint (self=0x1e00f0, _cmd=0xef749a48,
aPoint={x = 0, y = 0}) at NSImageRep.m:451
#5 0xef57b200 in i_NSImage__drawRepresentation_inRect (self=0x1dbc00,
_cmd=0xef749f50, imageRep=0x1e00f0, aRect={origin = {x = 0, y = 0},
size = {width = 64, height = 64}}) at NSImage.m:831
---Type <return> to continue, or q <return> to quit---
#6 0xef57d53c in _i_NSImage_Private__doImageCache (self=0x1dbc00,
_cmd=0xef749920)
at /usr/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:140
#7 0xef57a10c in i_NSImage__compositeToPoint_fromRect_operation (
self=0x1dbc00, _cmd=0xef749910, aPoint={x = 0, y = 0}, aRect={origin = {
x = 0, y = 0}, size = {width = 64, height = 64}},
op=NSCompositeSourceOver) at NSImage.m:685
#8 0xef57a060 in i_NSImage__compositeToPoint_operation (self=0x1dbc00,
_cmd=0xef739884, aPoint={x = 0, y = 0}, op=NSCompositeSourceOver)
at NSImage.m:673
#9 0xef53c7d0 in i_NSCell__drawInteriorWithFrame_inView ()
#10 0xef53c9f4 in i_NSCell__drawWithFrame_inView ()
#11 0xef50a7f0 in i_NSAppIconView__drawRect ()
#12 0xef61c1f8 in i_NSView__displayIfNeededInRectIgnoringOpacity ()
#13 0xef61cac8 in i_NSView__displayIfNeededInRectIgnoringOpacity ()
#14 0xef61b210 in _i_NSView__displayIfNeeded ()
#15 0xef629fb4 in i_NSWindow__orderWindow_relativeTo ()
#16 0xef50a414 in i_NSIconWindow__orderWindow_relativeTo ()
#17 0xef629c80 in _i_NSWindow__orderFrontRegardless ()
#18 0xef51246c in _i_NSApplication_Private__appIconInit ()
#19 0xef50b974 in _i_NSApplication__finishLaunching ()
#20 0xef50cd18 in _i_NSApplication__run ()
#21 0x15c80 in gnustep_base_user_main ()
this happened with older versions too. Experiments done only with older versions, showed that this bug is not triggered if libwraster is not installed and so not used. In such case every application seems to work (of course with no image support except TIFF).
alex malmberg suggests that dest_im->image is null.
here the prints:
print dest_im
$1 = (RXImage *) 0x1de008
print *dest_im
$2 = {image = 0x0, info = {shmseg = 7274596, shmid = 6619194,
shmaddr = 0x200035 "\fi\220", readOnly = 3473418}, is_shared = 0 '\000'}
-ric
|