Re: Crash when using Command-Q
Re: Crash when using Command-Q
- Subject: Re: Crash when using Command-Q
- From: John Stiles <email@hidden>
- Date: Wed, 2 Mar 2005 10:21:18 -0800
This looks like a double-release of some kind. Try turning on
NSZombieEnabled.
http://www.cocoadev.com/index.pl?NSZombieEnabled
On Mar 2, 2005, at 10:19 AM, Ricky Sharp wrote:
I've recently noticed that when I quit my app with Command-Q, it will
crash:
Thread 0 Crashed:
0 libobjc.A.dylib 0x908311f4 objc_msgSend + 0x14
1 com.apple.CoreFoundation 0x90194378 __CFArrayReleaseValues
+ 0x188
2 com.apple.CoreFoundation 0x9019538c __CFArrayDeallocate +
0x3c
3 com.apple.CoreFoundation 0x90190cf0 CFRelease + 0x1e8
4 com.apple.Foundation 0x909f15d4 NSPopAutoreleasePool +
0x164
5 com.apple.Foundation 0x90a359f0 +[NSAutoreleasePool
releaseAllPools] + 0x30
6 com.apple.AppKit 0x92ec1fb4 -[NSApplication
_deallocHardCore:] + 0xe4
7 com.apple.AppKit 0x92eae99c -[NSApplication
terminate:] + 0x1c4
8 com.apple.AppKit 0x92e78224 -[NSApplication
sendAction:to:from:] + 0x6c
9 com.apple.AppKit 0x92eada44 -[NSMenu
performActionForItemAtIndex:] + 0x188
10 com.apple.AppKit 0x92ef22e4 -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:] + 0x68
11 com.apple.AppKit 0x92ef8c14 -[NSMenu
performKeyEquivalent:] + 0x104
12 com.apple.AppKit 0x92ed7ccc -[NSApplication
_handleKeyEquivalent:] + 0x124
13 com.apple.AppKit 0x92df53dc -[NSApplication
sendEvent:] + 0xa5c
14 com.apple.AppKit 0x92dfdc54 -[NSApplication run] +
0x240
15 com.apple.AppKit 0x92eba2b8 NSApplicationMain +
0x1d0
16 ...teractive.mathseries.drills 0x00002cbc _start + 0x188
(crt.c:267)
17 dyld 0x8fe1a558 _dyld_start + 0x64
This is a full-screen "kiosk" type of app that hides the menu bar and
Dock (uses SetSystemUIMode). On the main "screen", I have a Quit
button. When I use that to quit, no crash occurs.
The menu bar that is hidden does have a Quit item with the Command-Q
equivalent. From the crash report, I can see that the menu is
ultimately sending the terminate: action.
But that's what the action method of my quit button does (it simply
does [NSApp terminate:self]).
Has anyone else experienced this problem? Is this something to do
with the menu bar being hidden?
Something I've thought about as a workaround is to remove the Quit
menu item from the menu bar (or at least the key equivalent) and
process Command-Q manually. After all, users will never interact
directly with the menu bar; it's simply never shown.
Thanks for any tips you may have.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden