What could cause a deadlock in ImageProviderReleaseInfoCallback / __spin_lock - cocoa

I have a Cocoa application that uses a number of NSOperationQueue instances to process images in the background. Each queue processes invocation operations that essentially turn NSImage objects into CGImageRef instances using:
CGImageRef ref = [image CGImageForProposedRect:NULL context:nil hints:nil];
A few users have complained that the app suddenly stops responding. I asked them to collect a process sample using ActivityMonitor.app. The reports are all very similar.
It looks like the main thread is going through an autorelease pool drain while the queues/threads are stuck at __spin_lock right after a call to ImageProviderReleaseInfoCallback.
The docs say that all parameters of CGImageForProposedRect: are optional. They don't say anything if it can be called from a background thread. Maybe that's the problem? I doubt it, because it works in pretty much all cases (I launched the app hundreds of times without problems...)
Any ideas why the queues could get stuck?
Full process sample:
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Call graph:
1971 Thread_905 DispatchQueue_1: com.apple.main-thread (serial)
1971 0x2e6d
1971 NSApplicationMain
1971 -[NSApplication run]
1971 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
1971 _DPSNextEvent
1971 AEProcessAppleEvent
1971 aeProcessAppleEvent
1971 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
1971 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
1971 _NSAppleEventManagerGenericHandler
1971 -[NSAutoreleasePool drain]
1971 NSPopAutoreleasePool
1971 _CFAutoreleasePoolPop
1971 CFRelease
1971 -[NSImage dealloc]
1971 -[NSImage _deallocAuxiliaryStorage]
1971 -[NSCGImageSnapshotRep dealloc]
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_943 DispatchQueue_2: com.apple.libdispatch-manager (serial)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_queue_invoke
1971 _dispatch_mgr_invoke
1971 kevent
1971 Thread_944 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 -[NSInvocationOperation main]
1971 -[NSInvocation invoke]
1971 __invoking___
1971 0x17a64
1971 0x244cf
1971 0x22a97
1971 -[NSImage CGImageForProposedRect:context:hints:]
1971 -[NSImage _usingBestRepresentationForRect:context:hints:body:]
1971 __-[NSImage CGImageForProposedRect:context:hints:]_block_invoke_1
1971 -[NSImage _snapshotRepForRep:rect:context:processedHints:]
1971 -[NSImage _createSnapshotRepForRep:rect:context:processedHints:]
1971 -[NSImageRep CGImageForProposedRect:context:hints:flipped:]
1971 -[NSIconRefImageRep CGImageForProposedRect:context:hints:]
1971 _ISCreateCGImageForType
1971 _ISGetCGImageRefForISImageRef
1971 _ISImageRefIterator(void*, unsigned char, short (*)(void*, void*), void*)
1971 _ISGoThruImageStorages
1971 _ISGoThruImageStorages
1971 MergeBestStorageIntoContext(void*, void*)
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_980 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 NSPopAutoreleasePool
1971 _CFAutoreleasePoolPop
1971 CFRelease
1971 -[NSImage dealloc]
1971 -[NSImage _deallocAuxiliaryStorage]
1971 -[NSCGImageSnapshotRep dealloc]
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 glueReleaseInfo
1971 JP2ReleaseInfoCallback
1971 _cg_JP2TearDownDecompressor
1971 _CFRelease
1971 __CFBasicHashDrain
1971 __CFDictionaryCallback
1971 _CFRelease
1971 _CGImageReadSessionFinalize
1971 _CFRelease
1971 _CGImageReadFinalize
1971 _CFRelease
1971 __CFDataDeallocate
1971 _ISReleaseStorageRef
1971 _CFRelease
1971 __CFArrayReleaseValues
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_1013 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 -[NSInvocationOperation main]
1971 -[NSInvocation invoke]
1971 __invoking___
1971 0x17a64
1971 0x244cf
1971 0x22a97
1971 -[NSImage CGImageForProposedRect:context:hints:]
1971 -[NSImage _usingBestRepresentationForRect:context:hints:body:]
1971 __-[NSImage CGImageForProposedRect:context:hints:]_block_invoke_1
1971 -[NSImage _snapshotRepForRep:rect:context:processedHints:]
1971 -[NSImage _createSnapshotRepForRep:rect:context:processedHints:]
1971 -[NSImageRep CGImageForProposedRect:context:hints:flipped:]
1971 -[NSIconRefImageRep CGImageForProposedRect:context:hints:]
1971 _ISCreateCGImageForType
1971 _ISGetCGImageRefForISImageRef
1971 _ISImageRefIterator(void*, unsigned char, short (*)(void*, void*), void*)
1971 _ISGoThruImageStorages
1971 MergeBestStorageIntoContext(void*, void*)
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_1019 DispatchQueue_6: com.apple.root.default-priority (concurrent)
1971 start_wqthread
1971 _pthread_wqthread
1971 _dispatch_worker_thread2
1971 _dispatch_call_block_and_release
1971 ____NSOQSchedule_block_invoke_2
1971 -[__NSOperationInternal start]
1971 NSPopAutoreleasePool
1971 _CFAutoreleasePoolPop
1971 CFRelease
1971 -[NSImage dealloc]
1971 -[NSImage _deallocAuxiliaryStorage]
1971 -[NSCGImageSnapshotRep dealloc]
1971 _CFRelease
1971 image_finalize
1971 _CFRelease
1971 image_provider_finalize
1971 ImageProviderReleaseInfoCallback
1971 __spin_lock
1971 Thread_1031
1971 thread_start
1971 _pthread_start
1971 startIOThread(void*)
1971 CVDisplayLink::runIOThread()
1971 pthread_cond_wait$UNIX2003
1971 _pthread_cond_wait
1971 __semwait_signal
Total number in stack (recursive counted multiple, when >=5):
17 _CFRelease
6 ImageProviderReleaseInfoCallback
6 image_finalize
6 image_provider_finalize
5 __spin_lock
5 _dispatch_worker_thread2
5 _pthread_wqthread
5 start_wqthread
Sort by top of stack, same collapsed (when >= 5):
__spin_lock 9855
__semwait_signal 1971
kevent 1971

Related

LLDB crashes whenever Breakpoints are added

