[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem in NSDistributedNotificationCenter while terminating app
From: |
Ondrej Florian |
Subject: |
problem in NSDistributedNotificationCenter while terminating app |
Date: |
Sun, 29 Jan 2023 19:55:48 +0100 |
Hi everyone,
I am encountering problem where an app is not terminating
correctly because it is stack waiting for reply from remote connection
From the stacktrace I assume this happens when NSApplication is
being deallocated and NSDistributedNotificationCenter tries to
removeObserver.
Shouldn't this happen before NSApplication deallocates?
Could this be the problem?
Here is the stacktrace:
#1 [GSRunLoopCtxt pollUntil:within:] GSRunLoopCtxt.m:391
#2 [NSRunLoop acceptInputForMode:beforeDate:] NSRunLoop.m:1254
#4 [NSConnection(Private) _getReplyRmc:for:] NSConnection.m:3192
#5 [NSConnection(GNUstepExtensions) forwardInvocation:forProxy:]
NSConnection.m:2070
#6 [NSDistantObject forwardInvocation:] at NSDistantObject.m:618
#10 [NSDistributedNotificationCenter removeObserver:name:object:]
NSDistributedNotificationCenter.m:468
#11 [NSNotificationCenter removeObserver:] NSNotificationCenter.m:1047
#12 [XGServer dealloc] XGServer.m:506
#16 [NSApplication dealloc] NSApplication.m:1255
#20 [NSApplication replyToApplicationShouldTerminate:] NSApplication.m:3584
#21 [NSApplication terminate:] NSApplication.m:3536
#22 [NSApplication sendAction:to:from:] NSApplication.m:2273
#23 [NSMenu performActionForItemAtIndex:] NSMenu.m:1393
#26 [NSMenuView mouseDown:] NSMenuView.m:2001
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- problem in NSDistributedNotificationCenter while terminating app,
Ondrej Florian <=