[Top][All Lists]

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

Re: GWorkspace seg fault

From: Fred Kiefer
Subject: Re: GWorkspace seg fault
Date: Mon, 12 Feb 2007 15:56:11 +0100
User-agent: Thunderbird (X11/20060911)

Enrico Sersale schrieb:
> On 2007-02-12 13:00:21 +0200 Fred Kiefer <address@hidden> wrote:
>> Stefan Bidigaray schrieb:
>>> Still seg faulting!  The good news is that it's on a different place
>>> now.  The backtrace is attached.
>> Looks like I should go ahead and protect all the cairo calls from a
>> missing _ct. But why is this the case? Didn't DPSinitgraphics get called
>> or is there no surface defined to draw on? 
> I can say only that, removing that -drawWithFrame:inView:, the app
> doesn't crash anymore (even if I don't see how this could be a
> GWorkspace bug exposed by the use of the new backend because
> -drawWithFrame:inView: is used for an existing view in a visible window
> and also checking the rect).

I already added a few more checks in my local code copy, but I would
like to resolve the scrolling problem as well before committing that bit.

> Some other things I'm noticing are that views are not redrawn after
> scrolling (visible in NSOpenPanel and in other places), the fonts are
> missing and the alpha channel of the images resized with -GSReadRect: is
> drawn as black.
> Moreover, I'm still having problem with -GSReadRect:. See this:
> <mdfinder-trace>
This is caused by my optimistic coding. I expect that the result values
have a specific sign, when the view is flipped this will result in a
negative size, being interpreted by malloc as a very big one, which
causes this problem. I will solve that soon by adding two calls to abs().

>> I would like to ask you to
>> debug this. I tried to use GWorkspace myself, but it falls over because
>> of some missing thumbnail files.
> Can you send me a backtrace of this?
> Anyway, removing $HOME/GNUstep/Library/Thumbnails should fix the problem.

No, it did not help. I attached the backtrace to this mail, but it wont
help you much. I think the important part comes before that:

2007-02-12 15:09:43.607 GWorkspace[17556] File NSData.m: 167. In
readContentsOfFile Open
attempt failed - Datei oder Verzeichnis nicht gefunden
2007-02-12 15:09:43.608 GWorkspace[17556] NSBitmapImageRep: nil image data

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1222252016 (LWP 17556)]
0xb7977b49 in -[NSString initWithCString:encoding:] (self=0x81e46d8,
    _cmd=0xb7b2b628, byteString=0x0, encoding=NSUTF8StringEncoding)
    at NSString.m:952
952       return [self initWithBytes: byteString
(gdb) bt
#0  0xb7977b49 in -[NSString initWithCString:encoding:] (self=0x81e46d8,
    _cmd=0xb7b2b628, byteString=0x0, encoding=NSUTF8StringEncoding)
    at NSString.m:952
#1  0xb7977482 in +[NSString stringWithCString:encoding:] (self=0xb7b2b500,
    _cmd=0xb7b06578, byteString=0x0, encoding=NSUTF8StringEncoding)
    at NSString.m:731
#2  0xb78f138a in find_address (abfd=0x87f31b0, section=0x889f024,
    info=0xbfefcad4) at NSException.m:349
#3  0xb72a3957 in bfd_map_over_sections ()
   from /usr/lib/libbfd-
#4  0xb78f1451 in -[GSBinaryFileInfo functionForAddress:] (self=0x87c3a48,
    _cmd=0xb7b06628, address=0x804d271) at NSException.m:364
#5  0xb78f1d1c in -[GSStackTrace init] (self=0x87c0188, _cmd=0xb7b06600)
    at NSException.m:513
#6  0xb78f18e7 in +[GSStackTrace currentStack] (self=0xb7b06240,
    _cmd=0xb7b066b0) at NSException.m:445
#7  0xb78f26f7 in -[NSException raise] (self=0x87bf370, _cmd=0xb7b06688)
    at NSException.m:702
#8  0xb78f2286 in +[NSException raise:format:arguments:] (self=0xb7b06140,
    _cmd=0xb7b06670, name=0xb7b05e90, format=0xb7e4aa6c,
    argList=0xbfefcc30 "address@hidden") at NSException.m:655
#9  0xb78f21be in +[NSException raise:format:] (self=0xb7b06140,
    _cmd=0xb7e4b5d8, name=0xb7b05e90, format=0xb7e4aa6c) at NSException.m:641