I have a project in Xcode 10.1 which contains both Objective C and Swift code.Whenever I apply breakpoints in my swift code the LLDB crashes, which eventually end the debugging session.I am completely stuck in this scenario as I cannot debug my code.I have tried moving the breakpoints to other lines(suggested by some other posts), but its not working.
Is there any workaround on this?
Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'.
Crash summary:
Thread 11 Crashed:: RPC packet thread for client tid 0028defc (2678524)
0 libsystem_kernel.dylib 0x00007fff6d6a223e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6d758c1c pthread_kill + 285
2 libsystem_c.dylib 0x00007fff6d60b1c9 abort + 127
3 com.apple.LLDB.framework 0x0000000106bd2443 swift::ModuleFile::fatal(llvm::Error) + 835
4 com.apple.LLDB.framework 0x0000000106be3753 swift::ModuleFile::getDeclCheckedImpl(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 30515
5 com.apple.LLDB.framework 0x0000000106bd321e swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 78
6 com.apple.LLDB.framework 0x0000000106c0a707 swift::ModuleFile::loadExtensions(swift::NominalTypeDecl*) + 1911
7 com.apple.LLDB.framework 0x0000000106c13011 swift::SerializedModuleLoader::loadExtensions(swift::NominalTypeDecl*, unsigned int) + 49
8 com.apple.LLDB.framework 0x00000001062246bf swift::ASTContext::loadExtensions(swift::NominalTypeDecl*, unsigned int) + 63
9 com.apple.LLDB.framework 0x00000001062a6272 swift::NominalTypeDecl::getExtensions() + 82
10 com.apple.LLDB.framework 0x000000010631681e populateLookupTableEntryFromExtensions(swift::ASTContext&, swift::MemberLookupTable&, swift::NominalTypeDecl*, swift::DeclName, bool) + 46
11 com.apple.LLDB.framework 0x0000000106316e98 swift::NominalTypeDecl::lookupDirect(swift::DeclName, bool) + 616
12 com.apple.LLDB.framework 0x0000000106301a66 swift::ModuleDecl::lookupMember(llvm::SmallVectorImpl<swift::ValueDecl*>&, swift::DeclContext*, swift::DeclName, swift::Identifier) const + 86
13 com.apple.LLDB.framework 0x000000010643e5a1 FindNamedDecls(swift::ASTContext*, swift::DeclBaseName const&, VisitNodeResult&, llvm::Optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) + 1313
14 com.apple.LLDB.framework 0x0000000106437cdf VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 2703
15 com.apple.LLDB.framework 0x0000000106439e25 VisitNode(swift::ASTContext*, swift::Demangle::Node*, VisitNodeResult&) + 11221
16 com.apple.LLDB.framework 0x000000010643d94c swift::ide::getTypeFromMangledSymbolname(swift::ASTContext&, llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 204
17 com.apple.LLDB.framework 0x000000010705e2e7 lldb_private::SwiftASTContext::GetTypeFromMangledTypename(char const*, lldb_private::Status&) + 535
18 com.apple.LLDB.framework 0x0000000106db6241 DWARFASTParserSwift::ParseTypeFromDWARF(lldb_private::SymbolContext const&, DWARFDIE const&, lldb_private::Log*, bool*) + 933
19 com.apple.LLDB.framework 0x0000000106ee6a15 SymbolFileDWARF::ParseType(lldb_private::SymbolContext const&, DWARFDIE const&, bool*) + 209
20 com.apple.LLDB.framework 0x0000000106ee01fa SymbolFileDWARF::GetTypeForDIE(DWARFDIE const&, bool) + 486
21 com.apple.LLDB.framework 0x0000000106edf9ce SymbolFileDWARF::ResolveType(DWARFDIE const&, bool, bool) + 68
22 com.apple.LLDB.framework 0x0000000106edf94d SymbolFileDWARF::ResolveTypeUID(unsigned long long) + 45
23 com.apple.LLDB.framework 0x0000000106f2e87d lldb_private::Function::GetType() + 105
24 com.apple.LLDB.framework 0x0000000106f2e73c lldb_private::Function::GetStartLineSourceInfo(lldb_private::FileSpec&, unsigned int&) + 60
25 com.apple.LLDB.framework 0x0000000106c6c488 lldb_private::BreakpointResolverFileLine::FilterContexts(lldb_private::SymbolContextList&) + 262
26 com.apple.LLDB.framework 0x0000000106c6c88d lldb_private::BreakpointResolverFileLine::SearchCallback(lldb_private::SearchFilter&, lldb_private::SymbolContext&, lldb_private::Address*, bool) + 263
27 com.apple.LLDB.framework 0x0000000106d51f80 lldb_private::SearchFilter::DoModuleIteration(lldb_private::SymbolContext const&, lldb_private::Searcher&) + 346
28 com.apple.LLDB.framework 0x0000000106d51dd9 lldb_private::SearchFilter::Search(lldb_private::Searcher&) + 153
29 com.apple.LLDB.framework 0x0000000106f96b9f lldb_private::Target::AddBreakpoint(std::__1::shared_ptr<lldb_private::Breakpoint>, bool) + 203
30 com.apple.LLDB.framework 0x0000000106f97f29 lldb_private::Target::CreateBreakpoint(std::__1::shared_ptr<lldb_private::SearchFilter>&, std::__1::shared_ptr<lldb_private::BreakpointResolver>&, bool, bool, bool) + 249
31 com.apple.LLDB.framework 0x0000000106f98352 lldb_private::Target::CreateBreakpoint(lldb_private::FileSpecList const*, lldb_private::FileSpec const&, unsigned int, unsigned long long, lldb_private::LazyBool, lldb_private::LazyBool, bool, bool, lldb_private::LazyBool) + 920
32 com.apple.LLDB.framework 0x0000000103dda3d8 lldb::SBTarget::BreakpointCreateByLocation(lldb::SBFileSpec const&, unsigned int, unsigned long long, lldb::SBFileSpecList&) + 246
33 com.apple.LLDB.framework 0x0000000103dda2b0 lldb::SBTarget::BreakpointCreateByLocation(lldb::SBFileSpec const&, unsigned int, unsigned long long) + 62
34 com.apple.LLDB.framework 0x0000000103dda226 lldb::SBTarget::BreakpointCreateByLocation(char const*, unsigned int) + 64
35 lldb-rpc-server 0x0000000103af6f5d rpc_server::_ZN4lldb8SBTarget26BreakpointCreateByLocationEPKcj::HandleRPCCall(rpc_common::Connection&, rpc_common::RPCStream&, rpc_common::RPCStream&) + 179
36 lldb-rpc-server 0x0000000103b0073f rpc_common::Connection::PrivateHandleRPCPacket(rpc_common::RPCPacket&, rpc_common::RPCPacket&, bool&) + 469
37 lldb-rpc-server 0x0000000103b014e0 rpc_common::Connection::HandleRPCPacket(rpc_common::RPCPacket&) + 62
38 lldb-rpc-server 0x0000000103b04f12 Packets::ProcessPackets() + 256
39 lldb-rpc-server 0x0000000103b04d95 Packets::ReadThread() + 289
40 lldb-rpc-server 0x0000000103b04c6f Packets::RunReadThread(void*) + 9
41 libsystem_pthread.dylib 0x00007fff6d756305 _pthread_body + 126
42 libsystem_pthread.dylib 0x00007fff6d75926f _pthread_start + 70
43 libsystem_pthread.dylib 0x00007fff6d755415 thread_start + 13
Thread 11 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000700010856000 rcx: 0x00007000108534f8 rdx: 0x0000000000000000
rdi: 0x0000000000003e0b rsi: 0x0000000000000006 rbp: 0x0000700010853530 rsp: 0x00007000108534f8
r8: 0x000000000000000b r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000206
r12: 0x0000000000003e0b r13: 0x0000000107fd4d70 r14: 0x0000000000000006 r15: 0x000000000000002d
rip: 0x00007fff6d6a223e rfl: 0x0000000000000206 cr2: 0x00007fffa0349188
Complete crash log
The crash is happening in swift code, Objective C code is working fine. Also, it is not occasional, it is happening every time.
I have also tried clearing all Xcode caches and derived data.
I meet the same situation, hopes my solution helps you.
The reason of my Xcode LLDB crashing while adding breakpoints is that my project name (Security) is same to Apple's framework.
After switch project name to another random name, the problem solved.

Xcode Storyboard Reset to Suggested Constraints Error

Started getting this today after upgrading to iOS 11:
Any body have an ideas? I get this when I do Reset To Suggested Constraints:
Was working for months until today. Here's the log:
=================================
XCODE VERSION INFO:
Version = 9.0 (9A235)
Plugin Version = 13196
Beta Version = 0
OS Version = 10.12.6 (16G29)
=================================
ARBITER ERROR:
Failed to run arbitration with options: {
KeepRedundantDocumentConstraints = 1;
OnlyArbitrateConstraintsForViews = "{(\n >,\n ; layer = >,\n >,\n ; layer = >,\n ; layer = >,\n ; layer = >\n)}";
RelationshipHints = {
CommandKeyDown = 0;
Source = 4;
};
} (Failure reason: Left-over temporary explicit constraint: UIView[0x7fb68bf370a0].Width = + 375.000000 containingView={} scoreVector=, roundingAdjustment=0)
=================================
IDE ARBITRATION UNIT:
Register View Controller
Top Layout Guide
Bottom Layout Guide
View frame={{0, 0}, {375, 667}} tAMIC=YES
Email Address frame={{87, 272}, {200, 30}} tAMIC=YES
********* frame={{87, 321}, {200, 30}} tAMIC=YES
Register frame={{87, 370}, {200, 40}} tAMIC=YES
First Name frame={{87, 170}, {200, 30}} tAMIC=YES
Last Name frame={{87, 219}, {200, 30}} tAMIC=YES
=================================
BACKTRACE:
0 -[IBDocumentAutolayoutManager _scheduleArbitrationOfUnit:withOptions:] (in IDEInterfaceBuilderKit)
1 -[IBDocumentAutolayoutManager _runAutolayoutCommandForArbitrationUnits:withBlock:] (in IDEInterfaceBuilderKit)
2 -[IBDocumentAutolayoutManager _whitelistAndDecideConstraintsForItems:withOptions:] (in IDEInterfaceBuilderKit)
3 -[IBDocumentAutolayoutManager clearAndAddSuggestedConstraintsForItems:inAllConfigurations:] (in IDEInterfaceBuilderKit)
4 65-[IBDocument clearAndAddSuggestedConstraintsForItems:fromSource:]_block_invoke.4171 (in IDEInterfaceBuilderKit)
5 -[IBMemberRelationshipHelper handleOperation:onObjects:inDocument:hints:currentConfigurationOnlyHandler:defaultConfigurationHandler:] (in IDEInterfaceBuilderKit)
6 -[IBMemberRelationshipHelper handleOperation:onObjects:inDocument:fromSource:currentConfigurationOnlyHandler:defaultConfigurationHandler:] (in IDEInterfaceBuilderKit)
7 -[IBDocument clearAndAddSuggestedConstraintsForItems:fromSource:] (in IDEInterfaceBuilderKit)
8 -[IBAbstractDocumentEditor clearAndAddSuggestedConstraintsInArbitrationUnit:] (in IDEInterfaceBuilderKit)
9 _os_activity_initiate_impl (in libsystem_trace.dylib)
10 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
11 __37-[DVTApplication sendAction:to:from:]_block_invoke (in DVTKit)
12 DVTInvokeWithFailureHint (in DVTFoundation)
13 -[DVTApplication sendAction:to:from:] (in DVTKit)
14 -[NSMenuItem _corePerformAction] (in AppKit)
15 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (in AppKit)
16 _os_activity_initiate_impl (in libsystem_trace.dylib)
17 -[NSMenu performActionForItemAtIndex:] (in AppKit)
18 -[NSMenu _internalPerformActionForItemAtIndex:] (in AppKit)
19 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] (in AppKit)
20 NSSLMMenuEventHandler (in AppKit)
21 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) (in HIToolbox)
22 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) (in HIToolbox)
23 SendEventToEventTarget (in HIToolbox)
24 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) (in HIToolbox)
25 SendMenuCommandWithContextAndModifiers (in HIToolbox)
26 SendMenuItemSelectedEvent (in HIToolbox)
27 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) (in HIToolbox)
28 PopUpMenuSelectCore(MenuData*, Point, double, Point, unsigned short, unsigned int, Rect const*, unsigned short, unsigned int, Rect const*, Rect const*, __CFDictionary const*, __CFString const*, OpaqueMenuRef**, unsigned short*) (in HIToolbox)
29 _HandlePopUpMenuSelection8(OpaqueMenuRef*, OpaqueEventRef*, unsigned int, Point, unsigned short, unsigned int, Rect const*, unsigned short, Rect const*, Rect const*, __CFDictionary const*, __CFString const*, OpaqueMenuRef**, unsigned short*) (in HIToolbox)
30 _HandlePopUpMenuSelectionWithDictionary (in HIToolbox)
31 _NSSLMPopUpCarbonMenu3 (in AppKit)
32 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] (in AppKit)
33 -[NSSegmentedCell _trackSelectedItemMenu] (in AppKit)
34 -[NSSegmentedCell _displayDelayedMenu] (in AppKit)
35 __NSFireTimer (in Foundation)
36 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION (in CoreFoundation)
37 __CFRunLoopDoTimer (in CoreFoundation)
38 __CFRunLoopDoTimers (in CoreFoundation)
39 __CFRunLoopRun (in CoreFoundation)
40 CFRunLoopRunSpecific (in CoreFoundation)
41 RunCurrentEventLoopInMode (in HIToolbox)
42 ReceiveNextEventCommon (in HIToolbox)
43 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
44 _DPSNextEvent (in AppKit)
45 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
46 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
47 -[NSWindow(NSEventRouting) trackEventsMatchingMask:timeout:mode:handler:] (in AppKit)
48 -[NSDragEventTracker trackEvent:usingHandler:] (in AppKit)
49 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
50 -[NSSegmentedCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
51 -[NSControl mouseDown:] (in AppKit)
52 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] (in AppKit)
53 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] (in AppKit)
54 -[NSWindow(NSEventRouting) sendEvent:] (in AppKit)
55 -[IDEWorkspaceWindow sendEvent:] (in IDEKit)
56 -[NSApplication(NSEvent) sendEvent:] (in AppKit)
57 -[IDEApplication sendEvent:] (in IDEKit)
58 -[NSApplication run] (in AppKit)
59 NSApplicationMain (in AppKit)
60 start (in libdyld.dylib)

Building for 10.8.5

I am building an app that works fine in most OS X versions, but I have users who want to use it on 10.8.5
I have built with a deployment target of 10.8 and I get crashes on launch in 10.8.5:
Process: Test [301]
Path: /Users/USER/Desktop/Test.app/Contents/MacOS/Test
Identifier: com.map-pin.Test
Version: 2.33 (3330)
Code Type: X86-64 (Native)
Parent Process: launchd [124]
User ID: 501
Date/Time: 2016-02-09 14:17:57.391 -0500
OS Version: Mac OS X 10.8.5 (12F2560)
Report Version: 10
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000060
VM Regions Near 0x60:
-->
__TEXT 0000000108374000-0000000108423000 [ 700K] r-x/rwx SM=COW /Users/USER/Desktop/Test.app/Contents/MacOS/Test
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_c.dylib 0x00007fff8c380670 strlen + 16
1 com.apple.Foundation 0x00007fff83a76d81 +[NSString stringWithCString:encoding:] + 86
2 com.map-pin.Test 0x000000010837c038 -[AppDelegate getDef] + 120
3 com.map-pin.Test 0x00000001083be38f -[AppDelegate applicationDidFinishLaunching:] + 751
4 com.apple.CoreFoundation 0x00007fff8a188eda _CFXNotificationPost + 2554
5 com.apple.Foundation 0x00007fff83a53796 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
6 com.apple.AppKit 0x00007fff8507652d -[NSApplication _postDidFinishNotification] + 292
7 com.apple.AppKit 0x00007fff85076266 -[NSApplication _sendFinishLaunchingNotification] + 216
8 com.apple.AppKit 0x00007fff85073452 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 566
9 com.apple.AppKit 0x00007fff8507304c -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 351
10 com.apple.Foundation 0x00007fff83a6d05b -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
11 com.apple.Foundation 0x00007fff83a6cebd _NSAppleEventManagerGenericHandler + 106
12 com.apple.AE 0x00007fff8e906e68 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 307
13 com.apple.AE 0x00007fff8e906cc9 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 37
14 com.apple.AE 0x00007fff8e906b89 aeProcessAppleEvent + 318
15 com.apple.HIToolbox 0x00007fff8eb0c709 AEProcessAppleEvent + 100
16 com.apple.AppKit 0x00007fff8506f836 _DPSNextEvent + 1456
17 com.apple.AppKit 0x00007fff8506edf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
18 com.apple.AppKit 0x00007fff850661a3 -[NSApplication run] + 517
19 com.apple.AppKit 0x00007fff8500abd6 NSApplicationMain + 869
20 com.map-pin.Test 0x00000001083ee8e2 main + 34
21 libdyld.dylib 0x00007fff8de5a7e1 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8a7f06d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c394f1c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8c394ce3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8c37f191 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8a7f0d16 kevent + 10
1 libdispatch.dylib 0x00007fff86157dea _dispatch_mgr_invoke + 883
2 libdispatch.dylib 0x00007fff861579ee _dispatch_mgr_thread + 54
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8a7f06d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c394f1c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8c394ce3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8c37f191 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8a7f06d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c394f1c _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8c394ce3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8c37f191 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00000000ffffffff rbx: 0x0000000000000060 rcx: 0x0000000000000060 rdx: 0x0000000000000060
rdi: 0x0000000000000060 rsi: 0x00007fff858b9059 rbp: 0x00007fff5788ae30 rsp: 0x00007fff5788ae08
r8: 0x0000000000000000 r9: 0x00007fff5788ad98 r10: 0x00007fe7f2c3c8c0 r11: 0x00007fff83a76d2b
r12: 0x0000000000000001 r13: 0x0000000000000000 r14: 0x0000000000000004 r15: 0x00007fff7256d780
rip: 0x00007fff8c380670 rfl: 0x0000000000010286 cr2: 0x0000000000000060
Logical CPU: 0
Is there a good way to figure out whats going on here?
I had to track down a few methods that were not available until 10.9.x by going through the traces.

Xcode crashes on selecting tab in color panel

I am facing this strange issue from few hours and it started suddenly. Whenever I try to select different tab in color panel in Xcode,the whole Xcode crashes with the error,
UNCAUGHT EXCEPTION (NSRangeException): Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.
Following is the full stack trace for error,
Process: Xcode [1958]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.2 (7718)
Build Info: IDEFrameworks-7718000000000000~2
App Item ID: 497799835
App External ID: 812404257
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1958]
User ID: 501
Date/Time: 2015-06-20 13:50:18.080 +0530
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: 1A8B5EF9-7E79-106C-D0F5-5648FF5FD699
Time Awake Since Boot: 6500 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D2105
UNCAUGHT EXCEPTION (NSRangeException): Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff8a22e024 __exceptionPreprocess (in CoreFoundation)
1 0x0000000104b5abb4 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff8839f76e objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff8a22deed +[NSException raise:format:] (in CoreFoundation)
4 0x00007fff89de0896 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] (in Foundation)
5 0x00007fff89de05d9 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] (in Foundation)
6 0x00007fff89de04a4 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] (in Foundation)
7 0x00007fff8ae8f09b -[NSScrollView _setWindow:] (in AppKit)
8 0x00007fff8a14d705 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke (in CoreFoundation)
9 0x00007fff8a14ce09 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation)
10 0x00007fff8b535474 __21-[NSView _setWindow:]_block_invoke735 (in AppKit)
11 0x00007fff89e013be -[NSISEngine withBehaviors:performModifications:] (in Foundation)
12 0x00007fff8adb1c54 -[NSView _setWindow:] (in AppKit)
13 0x00007fff8ade9091 -[NSView removeFromSuperview] (in AppKit)
14 0x00007fff8b280034 -[NSColorPanel _switchToPicker:] (in AppKit)
15 0x00007fff8b0ee1b1 -[NSToolbarButton sendAction:to:] (in AppKit)
16 0x00007fff8afdef5a -[NSToolbarItemViewer mouseDown:] (in AppKit)
17 0x00007fff8b54f2fc -[NSWindow _reallySendEvent:isDelayedEvent:] (in AppKit)
18 0x00007fff8aeded76 -[NSWindow sendEvent:] (in AppKit)
19 0x00007fff8aedb312 -[NSApplication sendEvent:] (in AppKit)
20 0x0000000105bd8c14 -[IDEApplication sendEvent:] (in IDEKit)
21 0x00007fff8ae04c68 -[NSApplication run] (in AppKit)
22 0x00007fff8ad81354 NSApplicationMain (in AppKit)
23 0x00007fff952435c9 start (in libdyld.dylib)
24 0x0000000000000001
abort() called
Application Specific Signatures:
NSRangeException
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff8a22e03c __exceptionPreprocess + 172
1 DVTFoundation 0x0000000104b5abb4 DVTFailureHintExceptionPreprocessor + 194
2 libobjc.A.dylib 0x00007fff8839f76e objc_exception_throw + 43
3 CoreFoundation 0x00007fff8a22deed +[NSException raise:format:] + 205
4 Foundation 0x00007fff89de0896 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 604
5 Foundation 0x00007fff89de05d9 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 114
6 Foundation 0x00007fff89de04a4 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 253
7 AppKit 0x00007fff8ae8f09b -[NSScrollView _setWindow:] + 342
8 CoreFoundation 0x00007fff8a14d705 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 133
9 CoreFoundation 0x00007fff8a14ce09 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 313
10 AppKit 0x00007fff8b535474 __21-[NSView _setWindow:]_block_invoke735 + 169
11 Foundation 0x00007fff89e013be -[NSISEngine withBehaviors:performModifications:] + 155
12 AppKit 0x00007fff8adb1c54 -[NSView _setWindow:] + 3191
13 AppKit 0x00007fff8ade9091 -[NSView removeFromSuperview] + 453
14 AppKit 0x00007fff8b280034 -[NSColorPanel _switchToPicker:] + 231
15 AppKit 0x00007fff8b0ee1b1 -[NSToolbarButton sendAction:to:] + 75
16 AppKit 0x00007fff8afdef5a -[NSToolbarItemViewer mouseDown:] + 4981
17 AppKit 0x00007fff8b54f2fc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
18 AppKit 0x00007fff8aeded76 -[NSWindow sendEvent:] + 470
19 AppKit 0x00007fff8aedb312 -[NSApplication sendEvent:] + 2504
20 IDEKit 0x0000000105bd8c14 -[IDEApplication sendEvent:] + 924
21 AppKit 0x00007fff8ae04c68 -[NSApplication run] + 711
22 AppKit 0x00007fff8ad81354 NSApplicationMain + 1832
23 libdyld.dylib 0x00007fff952435c9 start + 1
24 ??? 0x0000000000000001 0x0 + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8f7c7286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff85fb6b53 abort + 129
2 com.apple.dt.IDEKit 0x0000000105e09753 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1507
3 com.apple.dt.IDEKit 0x0000000105e0a9c8 -[IDEAssertionHandler handleUncaughtException:] + 1077
4 com.apple.dt.IDEKit 0x0000000105e0aa94 IDEHandleUncaughtException + 94
5 com.apple.AppKit 0x00007fff8ae04d1c -[NSApplication run] + 891
6 com.apple.AppKit 0x00007fff8ad81354 NSApplicationMain + 1832
7 libdyld.dylib 0x00007fff952435c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8f7c8232 kevent64 + 10
1 libdispatch.dylib 0x00007fff92c90a6a _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff89e28a59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
6 com.apple.DTDeviceKitBase 0x000000010f108f3c -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 974
7 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
8 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
9 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
10 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 6:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff8f7c73fa __select + 10
1 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
2 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
3 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 7:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.CFNetwork 0x00007fff8600f220 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
6 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
7 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
9 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff8aed766b _NSEventThread + 137
6 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 9:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.Foundation 0x00007fff89e28a59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
6 com.apple.Foundation 0x00007fff89e9e17f -[NSRunLoop(NSRunLoop) run] + 74
7 com.apple.GPUToolsMobileFoundation 0x00000001175d789b -[DYMobileDeviceManager _deviceNotificationThread:] + 134
8 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
9 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
10 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
11 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff8f7c794a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d7cb40d start_wqthread + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff8f7c7136 __psynch_cvwait + 10
1 com.apple.Xcode.DevToolsCore 0x000000010eb59866 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 456
2 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
3 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 13:
0 libsystem_kernel.dylib 0x00007fff8f7c7136 __psynch_cvwait + 10
1 com.apple.Xcode.DevToolsCore 0x000000010eb59866 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 456
2 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
3 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 14:
0 libsystem_kernel.dylib 0x00007fff8f7c7136 __psynch_cvwait + 10
1 com.apple.Xcode.DevToolsCore 0x000000010eb59866 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 456
2 com.apple.Foundation 0x00007fff89dd6dc2 __NSThread__main__ + 1345
3 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 15:
0 libsystem_kernel.dylib 0x00007fff8f7c24de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8f7c164f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8a13ceb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8a13c37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8a13bbd8 CFRunLoopRunSpecific + 296
5 com.apple.CoreFoundation 0x00007fff8a1f3671 CFRunLoopRun + 97
6 com.apple.DebugSymbols 0x00007fff8ace1b8f SpotlightQueryThread(void*) + 463
7 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
9 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 16:
0 libsystem_kernel.dylib 0x00007fff8f7c748a __semwait_signal + 10
1 com.apple.CoreSymbolication 0x00007fff882dbe67 0x7fff882c9000 + 77415
2 libsystem_pthread.dylib 0x00007fff8d7cd268 _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff8d7cd1e5 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff8d7cb41d thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5b27e948 rdx: 0x0000000000000000
rdi: 0x000000000000130f rsi: 0x0000000000000006 rbp: 0x00007fff5b27e970 rsp: 0x00007fff5b27e948
r8: 0x0000000000001fff r9: 0x00007fb8f3c38f60 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x00007fff8839a440 r13: 0x00007fb8f3eb68c0 r14: 0x00007fff77741300 r15: 0x00007fb8f3c23f00
rip: 0x00007fff8f7c7286 rfl: 0x0000000000000206 cr2: 0x00000001075f70e0
Logical CPU: 0
Error Code: 0x020000b8
Trap Number: 133
Thank you very much in advance.
In my case exactly the same issue was caused by ColorSenseRainbow plugin I installed via Alcatraz. As soon as I removed it, everything went back to normal.
This seems like an issue on Apple's part. Let me digest that log for you:
UNCAUGHT EXCEPTION: Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.
So, in the code for Xcode, what it's trying to do is remove the observer that is of type NSColorPickerPagableNameListScrollView (the up/down list that selects a dev's color preferences in IB) at memory address 0x7b7f6ce0910 from the HighlightColorPanel (possibly the dialog that's a color picker) at memory address 0x7fb8f6c94af0 before the scroll view registered as an observer of the color picker for the key path contentLayoutRect.
In layman's terms, the scrolling color view is an observer of the color picker, which makes seeing your color preferences easier. When the color picker selects a color, it sends a notification to its observer, the scrolling color box.
However, when the box is closed, the scroll view should remove itself from the observer tree, that is, the listing of items that are observers of the box, in an effort to get rid of (and deallocate resources for) the box.
The bug exists in just that part of the code, since, apparently, the scroll view never registered as an observer for the key path contentLayoutRect. It was an observer for everything else but that. Since it couldn't tell what the observer was when it tried to get rid of it, the system derped and crashed.

App crashes in review but not locally - How can I find the source from the crashlog?

I have submitted a new version of my app for review and it was rejected because the app crashed. I got a screenshot showing the button that was clicked before the crash and the crashlog. However I was not able to reproducte the problem and have no idea what the source could be.
The button triggers a disconnection from iCloud which actually just releases some resources. Nothing that should make any trouble. I tried to interpret the crashlog but had no success. I studied several resources from the web but was not able to find any clue what might be the source of the problem.
I managed to symbolicate the crashlog. However this does not change a lot since only the two first entries in the crashed thread belong to my own code. The Exception Codes are not helpfull to me either.
Can anyone see more details from the log or give me a hint were to start with my search? Thank you very much!
Process: MyApp [69811]
Path: /Applications/MyApp.app/Contents/MacOS/MyApp
Identifier: com.example.MyApp
Version: 1.2 (1.2)
App Item ID: 0
App External ID: 0
Code Type: X86-64 (Native)
Parent Process: launchd [184]
Responsible: MyApp [69811]
User ID: 201
Date/Time: 2014-01-29 13:20:22.910 -0800
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: FE66701D-3E78-131A-A6CA-844122FA6616
Sleep/Wake UUID: DF88CF2B-42D1-40BD-BAC7-4C433EC11A34
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9266ea52 __semwait_signal_nocancel + 10
1 libsystem_c.dylib 0x00007fff8ca39a7c nanosleep$NOCANCEL + 189
2 libsystem_c.dylib 0x00007fff8ca635fe usleep$NOCANCEL + 54
3 libsystem_c.dylib 0x00007fff8ca8fbc4 abort + 135
4 coop.plausible.CrashReporter 0x000000010343030e uncaught_exception_handler + 27
5 com.apple.CoreFoundation 0x00007fff8bc0f8c2 __handleUncaughtException + 706
6 libobjc.A.dylib 0x00007fff8a805304 _objc_terminate() + 94
7 libc++abi.dylib 0x00007fff8e6623e1 std::__terminate(void (*)()) + 8
8 libc++abi.dylib 0x00007fff8e662456 std::terminate() + 54
9 libobjc.A.dylib 0x00007fff8a8050b0 objc_terminate + 9
10 libdispatch.dylib 0x00007fff91e912c1 _dispatch_client_callout + 28
11 libdispatch.dylib 0x00007fff91e98f03 _dispatch_main_queue_callback_4CF + 333
12 com.apple.CoreFoundation 0x00007fff8bb76839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13 com.apple.CoreFoundation 0x00007fff8bb31b14 __CFRunLoopRun + 1636
14 com.apple.CoreFoundation 0x00007fff8bb31275 CFRunLoopRunSpecific + 309
15 com.apple.HIToolbox 0x00007fff93622f0d RunCurrentEventLoopInMode + 226
16 com.apple.HIToolbox 0x00007fff93622cb7 ReceiveNextEventCommon + 479
17 com.apple.HIToolbox 0x00007fff93622abc _BlockUntilNextEventMatchingListInModeWithFilter + 65
18 com.apple.AppKit 0x00007fff875e928e _DPSNextEvent + 1434
19 com.apple.AppKit 0x00007fff875e88db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
20 com.apple.AppKit 0x00007fff875dc9cc -[NSApplication run] + 553
21 com.apple.AppKit 0x00007fff875c7803 NSApplicationMain + 940
22 com.example.MyApp 0x0000000102f92242 main (receipt.h:4115)
23 com.example.MyApp 0x0000000102f8adb4 start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff9266f662 kevent64 + 10
1 libdispatch.dylib 0x00007fff91e9343d _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff91e93152 _dispatch_mgr_thread + 52
Thread 2:: Dispatch queue: com.apple.coredata.ubiquity.entry.pq
0 libsystem_kernel.dylib 0x00007fff9266aa56 semaphore_wait_trap + 10
1 libdispatch.dylib 0x00007fff91e95a15 _dispatch_semaphore_wait_slow + 206
2 com.apple.CoreServicesInternal 0x00007fff931587a0 Dispatch_to_LBGetAttributeValueForItem(__CFURL const*, __CFString const*, void const**, __CFError**) + 450
3 com.apple.CoreServicesInternal 0x00007fff931588e8 ExternalProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 97
4 com.apple.CoreServicesInternal 0x00007fff9314517f prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 227
5 com.apple.CoreServicesInternal 0x00007fff93142e6b _FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, void*, void*, __CFError**, unsigned char) + 213
6 com.apple.CoreServicesInternal 0x00007fff93142d91 _FSURLCopyResourcePropertyForKey + 15
7 com.apple.CoreFoundation 0x00007fff8bb1d6bb CFURLCopyResourcePropertyForKey + 123
8 com.apple.CoreFoundation 0x00007fff8bb247e8 -[NSURL getResourceValue:forKey:error:] + 72
9 com.apple.CoreData 0x00007fff8e8a5cab -[PFUbiquityLocationStatus getBoolResourceFromURL:forKey:] + 59
10 com.apple.CoreData 0x00007fff8e8a5989 -[PFUbiquityLocationStatus checkFileURLState] + 217
11 com.apple.CoreData 0x00007fff8e96141d -[PFUbiquityFilePresenter processPendingURLs] + 1453
12 libdispatch.dylib 0x00007fff91e941d7 _dispatch_call_block_and_release + 12
13 libdispatch.dylib 0x00007fff91e912ad _dispatch_client_callout + 8
14 libdispatch.dylib 0x00007fff91e9368f _dispatch_queue_drain + 451
15 libdispatch.dylib 0x00007fff91e949dd _dispatch_queue_invoke + 110
16 libdispatch.dylib 0x00007fff91e92fa3 _dispatch_root_queue_drain + 75
17 libdispatch.dylib 0x00007fff91e94193 _dispatch_worker_thread2 + 40
18 libsystem_pthread.dylib 0x00007fff8d170ef8 _pthread_wqthread + 314
19 libsystem_pthread.dylib 0x00007fff8d173fb9 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff9266ee6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d170f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8d173fb9 start_wqthread + 13
Thread 4:: Dispatch queue: com.apple.root.default-priority
0 libsystem_kernel.dylib 0x00007fff9266dfe2 __fcntl + 10
1 libsystem_kernel.dylib 0x00007fff9266ca4d fcntl + 240
2 libsqlite3.dylib 0x00007fff88c3885d unixSync + 45
3 libsqlite3.dylib 0x00007fff88c4c4f6 sqlite3WalCheckpoint + 1990
4 libsqlite3.dylib 0x00007fff88c3e926 sqlite3WalClose + 134
5 libsqlite3.dylib 0x00007fff88c3e701 sqlite3PagerClose + 49
6 libsqlite3.dylib 0x00007fff88c3e19c sqlite3BtreeClose + 316
7 libsqlite3.dylib 0x00007fff88c4a673 sqlite3_close + 771
8 com.apple.CoreData 0x00007fff8e868de4 -[NSSQLiteConnection disconnect] + 164
9 com.apple.CoreData 0x00007fff8e868cb2 -[NSSQLCore _disconnect] + 34
10 com.apple.CoreData 0x00007fff8e868a54 -[NSSQLCore willRemoveFromPersistentStoreCoordinator:] + 132
11 com.apple.CoreData 0x00007fff8e887d21 -[NSPersistentStoreCoordinator dealloc] + 1041
12 com.apple.CoreData 0x00007fff8e9cfb3e -[PFUbiquityMetadataFactoryEntry dealloc] + 158
13 com.apple.CoreFoundation 0x00007fff8bada86f CFRelease + 591
14 com.apple.CoreData 0x00007fff8e9c9634 -[PFUbiquityMetadataFactory removeCachedCoordinatorsForLocalPeerID:storeName:andUbiquityRootLocation:] + 164
15 com.apple.CoreData 0x00007fff8e96c921 __56-[PFUbiquitySwitchboardEntry unregisterPersistentStore:]_block_invoke + 129
16 libdispatch.dylib 0x00007fff91e941d7 _dispatch_call_block_and_release + 12
17 libdispatch.dylib 0x00007fff91e912ad _dispatch_client_callout + 8
18 libdispatch.dylib 0x00007fff91e9309e _dispatch_root_queue_drain + 326
19 libdispatch.dylib 0x00007fff91e94193 _dispatch_worker_thread2 + 40
20 libsystem_pthread.dylib 0x00007fff8d170ef8 _pthread_wqthread + 314
21 libsystem_pthread.dylib 0x00007fff8d173fb9 start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff9266ee6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d170f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8d173fb9 start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff9266aa1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92669d18 mach_msg + 64
2 libclh.dylib 0x00007fff8ffb4dd9 0x7fff8f9a5000 + 6356441
3 libclh.dylib 0x00007fff8fa6ad62 0x7fff8f9a5000 + 810338
4 libclh.dylib 0x00007fff8ffb5c29 0x7fff8f9a5000 + 6360105
5 libsystem_pthread.dylib 0x00007fff8d16f899 _pthread_body + 138
6 libsystem_pthread.dylib 0x00007fff8d16f72a _pthread_start + 137
7 libsystem_pthread.dylib 0x00007fff8d173fc9 thread_start + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff9266aa1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92669d18 mach_msg + 64
2 libclh.dylib 0x00007fff8ffb4dd9 0x7fff8f9a5000 + 6356441
3 libclh.dylib 0x00007fff8fa6ad62 0x7fff8f9a5000 + 810338
4 libclh.dylib 0x00007fff8ffb5c29 0x7fff8f9a5000 + 6360105
5 libsystem_pthread.dylib 0x00007fff8d16f899 _pthread_body + 138
6 libsystem_pthread.dylib 0x00007fff8d16f72a _pthread_start + 137
7 libsystem_pthread.dylib 0x00007fff8d173fc9 thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff9266ee6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d170f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8d173fb9 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff9266ee6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8d170f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8d173fb9 start_wqthread + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff9266aa1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92669d18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff8bb32315 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff8bb31939 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff8bb31275 CFRunLoopRunSpecific + 309
5 com.apple.AppKit 0x00007fff877891ce _NSEventThread + 144
6 libsystem_pthread.dylib 0x00007fff8d16f899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff8d16f72a _pthread_start + 137
8 libsystem_pthread.dylib 0x00007fff8d173fc9 thread_start + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff9266ea3a __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff8caaee60 nanosleep + 200
2 libsystem_c.dylib 0x00007fff8caaed52 usleep + 54
3 com.example.MyApp 0x0000000103094935 0x102f89000 + 1095989
4 com.apple.Foundation 0x00007fff8ac0f70b __NSThread__main__ + 1318
5 libsystem_pthread.dylib 0x00007fff8d16f899 _pthread_body + 138
6 libsystem_pthread.dylib 0x00007fff8d16f72a _pthread_start + 137
7 libsystem_pthread.dylib 0x00007fff8d173fc9 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000000000003c rbx: 0x0000000000000000 rcx: 0x00007fff5cc73cc8 rdx: 0x0000000000000001
rdi: 0x0000000000000b03 rsi: 0x0000000000000000 rbp: 0x00007fff5cc73d00 rsp: 0x00007fff5cc73cc8
r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000000000001 r11: 0x0000000000000246
r12: 0x00007fff77a019d0 r13: 0x0000610000249c60 r14: 0x0000000000000000 r15: 0x00007fff5cc73d10
rip: 0x00007fff9266ea52 rfl: 0x0000000000000247 cr2: 0x000000010b7ea000
Logical CPU: 0
Error Code: 0x02000170
Trap Number: 133
Binary Images:
0x102f89000 - 0x10323bfc7 +com.example.MyApp (1.2 - 1.2) <B83E276E-EE1B-34FC-A2F3-2A2B83B5C9FB> /Applications/MyApp.app/Contents/MacOS/MyApp
0x1032cb000 - 0x1032dbfff com.apple.StoreKit (1.0 - 232.2) <4A239D2B-4D42-399B-B4F5-EA24297F0E0A> /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit
0x1032f0000 - 0x103311fff +com.dropbox.DropboxOSX (1.0 - 1) <E049D51A-3D0F-39BF-A6B9-5AE5C2012C4B> /Applications/MyApp.app/Contents/Frameworks/DropboxOSX.framework/Versions/A/DropboxOSX
0x103330000 - 0x10333dfff +net.hockeyapp.sdk.mac (1.0.3 - 13) <EDD42403-6A15-37BD-B07A-0C6A29955477> /Applications/MyApp.app/Contents/Frameworks/HockeySDK.framework/Versions/A/HockeySDK
0x103351000 - 0x1033d3fff +org.coreplot.CorePlot (1.0) <DD903A7E-06AB-39BD-82E2-BB0FD05039F1> /Applications/MyApp.app/Contents/Frameworks/CorePlot.framework/Versions/A/CorePlot
0x10342c000 - 0x103444fff +coop.plausible.CrashReporter (1.2-beta2) <F09BAC64-DB6C-3692-9089-0A631F40D8B6> /Applications/MyApp.app/Contents/Frameworks/HockeySDK.framework/Versions/A/Frameworks/CrashReporter.framework/Versions/A/CrashReporter
0x1098b3000 - 0x1098b3fff +cl_kernels (???) <EEF0C5B5-FBEF-4C91-A93B-63B238713561> cl_kernels
0x109900000 - 0x109901fe4 +cl_kernels (???) <038F9490-12F9-40EF-9EC7-A399B73361D4> cl_kernels
0x10990f000 - 0x109910ff9 +cl_kernels (???) <18DB399D-475A-40A3-871B-1C1F473D917F> cl_kernels
0x109912000 - 0x1099f8fef unorm8_bgra.dylib (2.3.58) <9FF943D1-4EF7-36CA-852D-B61C2E554713> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
0x10b468000 - 0x10b468ffd +cl_kernels (???) <AEC6D084-A290-485C-BD7C-8E4F139A79E2> cl_kernels
0x10b6ec000 - 0x10b6effff libspindump.dylib (161) <588EDDE0-B20A-3649-92B7-C2226EB237E8> /usr/lib/libspindump.dylib
0x123440000000 - 0x12344087bff7 com.apple.GeForceGLDriver (8.18.22 - 8.1.8) <CFA88606-8A16-3251-A1AA-4BC5F5D74E1C> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
0x7fff608d3000 - 0x7fff60906817 dyld (239.3) <D1DFCF3F-0B0C-332A-BCC0-87A851B570FF> /usr/lib/dyld
0x7fff86ffb000 - 0x7fff87005fff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
0x7fff87006000 - 0x7fff872dafc7 com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff872db000 - 0x7fff87322fff libFontRegistry.dylib (127) <A77A0480-
...Stripped due to the post size limit...
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 296574
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=217.9M resident=113.2M(52%) swapped_out_or_unallocated=104.6M(48%)
Writable regions: Total=194.4M written=23.0M(12%) resident=57.7M(30%) swapped_out=0K(0%) unallocated=136.7M(70%)
REGION TYPE VIRTUAL
=========== =======
CG backing stores 7840K
CG image 184K
CG raster data 292K
CG shared images 204K
CoreAnimation 4756K
CoreData 4K
CoreData Object IDs 4100K
CoreGraphics 4K
CoreImage 8K
Foundation 4K
IOKit 26.6M
IOKit (reserved) 4K reserved VM address space (unallocated)
Image IO 16K
Kernel Alloc Once 8K
MALLOC 118.7M
MALLOC (admin) 32K
Memory Tag 242 12K
Memory Tag 251 24K
OpenCL 40K
SQLite page cache 1024K
STACK GUARD 56.0M
Stack 13.1M
VM_ALLOCATE 21.5M
__DATA 44.7M
__IMAGE 528K
__LINKEDIT 66.5M
__TEXT 151.4M
__UNICODE 544K
mapped file 54.3M
shared memory 68K
=========== =======
TOTAL 572.1M
TOTAL, minus reserved VM space 572.1M

Resources