I'd appreciate it if someone can help me analyze this crash report and give me some clues. A lot of my users are running into this problem (the app just crashes randomly) and I'm not sure how to reproduce it.
Crash report is below. Aside from the main thread that this is reporting, the Thread 9 is also consistent across all crash reports of this kind. I have a view controller that works with cocoa bindings. It uses a private NSManagedObjectContext to load the data and bind the UI with. Something goes wrong when this view (and context) is deallocated, but I'm not sure what and how to address it. Any thoughts would be helpful. If there are any tricks I can use to reproduce the issue, that would be great as well.
Version: 1.0.5 (1.05.3)
Code Type: X86-64 (Native)
OS Version: Mac OS X 10.10.4 (14E46)
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff987ba1b0 __CFBasicHashRehash + 0
1 com.apple.CoreFoundation 0x00007fff987bfc60 __CFBasicHashAddValue + 80
2 com.apple.CoreFoundation 0x00007fff987c7915 CFBasicHashAddValue + 325
3 com.apple.Foundation 0x00007fff98f5b15e _NSKeyValueReplaceObservationInfoForObject + 688
4 com.apple.Foundation 0x00007fff98f60780 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 326
5 com.apple.Foundation 0x00007fff98f605d9 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 114
6 com.apple.Foundation 0x00007fff98f604a4 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 253
7 com.apple.AppKit 0x00007fff8def5c3f -[_NSModelObservingTracker _registerOrUnregister:observerNotificationsForKeyPath:] + 367
8 com.apple.AppKit 0x00007fff8def58ec -[_NSModelObservingTracker analyzeKeyPath:registerOrUnregister:] + 435
9 com.apple.AppKit 0x00007fff8def7c87 -[NSController removeObserver:forKeyPath:] + 41
10 com.apple.AppKit 0x00007fff8def1cf8 -[NSBinder _updateObservingRegistration:] + 818
11 com.apple.AppKit 0x00007fff8e143267 -[NSBinder releaseConnectionWithSynchronizePeerBinders:] + 44
12 com.apple.AppKit 0x00007fff8e1467bc -[NSValueBinder releaseConnectionWithSynchronizePeerBinders:] + 50
13 com.apple.AppKit 0x00007fff8dee3290 -[NSObject(_NSBindingAdaptorAccess) _releaseBindingAdaptor] + 196
14 com.apple.AppKit 0x00007fff8de06d3a -[NSView _releaseBindingAdaptor] + 69
15 com.apple.AppKit 0x00007fff8de059f7 -[NSView _finalizeWithReferenceCounting] + 1863
16 com.apple.AppKit 0x00007fff8de0527e -[NSView dealloc] + 151
17 com.apple.AppKit 0x00007fff8dee2c34 -[NSControl dealloc] + 169
18 com.apple.AppKit 0x00007fff8df94b1f -[NSTextField dealloc] + 58
19 libobjc.A.dylib 0x00007fff9139889c objc_object::sidetable_release(bool) + 236
20 libobjc.A.dylib 0x00007fff9137ee8f (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 575
21 com.apple.CoreFoundation 0x00007fff987f16f2 _CFAutoreleasePoolPop + 50
22 com.apple.Foundation 0x00007fff98f38762 -[NSAutoreleasePool drain] + 153
23 com.apple.AppKit 0x00007fff8de07bc1 -[NSApplication run] + 800
24 com.apple.AppKit 0x00007fff8dd84244 NSApplicationMain + 1832
25 libdyld.dylib 0x00007fff8e9245c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff952a6232 kevent64 + 10
1 libdispatch.dylib 0x00007fff98630a6a _dispatch_mgr_thread + 52
Thread 2:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff952a04de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff9529f64f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff98829eb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff9882937b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff98828bd8 CFRunLoopRunSpecific + 296
5 com.apple.CFNetwork 0x00007fff93273220 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
6 com.apple.Foundation 0x00007fff98f56dc2 __NSThread__main__ + 1345
7 libsystem_pthread.dylib 0x00007fff996c9268 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff996c91e5 _pthread_start + 176
9 libsystem_pthread.dylib 0x00007fff996c741d thread_start + 13
Thread 3:: PF_AFNetworking
0 libsystem_kernel.dylib 0x00007fff952a04de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff9529f64f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff98829eb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff9882937b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff98828bd8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff98fa8a59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
6 com.apple.Foundation 0x00007fff9901e17f -[NSRunLoop(NSRunLoop) run] + 74
7 com.parse.ParseOSX 0x000000010dcd002c +[PF_AFURLConnectionOperation networkRequestThreadEntryPoint:] + 204
8 com.apple.Foundation 0x00007fff98f56dc2 __NSThread__main__ + 1345
9 libsystem_pthread.dylib 0x00007fff996c9268 _pthread_body + 131
10 libsystem_pthread.dylib 0x00007fff996c91e5 _pthread_start + 176
11 libsystem_pthread.dylib 0x00007fff996c741d thread_start + 13
Thread 4:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff952a53fa __select + 10
1 libsystem_pthread.dylib 0x00007fff996c9268 _pthread_body + 131
2 libsystem_pthread.dylib 0x00007fff996c91e5 _pthread_start + 176
3 libsystem_pthread.dylib 0x00007fff996c741d thread_start + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff952a04de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff9529f64f mach_msg + 55
2 com.apple.CoreGraphics 0x00007fff8ce0d9c8 _CGSGetPortStreamInline + 144
3 com.apple.CoreGraphics 0x00007fff8ce0d7d4 CGSSnarfAndDispatchDatagrams + 148
4 com.apple.CoreGraphics 0x00007fff8ce0d63c CGSGetNextEventRecordInternal + 92
5 com.apple.CoreGraphics 0x00007fff8ce0d587 CGEventCreateNextEvent + 48
6 com.apple.HIToolbox 0x00007fff95c4975c PullEventsFromWindowServerOnConnection(unsigned int, unsigned char, __CFMachPortBoost*) + 102
7 com.apple.HIToolbox 0x00007fff95c496c3 MessageHandler(__CFMachPort*, void*, long, void*) + 51
8 com.apple.CoreFoundation 0x00007fff98837d87 __CFMachPortPerform + 247
9 com.apple.CoreFoundation 0x00007fff98837c79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
10 com.apple.CoreFoundation 0x00007fff98837beb __CFRunLoopDoSource1 + 475
11 com.apple.CoreFoundation 0x00007fff98829767 __CFRunLoopRun + 2375
12 com.apple.CoreFoundation 0x00007fff98828bd8 CFRunLoopRunSpecific + 296
13 com.apple.AppKit 0x00007fff8deda56b _NSEventThread + 137
14 libsystem_pthread.dylib 0x00007fff996c9268 _pthread_body + 131
15 libsystem_pthread.dylib 0x00007fff996c91e5 _pthread_start + 176
16 libsystem_pthread.dylib 0x00007fff996c741d thread_start + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff952a594a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff996c740d start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff952a594a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff996c740d start_wqthread + 13
Thread 8:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x00007fff952a5166 __psynch_mutexwait + 10
1 com.apple.Foundation 0x00007fff98f26b0c -[NSRecursiveLock lock] + 22
2 com.apple.AppKit 0x00007fff8de5869e -[NSWindow childWindows] + 46
3 com.apple.AppKit 0x00007fff8df7629f -[NSWindow _setTransformForAnimation:anchorPoint:] + 789
4 com.apple.AppKit 0x00007fff8df75f70 -[_NSWindowTransformAnimation setWindowMagnification:forProgress:] + 677
5 com.apple.AppKit 0x00007fff8df758d3 -[_NSWindowTransformAnimation setCurrentProgress:] + 496
6 com.apple.AppKit 0x00007fff8df77dc8 -[NSAnimation(NSInternal) _advanceTimeWithDisplayLink:] + 165
7 com.apple.AppKit 0x00007fff8df77bf6 -[NSScreenDisplayLink _fire] + 399
8 com.apple.CoreFoundation 0x00007fff9886e2e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
9 com.apple.CoreFoundation 0x00007fff9886df73 __CFRunLoopDoTimer + 1059
10 com.apple.CoreFoundation 0x00007fff988e153d __CFRunLoopDoTimers + 301
11 com.apple.CoreFoundation 0x00007fff98829608 __CFRunLoopRun + 2024
12 com.apple.CoreFoundation 0x00007fff98828bd8 CFRunLoopRunSpecific + 296
13 com.apple.Foundation 0x00007fff98fa8a59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
14 com.apple.AppKit 0x00007fff8df778b4 -[NSAnimation(NSInternal) _runBlocking] + 390
15 com.apple.AppKit 0x00007fff8df7770a -[NSAnimation(NSInternal) _animationThread] + 66
16 libdispatch.dylib 0x00007fff98632323 _dispatch_call_block_and_release + 12
17 libdispatch.dylib 0x00007fff9862dc13 _dispatch_client_callout + 8
18 libdispatch.dylib 0x00007fff9863088f _dispatch_root_queue_drain + 935
19 libdispatch.dylib 0x00007fff9863efe4 _dispatch_worker_thread3 + 91
20 libsystem_pthread.dylib 0x00007fff996c9637 _pthread_wqthread + 729
21 libsystem_pthread.dylib 0x00007fff996c740d start_wqthread + 13
Thread 9:: Dispatch queue: NSManagedObjectContext 0x6180003ea000: MacAddEditToDosPrivateContext
0 libobjc.A.dylib 0x00007fff913780dd objc_msgSend + 29
1 com.apple.AppKit 0x00007fff8dea4863 -[NSClipView _reflectDocumentViewFrameChange] + 47
2 com.apple.AppKit 0x00007fff8dde06d1 -[NSView _postFrameChangeNotification] + 206
3 com.apple.AppKit 0x00007fff8dddffab -[NSView setFrameSize:] + 2059
4 com.apple.AppKit 0x00007fff8dea01e6 -[NSTextView(NSPrivate) _setFrameSize:forceScroll:] + 735
5 com.apple.AppKit 0x00007fff8de9e182 -[NSTextView setConstrainedFrameSize:] + 642
6 com.apple.UIFoundation 0x00007fff97ce5b54 -[NSLayoutManager(NSPrivate) _resizeTextViewForTextContainer:] + 1058
7 com.apple.UIFoundation 0x00007fff97ce55ee -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] + 2745
8 com.apple.UIFoundation 0x00007fff97c374f9 -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:] + 753
9 com.apple.UIFoundation 0x00007fff97c59291 -[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:] + 152
10 com.apple.UIFoundation 0x00007fff97c58d93 -[NSTextStorage processEditing] + 198
11 com.apple.UIFoundation 0x00007fff97c58a61 -[NSTextStorage endEditing] + 111
12 com.apple.AppKit 0x00007fff8e574afb -[_NSTextPlugin showValue:inObject:] + 143
13 com.apple.AppKit 0x00007fff8def6221 -[NSValueBinder _adjustObject:mode:observedController:observedKeyPath:context:editableState:adjustState:] + 463
14 com.apple.AppKit 0x00007fff8def5fbf -[NSValueBinder _observeValueForKeyPath:ofObject:context:] + 276
15 com.apple.AppKit 0x00007fff8dfa1101 -[NSTextValueBinder _observeValueForKeyPath:ofObject:context:] + 43
16 com.apple.Foundation 0x00007fff98f5a0f3 NSKeyValueNotifyObserver + 382
17 com.apple.Foundation 0x00007fff98f64e96 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 1142
18 com.apple.AppKit 0x00007fff8dee9eb2 -[NSController _notifyObserversForKeyPath:change:] + 206
19 com.apple.AppKit 0x00007fff8def96f6 -[NSController observeValueForKeyPath:ofObject:change:context:] + 841
20 com.apple.Foundation 0x00007fff98f5a0f3 NSKeyValueNotifyObserver + 382
21 com.apple.Foundation 0x00007fff98f66d68 NSKeyValueDidChange + 463
22 com.apple.Foundation 0x00007fff99074071 -[NSObject(NSKeyValueObservingPrivate) _didChangeValuesForKeys:] + 134
23 com.apple.CoreData 0x00007fff9a3c606c -[NSFaultHandler turnObject:intoFaultWithContext:] + 460
24 com.apple.CoreData 0x00007fff9a3f08d1 -[NSManagedObjectContext(_NSInternalAdditions) _disposeObjects:count:notifyParent:] + 353
25 com.apple.CoreData 0x00007fff9a3eff08 -[NSManagedObjectContext(_NSInternalAdditions) _dispose:] + 392
26 com.apple.CoreData 0x00007fff9a3efab1 -[NSManagedObjectContext _dealloc__] + 337
27 com.apple.CoreData 0x00007fff9a41e63b __internalBlockToDeallocNSManagedObjectContext_block_invoke + 75
28 com.apple.CoreData 0x00007fff9a3e44d6 developerSubmittedBlockToNSManagedObjectContextPerform + 182
29 libdispatch.dylib 0x00007fff9862dc13 _dispatch_client_callout + 8
30 libdispatch.dylib 0x00007fff98631365 _dispatch_queue_drain + 1100
31 libdispatch.dylib 0x00007fff98632ecc _dispatch_queue_invoke + 202
32 libdispatch.dylib 0x00007fff986306b7 _dispatch_root_queue_drain + 463
33 libdispatch.dylib 0x00007fff9863efe4 _dispatch_worker_thread3 + 91
34 libsystem_pthread.dylib 0x00007fff996c9637 _pthread_wqthread + 729
35 libsystem_pthread.dylib 0x00007fff996c740d start_wqthread + 13
Thread 10:
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000618000072cc0 rcx: 0x0000000000000001 rdx: 0x0000000000000000
rdi: 0x0000618000072cc0 rsi: 0x0000000000000001 rbp: 0x00007fff52102f20 rsp: 0x00007fff52102ed8
r8: 0x0000618000645f70 r9: 0xbaddc0dedeadbead r10: 0x00007fa6664ceeb0 r11: 0x0000000000000002
r12: 0xffffffffffffffff r13: 0x0000618000645f70 r14: 0x00006080003232a0 r15: 0x0000618000645f70
rip: 0x00007fff987ba1b0 rfl: 0x0000000000000297 cr2: 0x00000001137b6b88
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 222
Thanks.