Since switching to Cocoa, I’m getting a sporadic crash on quit of my app. Can any bright minds can give a suggestion to an area to focus on for solving this?
Here’s part of a typical crash log:
Process: OfficeTime.debug [1648]
Path: /Users/USER/Documents/*/OfficeTime.debug.app/Contents/MacOS/OfficeTime.debug
Identifier: net.officetime.officetime
Version: 1.7 (1.7.0.2.49)
App Item ID: 0
App External ID: 0
Code Type: X86 (Native)
Parent Process: launchd [187]
User ID: 501
Date/Time: 2013-06-12 12:50:48.214 +0100
OS Version: Mac OS X 10.8.4 (12E55)
Report Version: 10
Sleep/Wake UUID: B7373BC2-A000-462D-B326-6EA75AA24E73
Interval Since Last Report: 4070 sec
Crashes Since Last Report: 1
Per-App Interval Since Last Report: 48 sec
Per-App Crashes Since Last Report: 1
Anonymous UUID: 9AC4B0D7-63AB-D28C-7BED-EE0844CFE80F
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000020103071
VM Regions Near 0x20103071:
CG raster data 0000000017ef8000-0000000018163000 [ 2476K] r–/r-- SM=COW
–>
__TEXT 000000003e000000-000000003e042000 [ 264K] r-x/rwx SM=COW /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
Application Specific Information:
Performing @selector(itemAction:) from sender RBMenuItem 0x344b3c0
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 rbframework.dylib 0x00e2cacd 0xd8f000 + 645837
1 rbframework.dylib 0x00dfef7b 0xd8f000 + 458619
2 rbframework.dylib 0x00dfcfdf 0xd8f000 + 450527
3 rbframework.dylib 0x00e684e1 0xd8f000 + 890081
4 rbframework.dylib 0x00e68224 0xd8f000 + 889380
5 rbframework.dylib 0x00dfca4b 0xd8f000 + 449099
6 rbframework.dylib 0x00e4bc2c 0xd8f000 + 773164
7 rbframework.dylib 0x00e4d1fc 0xd8f000 + 778748
8 rbframework.dylib 0x00e29392 0xd8f000 + 631698
9 rbframework.dylib 0x00e7917b 0xd8f000 + 958843
10 rbframework.dylib 0x00e79d28 0xd8f000 + 961832
11 rbframework.dylib 0x00e292ff 0xd8f000 + 631551
12 rbframework.dylib 0x00e293d0 0xd8f000 + 631760
13 rbframework.dylib 0x00e32783 QuitMenuAction + 67
14 net.officetime.officetime 0x0007cc1d QuitMenuItem.Event_Action%b%o + 51
15 rbframework.dylib 0x00e5edf2 0xd8f000 + 851442
16 rbframework.dylib 0x00e8f23c 0xd8f000 + 1049148
17 libobjc.A.dylib 0x9390d5d3 -[NSObject performSelector:withObject:] + 70
18 com.apple.AppKit 0x91944ad2 -[NSApplication sendAction:to:from:] + 436
19 com.apple.AppKit 0x91a812fc -[NSMenuItem _corePerformAction] + 529
20 com.apple.AppKit 0x91a80f8b -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 163
21 com.apple.AppKit 0x91a80614 -[NSMenu _performActionWithHighlightingForItemAtIndex:sendAccessibilityNotification:] + 79
22 com.apple.AppKit 0x91a805c0 -[NSMenu _performActionWithHighlightingForItemAtIndex:] + 48
23 com.apple.AppKit 0x91a7fac5 -[NSMenu performKeyEquivalent:] + 306
24 com.apple.AppKit 0x91a7ee7c -[NSApplication _handleKeyEquivalent:] + 915
25 com.apple.AppKit 0x91934de1 -[NSApplication sendEvent:] + 5512
26 rbframework.dylib 0x00e90759 0xd8f000 + 1054553
27 rbframework.dylib 0x00e907d0 0xd8f000 + 1054672
28 net.officetime.officetime 0x00029c77 Delegate.Invoke%% + 34
29 net.officetime.officetime 0x000cb103 Application._CallFunctionWithExceptionHandling%%op + 248
30 rbframework.dylib 0x00e133b4 0xd8f000 + 541620
31 rbframework.dylib 0x00e906a5 0xd8f000 + 1054373
32 com.apple.AppKit 0x9184e62c -[NSApplication run] + 951
33 rbframework.dylib 0x00e90c93 0xd8f000 + 1055891
34 rbframework.dylib 0x00e13437 0xd8f000 + 541751
35 rbframework.dylib 0x00de44d2 RuntimeRun + 50
36 net.officetime.officetime 0x0023ef67 REALbasic._RuntimeRun + 34
37 net.officetime.officetime 0x00029ae2 _Main + 245
38 net.officetime.officetime 0x00002690 % main + 36
39 net.officetime.officetime 0x00b3d3ce _start + 116
40 net.officetime.officetime 0x00b3d324 start + 43