discuss-gnustep
[Top][All Lists]
Advanced

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

Re: latest theme changes make Thematic crash


From: Fred Kiefer
Subject: Re: latest theme changes make Thematic crash
Date: Mon, 08 Apr 2013 21:53:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

I don't think that this problem is related to the NSImage changes.

What happens here is that a window gets closed that was key and main window and had a delegate. In that process the key and main window state get transferred separately. This leads to the menu getting updated while the old window is still main. Now the delegate of that window gets referenced and this delegate seems to be invalid at that point. To find out, what this delegate is and why it is already deallocated one needs to know more details about the application. Or run it with NSZombie enabled.

On 08.04.2013 12:22, Riccardo Mottola wrote:

After the latest changes by, if I try to theme the "arrow" in the menu,
on save, Thematic will crash.
This happen both if I theme directly through the image elements
inspector or through the specific Menu inspector.

interesting is the double- update in NSMenu.

Riccardo

PS: apparently this bug is not just for that image, but if I change any
image in Thematic.


0xbb29ff1c in objc_msg_lookup () from /usr/lib/libobjc.so.3
(gdb) bt
#0  0xbb29ff1c in objc_msg_lookup () from /usr/lib/libobjc.so.3
#1  0xbb82df74 in -[NSApplication(Private) _targetForAction:window:] (
     self=0xb92e4264, _cmd=0xbbafba30, aSelector=0xb921d5d0,
window=0xb9088804)
     at NSApplication.m:3891
#2  0xbb82e12f in -[NSApplication(Private)
_targetForAction:keyWindow:mainWindow:] (self=0xb92e4264,
_cmd=0xbbafb6c8, aSelector=0xb921d5d0,
     keyWindow=0xb831ed04, mainWindow=0xb9088804) at NSApplication.m:3936
#3  0xbb82be5f in -[NSApplication targetForAction:] (self=0xb92e4264,
     _cmd=0xbbafb6d0, aSelector=0xb921d5d0) at NSApplication.m:2297
#4  0xbb82bda0 in -[NSApplication targetForAction:to:from:]
(self=0xb92e4264,
     _cmd=0xbbb4c750, theAction=0xb921d5d0, theTarget=0x0,
sender=0xb8746884)
     at NSApplication.m:2273
#5  0xbb8fa676 in -[NSMenu update] (self=0xb9030d04, _cmd=0xbbb4c690)
     at NSMenu.m:1156
#6  0xbb8fa841 in -[NSMenu update] (self=0xb8704444, _cmd=0xbbafb5b0)
     at NSMenu.m:1151
#7  0xbb831178 in -[NSApplication(Private) _windowDidBecomeKey:] (
     self=0xb92e4264, _cmd=0xbbafb450, notification=0xb8106f84)
     at NSApplication.m:3986
#8  0xbb46283d in -[NSNotificationCenter _postAndRelease:]
(self=0xb9269b44,
     _cmd=0xbb70ad80, notification=0xb8106f84) at
NSNotificationCenter.m:1224
#9  0xbb461ce6 in -[NSNotificationCenter
postNotificationName:object:userInfo:]
     (self=0xb9269b44, _cmd=0xbb70ad88, name=0xbbbb8ab0, object=0xb831ed04,
     info=0x0) at NSNotificationCenter.m:1283
#10 0xbb46192d in -[NSNotificationCenter postNotificationName:object:] (
     self=0xb9269b44, _cmd=0xbbbaab10, name=0xbbbb8ab0, object=0xb831ed04)
     at NSNotificationCenter.m:1263
#11 0xbb9d9212 in -[NSWindow becomeKeyWindow] (self=0xb831ed04,
     _cmd=0xbbbaab58) at NSWindow.m:1575
#12 0xbb9d2924 in -[NSWindow makeKeyWindow] (self=0xb831ed04,
_cmd=0xbbbaa628)
     at NSWindow.m:1689
#13 0xbb9e4cb8 in -[NSWindow(GNUstepPrivate) _lossOfKeyOrMainWindow] (
     self=0xb9088804, _cmd=0xbbbaab90) at NSWindow.m:322
#14 0xbb9d79b6 in -[NSWindow orderWindow:relativeTo:] (self=0xb9088804,
     _cmd=0xbbbaab88, place=NSWindowOut, otherWin=0) at NSWindow.m:1790
#15 0xbb9d2b1b in -[NSWindow orderOut:] (self=0xb9088804, _cmd=0xbbbaac18,
     sender=0xb9088804) at NSWindow.m:1744
#16 0xbb9e3fae in -[NSWindow close] (self=0xb9088804, _cmd=0xbbbaae10)
     at NSWindow.m:2788
#17 0xbb9e0f7b in -[NSWindow performClose:] (self=0xb9088804,
_cmd=0xbbbab108,
     sender=0xb92e4264) at NSWindow.m:3013
#18 0xbb9e21fe in -[NSWindow sendEvent:] (self=0xb9088804, _cmd=0xbbafb680,
     theEvent=0xb8105104) at NSWindow.m:4067
#19 0xbb830e0e in -[NSApplication sendEvent:] (self=0xb92e4264,
     _cmd=0xbbafb5b8, theEvent=0xb8105104) at NSApplication.m:2105
#20 0xbb832ee4 in -[NSApplication run] (self=0xb92e4264, _cmd=0xbbaf1048)




reply via email to

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