#10 0xb7c86d01 in repd_for_rep (_reps=0x87ab988, rep=0x0) at NSImage.m:158
#11 0xb7c8df9b in -[NSImage(Private) _doImageCache] (self=0x87aba10,
    _cmd=0xb7e4b750) at NSImage.m:1825
#12 0xb7c88d4d in -[NSImage compositeToPoint:fromRect:operation:] (
    self=0x87aba10, _cmd=0xb7e4b740, aPoint={x = 32, y = 13}, aRect=
        {origin = {x = 0, y = 0}, size = {width = 0, height = 0}},
    op=NSCompositeSourceOver) at NSImage.m:769
#13 0xb7c88c71 in -[NSImage compositeToPoint:operation:] (self=0x87aba10,
    _cmd=0x8163310, aPoint={x = 32, y = 13}, op=NSCompositeSourceOver)
    at NSImage.m:751
#14 0x081034ee in -[FiendLeaf drawRect:] (self=0x87a98b0, _cmd=0xb7e99d20,
    rect={origin = {x = 0, y = 0}, size = {width = 64, height = 64}})
    at Fiend/FiendLeaf.m:356
#15 0xb7d54b29 in -[NSView displayIfNeededInRectIgnoringOpacity:] (
    self=0x87a98b0, _cmd=0xb7e99d10, aRect=
        {origin = {x = 0, y = 0}, size = {width = 64, height = 64}})
    at NSView.m:2068
---Type <return> to continue, or q <return> to quit---
#16 0xb7d550ab in -[NSView displayIfNeededInRectIgnoringOpacity:] (
    self=0x87aa2b0, _cmd=0xb7e99d10, aRect=
        {origin = {x = 0, y = 0}, size = {width = 64, height = 64}})
    at NSView.m:2127
#17 0xb7d546c5 in -[NSView displayIfNeededIgnoringOpacity] (self=0x87aa2b0,
    _cmd=0xb7e99d00) at NSView.m:2002
#18 0xb7d5437b in -[NSView displayIfNeeded] (self=0x87aa2b0, _cmd=0xb7e9fe48)
    at NSView.m:1950
#19 0xb7d64e1a in -[NSWindow orderWindow:relativeTo:] (self=0x87aa1b0,
    _cmd=0xb7e9fe18, place=NSWindowAbove, otherWin=0) at NSWindow.m:1588
#20 0xb7d64b07 in -[NSWindow orderFront:] (self=0x87aa1b0, _cmd=0x8161478,
    sender=0x0) at NSWindow.m:1499
#21 0x080fe524 in -[Fiend orderFrontLeaves] (self=0x87999e0, _cmd=0x81612f0)
    at Fiend/Fiend.m:718
#22 0x080faddf in -[Fiend activate] (self=0x87999e0, _cmd=0x8113ba0)
    at Fiend/Fiend.m:200
#23 0x0805ecd4 in -[GWorkspace showFiend:] (self=0x82b6ae0, _cmd=0x81134a0,
    sender=0x0) at GWorkspace.m:2282
#24 0x080527b3 in -[GWorkspace applicationWillFinishLaunching:] (
    self=0x82b6ae0, _cmd=0xb7e13d20, aNotification=0x8448980)
    at GWorkspace.m:459
#25 0xb79215bf in -[NSNotificationCenter _postAndRelease:] (self=0x81a19c8,
    _cmd=0xb7b13a28, notification=0x8448980) at NSNotificationCenter.m:1068
#26 0xb7921b17 in -[NSNotificationCenter postNotificationName:object:userInfo:] 
(self=0x81a19c8, _cmd=0xb7b13a30, name=0xb7eac010, object=0x82d2778,
    info=0x0) at NSNotificationCenter.m:1136
#27 0xb79219cc in -[NSNotificationCenter postNotificationName:object:] (
    self=0x81a19c8, _cmd=0xb7e13828, name=0xb7eac010, object=0x82d2778)
    at NSNotificationCenter.m:1116
#28 0xb7bf42f9 in -[NSApplication finishLaunching] (self=0x82d2778,
    _cmd=0xb7e13988) at NSApplication.m:948
#29 0xb7bf5f72 in -[NSApplication run] (self=0x82d2778, _cmd=0x810dad8)
    at NSApplication.m:1348
#30 0x0804d45b in main () at main.m:37

reply via email to

[Prev in Thread] Current Thread [Next in Thread]