GWorkspace crash

2010-03-26 Thread Riccardo Mottola

Hi,

the recent changes, make GWorkspace crash or hang.
I get a crash on FreeBSD if I try to close one of the viewer windows:

#0  0x288e3a64 in objc_msg_lookup () from /usr/lib/libobjc.so.3
#1  0x282a231f in -[NSApplication(Private) 
_targetForAction:keyWindow:mainWindow:] (self=0x29046948, 
_cmd=0x284d2ab8, aSelector=0x290adde8, keyWindow=0x0,

mainWindow=0x2c4f9908) at NSApplication.m:3814
#2  0x282a22e2 in -[NSApplication(Private) 
_targetForAction:keyWindow:mainWindow:] (self=0x29046948, 
_cmd=0x284d2ab8, aSelector=0x290adde8,

keyWindow=0x2c4fa008, mainWindow=0x2c4f9908) at NSApplication.m:3841
#3  0x282a1833 in -[NSApplication targetForAction:] (self=0x29046948,
_cmd=0x284d2ac0, aSelector=0x290adde8) at NSApplication.m:2251
#4  0x282a3708 in -[NSApplication targetForAction:to:from:] 
(self=0x29046948,
_cmd=0x285203d0, theAction=0x290adde8, theTarget=0x0, 
sender=0x29b79ce8)

at NSApplication.m:2236
#5  0x283614d5 in -[NSMenu update] (self=0x299cae88, _cmd=0x285202e0)
at NSMenu.m:1150
#6  0x283617a2 in -[NSMenu update] (self=0x2998a548, _cmd=0x284d2988)
at NSMenu.m:1145
#7  0x282a50c2 in -[NSApplication(Private) _windowDidBecomeKey:] (
self=0x29046948, _cmd=0x284d2838, notification=0x293a19e8)
at NSApplication.m:3890
#8  0x287181ce in -[NSNotificationCenter _postAndRelease:] 
(self=0x29075fc8,
_cmd=0x28881968, notification=0x293a19e8) at 
NSNotificationCenter.m:1161
#9  0x287173f8 in -[NSNotificationCenter 
postNotificationName:object:userInfo:]

(self=0x29075fc8, _cmd=0x28881970, name=0x28581804, object=0x2c4fa008,
at NSControl.m:713
#10 0x2871726e in -[NSNotificationCenter postNotificationName:object:] (
self=0x29075fc8, _cmd=0x28572908, name=0x28581804, object=0x2c4fa008)
at NSNotificationCenter.m:1200
#11 0x2841e3df in -[NSWindow becomeKeyWindow] (self=0x2c4fa008,
_cmd=0x28572948) at NSWindow.m:1486
#12 0x28418764 in -[NSWindow makeKeyWindow] (self=0x2c4fa008, 
_cmd=0x28572438)

at NSWindow.m:1600
#13 0x284200a8 in -[NSWindow(GNUstepPrivate) _lossOfKeyOrMainWindow] (
self=0x2c4f9908, _cmd=0x28572988) at NSWindow.m:294
#14 0x2841b149 in -[NSWindow orderWindow:relativeTo:] (self=0x2c4f9908,
_cmd=0x28572978, place=NSWindowOut, otherWin=0) at NSWindow.m:1701
#15 0x28418498 in -[NSWindow orderOut:] (self=0x2c4f9908, _cmd=0x28572b10,
sender=0x2c4f9908) at NSWindow.m:1655
#16 0x2842031a in -[NSWindow close] (self=0x2c4f9908, _cmd=0x28572ba0)
at NSWindow.m:2689
#17 0x28426ef8 in -[NSWindow performClose:] (self=0x2c4f9908, 
_cmd=0x28572bf8,

sender=0x2c4c9038) at NSWindow.m:2911
#18 0x282a18d2 in -[NSApplication sendAction:to:from:] (self=0x29046948,
_cmd=0x284f5848, aSelector=0x28572bf8, aTarget=0x2c4f9908,
sender=0x2c4c9038) at NSApplication.m:2193
#19 0x283028f4 in -[NSControl sendAction:to:] (self=0x2c4c9038,
_cmd=0x284e7100, theAction=0x28572bf8, theTarget=0x2c4f9908)

#20 0x282dc3e4 in -[NSCell _sendActionFrom:] (self=0x2c4ecb88,
_cmd=0x284e7150, sender=0x2c4c9038) at NSCell.m:1437
#21 0x282e1f6a in -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (
self=0x2c4ecb88, _cmd=0x284f58e8, theEvent=Variable "theEvent" is 
not available.

) at NSCell.m:1755
#22 0x283025c0 in -[NSControl mouseDown:] (self=0x2c4c9038, 
_cmd=0x28572dc8,

theEvent=0x2936eba8) at NSControl.m:869
#23 0x28425f28 in -[NSWindow sendEvent:] (self=0x2c4f9908, _cmd=0x284d2a60,
theEvent=0x2936eba8) at NSWindow.m:3675
#24 0x282a51b2 in -[NSApplication sendEvent:] (self=0x29046948,
_cmd=0x284d2990, theEvent=0x2936eba8) at NSApplication.m:2068
#25 0x282a6e8e in -[NSApplication run] (self=0x29046948, _cmd=0x80f4cd0)
at NSApplication.m:1530
#26 0x0804d50b in main () at main.m:37



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: GWorkspace crash

2010-03-27 Thread Wolfgang Lux

Riccardo Mottola:


the recent changes, make GWorkspace crash or hang.
I get a crash on FreeBSD if I try to close one of the viewer windows:


Curiously, I stumbled over the same crash just yesterday, which  
happens because a dangling delegate pointer is left in the viewer  
window when it is closed. I've just committed a change that fixes  
this issue.


Wolfgang



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev