2015-06-20 93 views
8

從幾個小時我就面臨這個奇怪的問題,它突然開始。每當我試圖在Xcode的彩色面板,選擇不同的標籤,整個的Xcode崩潰,並顯示錯誤Xcode在顏色面板中選擇選項卡時崩潰

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. 

以下是錯誤的完整的堆棧跟蹤,

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 

非常感謝您提前。

+0

今天開始發生在我身上。我在Yosemite 10.10.3上運行Xcode 6.3.2。 –

+0

您是否安裝了第三方顏色選擇器或XCode插件? – 2015-06-27 10:17:20

回答

1

在我的情況下,完全相同的問題是由我通過Alcatraz安裝的ColorSenseRainbow插件造成的。一旦我將它刪除,一切都恢復正常。

+0

謝謝。這解決了這個問題。但需要徹底卸載xcode並重新安裝它。 –

1

這似乎是Apple的一個問題。讓我來消化該日誌對您:

UNCAUGHT EXCEPTION: Cannot remove an observer <NSColorPickerPageableNameListScrollView 0x7fb8f6ce0910> for the key path "contentLayoutRect" from <HighlightColorPanel 0x7fb8f6c94af0> because it is not registered as an observer.

所以,在Xcode中的代碼,它正試圖做的是去除的觀察者認爲是NSColorPickerPagableNameListScrollView類型(上/下列表的那個在登記爲顏色選擇器的關鍵路徑contentLayoutRect的觀察者滾動視圖之前存儲器地址0x7fb8f6c94af0選擇在存儲器地址0x7b7f6ce0910從這是一個顏色選擇器的HighlightColorPanel(可能的對話框)的IB一個Dev的顏色偏好)。

通俗地說,滾動顏色視圖是顏色選擇器的觀察者,這使得您的顏色首選項更加容易。當顏色選擇器選擇顏色時,它會向其觀察者發送通知滾動顏色框。

然而,當對話框關閉,滾動視圖應該從觀察者樹自身刪除,也就是說,是觀察員箱項目的上市,在努力擺脫(和取消分配資源)框。

這個錯誤只存在於代碼的那一部分,因爲很明顯,滾動視圖從未註冊爲關鍵路徑的觀察者。這是一個觀察員其他的一切但是那。由於它無法分辨觀察者試圖擺脫它時的情況,因此該系統被破壞。

+0

感謝您解釋實際的原因。似乎我們不能自己修復它。我發現的唯一方法是重新安裝xcode。 –

相關問題