Open zxl777 opened 8 years ago
也就是在没有书签的情况下,使用Command+F3吗?
先在文件A设置书签,然后关闭A文件页面,书签应该还在。 再切换书签,会触发异常。
啊,我还是无法重现这个问题啊。 我通过,File-》Close "xxxx.m",然后再切换到这个文件的书签,也能正常切换。
真想瞬间转移到你那看看哈
你应该装一个log系统,出错时我把log发给你,才好分析。
@zxl777 恩,有时间我多加些日志。
关闭文件后,再切换书签,XCODE 7.2 CRASH,下面是log 注意搜索“XBookmark” 部分。
Process: Xcode [68242] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 7.2 (9548) Build Info: IDEFrameworks-9548000000000000~7 App Item ID: 497799835 App External ID: 814662604 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [68242] User ID: 501
Date/Time: 2015-12-15 11:11:03.264 +0800 OS Version: Mac OS X 10.11.1 (15B42) Report Version: 11 Anonymous UUID: 6D56C43D-49C5-33B6-C2B3-6040087F6F76
Sleep/Wake UUID: BD87462C-A021-4026-B018-FCF2C610823F
Time Awake Since Boot: 14000 seconds Time Since Wake: 6100 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information: ProductBuildVersion: 7C68 UNCAUGHT EXCEPTION (NSUnknownKeyException): [<XBookmarkWindowController 0x7f9bbee47b00> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _workspace. UserInfo: { NSTargetObjectUserInfoKey = "<XBookmarkWindowController: 0x7f9bbee47b00>"; NSUnknownUserInfoKey = "_workspace"; } Hints: None Backtrace: 0 0x00007fff95f74e1a exceptionPreprocess (in CoreFoundation) 1 0x000000010315cc67 DVTFailureHintExceptionPreprocessor (in DVTFoundation) 2 0x00007fff8b953dd4 objc_exception_throw (in libobjc.A.dylib) 3 0x00007fff95f74d79 -[NSException raise](in CoreFoundation) 4 0x00007fff8be1ae63 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:](in Foundation) 5 0x00007fff8bcf4767 -NSObject(NSKeyValueCoding) valueForKey: 6 0x000000010b2d6b85 +[XBookmarkUtil currentIDEWorkspace] at /Users/sky/Library/Application Support/Alcatraz/Plug-ins/XBookmark/XBookmark/XBookmarkUtil.m:53 (in XBookmark) 7 0x000000010b2d7115 +[XBookmarkUtil jumpToFileURL:] at /Users/sky/Library/Application Support/Alcatraz/Plug-ins/XBookmark/XBookmark/XBookmarkUtil.m:134 (in XBookmark) 8 0x000000010b2d7315 +[XBookmarkUtil openSourceFile:highlightLineNumber:] at /Users/sky/Library/Application Support/Alcatraz/Plug-ins/XBookmark/XBookmark/XBookmarkUtil.m:147 (in XBookmark) 9 0x000000010b2d676f -[XBookmarkWindowController onTableViewClick:] at /Users/sky/Library/Application Support/Alcatraz/Plug-ins/XBookmark/XBookmark/XBookmarkWindowController.m:130 (in XBookmark) 10 0x00007fff96f8d082 _os_activity_initiate (in libsystem_trace.dylib) 11 0x00007fff9b01d811 -[NSApplication sendAction:to:from:](in AppKit) 12 0x000000010373bac7 37-[DVTApplication sendAction:to:from:]_block_invoke (in DVTKit) 13 0x000000010360d221 -[DVTApplication sendAction:to:from:](in DVTKit) 14 0x00007fff9b02fa0e -[NSControl sendAction:to:](in AppKit) 15 0x00007fff9b0aeef5 -NSTableView _sendAction:to:row:column: 16 0x00007fff9b0ad74f -[NSTableView mouseDown:](in AppKit) 17 0x00007fff9b57a42d -[NSWindow _handleMouseDownEvent:isDelayedEvent:](in AppKit) 18 0x00007fff9b57b411 -NSWindow _reallySendEvent:isDelayedEvent: 19 0x00007fff9afc0b8d -[NSWindow sendEvent:](in AppKit) 20 0x00007fff9af40b27 -[NSApplication sendEvent:](in AppKit) 21 0x00000001043acc6d -[IDEApplication sendEvent:](in IDEKit) 22 0x00007fff9ada7d9a -[NSApplication run](in AppKit) 23 0x00007fff9ad70fbe NSApplicationMain (in AppKit) 24 0x00007fff8b6ce5ad start (in libdyld.dylib)
Performing @selector(onTableViewClick:) from sender NSTableView 0x7f9bbce9e7d0 abort() called
Application Specific Signatures: NSUnknownKeyException
Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff95f74e32 exceptionPreprocess + 178 1 DVTFoundation 0x000000010315cc67 DVTFailureHintExceptionPreprocessor + 194 2 libobjc.A.dylib 0x00007fff8b953dd4 objc_exception_throw + 48 3 CoreFoundation 0x00007fff95f74d79 -[NSException raise] + 9 4 Foundation 0x00007fff8be1ae63 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226 5 Foundation 0x00007fff8bcf4767 -[NSObject(NSKeyValueCoding) valueForKey:] + 414 6 XBookmark 0x000000010b2d6b85 +[XBookmarkUtil currentIDEWorkspace] + 62 7 XBookmark 0x000000010b2d7115 +[XBookmarkUtil jumpToFileURL:] + 120 8 XBookmark 0x000000010b2d7315 +[XBookmarkUtil openSourceFile:highlightLineNumber:] + 216 9 XBookmark 0x000000010b2d676f -[XBookmarkWindowController onTableViewClick:] + 228 10 libsystem_trace.dylib 0x00007fff96f8d082 _os_activity_initiate + 75 11 AppKit 0x00007fff9b01d811 -[NSApplication sendAction:to:from:] + 460 12 DVTKit 0x000000010373bac7 37-[DVTApplication sendAction:to:from:]_block_invoke + 379 13 DVTKit 0x000000010360d221 -[DVTApplication sendAction:to:from:] + 377 14 AppKit 0x00007fff9b02fa0e -[NSControl sendAction:to:] + 86 15 AppKit 0x00007fff9b0aeef5 -[NSTableView _sendAction:to:row:column:] + 111 16 AppKit 0x00007fff9b0ad74f -[NSTableView mouseDown:] + 6308 17 AppKit 0x00007fff9b57a42d -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322 18 AppKit 0x00007fff9b57b411 -[NSWindow _reallySendEvent:isDelayedEvent:] + 212 19 AppKit 0x00007fff9afc0b8d -[NSWindow sendEvent:] + 517 20 AppKit 0x00007fff9af40b27 -[NSApplication sendEvent:] + 2540 21 IDEKit 0x00000001043acc6d -[IDEApplication sendEvent:] + 739 22 AppKit 0x00007fff9ada7d9a -[NSApplication run] + 796 23 AppKit 0x00007fff9ad70fbe NSApplicationMain + 1176 24 libdyld.dylib 0x00007fff8b6ce5ad start + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff97e650ae pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff90f79500 pthread_kill + 90 2 libsystem_c.dylib 0x00007fff8c4e841b abort + 145 3 libsystem_c.dylib 0x00007fff8c4e838a abort + 144 4 com.apple.dt.IDEKit 0x00000001045cfdf1 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:]
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff97e660a2 kevent_qos + 10 1 libdispatch.dylib 0x00007fff977c711d _dispatch_mgr_invoke + 216 2 libdispatch.dylib 0x00007fff977c6d85 _dispatch_mgr_thread + 52
Thread 2:: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x00007fff97e5fc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff97e5f0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff95eea2b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff95ee977c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff95ee8fc8 CFRunLoopRunSpecific
Thread 3: 0 libsystem_kernel.dylib 0x00007fff97e5fc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff97e5f0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff95eea2b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff95ee977c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff95ee8fc8 CFRunLoopRunSpecific
Thread 4:: com.apple.CFSocket.private 0 libsystem_kernel.dylib 0x00007fff97e65222 select + 10 1 com.apple.CoreFoundation 0x00007fff95f274aa CFSocketManager + 762 2 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 3 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 4 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 5: 0 libsystem_kernel.dylib 0x00007fff97e5fc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff97e5f0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff95eea2b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff95ee977c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff95ee8fc8 CFRunLoopRunSpecific
Thread 6:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff97e5fc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff97e5f0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff95eea2b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff95ee977c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff95ee8fc8 CFRunLoopRunSpecific
Thread 7:: DYMobileDeviceManager 0 libsystem_kernel.dylib 0x00007fff97e5fc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff97e5f0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff95eea2b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff95ee977c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff95ee8fc8 CFRunLoopRunSpecific
Thread 8: 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 com.apple.Xcode.DevToolsCore 0x000000010bc1c50b -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 450 3 com.apple.Foundation 0x00007fff8bcdeee4 NSThreadstart + 1351 4 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 6 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 9: 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 com.apple.Xcode.DevToolsCore 0x000000010bc1c50b -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 450 3 com.apple.Foundation 0x00007fff8bcdeee4 NSThreadstart + 1351 4 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 6 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 10: 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 com.apple.Xcode.DevToolsCore 0x000000010bc1c50b -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 450 3 com.apple.Foundation 0x00007fff8bcdeee4 NSThreadstart + 1351 4 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 6 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 11: 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 com.apple.Xcode.DevToolsCore 0x000000010bc1c50b -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 450 3 com.apple.Foundation 0x00007fff8bcdeee4 NSThreadstart + 1351 4 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 6 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 12: 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 com.apple.Xcode.DevToolsCore 0x000000010bc1c50b -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 450 3 com.apple.Foundation 0x00007fff8bcdeee4 NSThreadstart + 1351 4 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 5 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 6 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 13: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 14: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 15: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 16: 0 libsystem_kernel.dylib 0x00007fff97e5fc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff97e5f0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff95eea2b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff95ee977c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff95ee8fc8 CFRunLoopRunSpecific
Thread 17: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 18: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 19: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 20:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 libc++.1.dylib 0x00007fff8999668f std::__1::condition_variable::wait(std::1::unique_lockstd::__1::mutex&)
Thread 21:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 libc++.1.dylib 0x00007fff8999668f std::__1::condition_variable::wait(std::1::unique_lockstd::__1::mutex&)
Thread 22:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 libc++.1.dylib 0x00007fff8999668f std::__1::condition_variable::wait(std::1::unique_lockstd::__1::mutex&)
Thread 23:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 libc++.1.dylib 0x00007fff8999668f std::__1::condition_variable::wait(std::1::unique_lockstd::__1::mutex&)
Thread 24:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 libc++.1.dylib 0x00007fff8999668f std::__1::condition_variable::wait(std::1::unique_lockstd::__1::mutex&)
Thread 25:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x00007fff97e64f5e psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff90f7773d _pthread_cond_wait + 767 2 libc++.1.dylib 0x00007fff8999668f std::__1::condition_variable::wait(std::1::unique_lockstd::__1::mutex&)
Thread 26: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 27: 0 libsystem_kernel.dylib 0x00007fff97e6578a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff90f7658c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff90f74375 start_wqthread + 13
Thread 28: 0 libsystem_kernel.dylib 0x00007fff97e652b2 __semwait_signal + 10 1 libsystem_c.dylib 0x00007fff8c509a75 nanosleep + 199 2 com.apple.CoreSymbolication 0x00007fff91663b5f 0x7fff91651000 + 76639 3 libsystem_pthread.dylib 0x00007fff90f769b1 _pthread_body + 131 4 libsystem_pthread.dylib 0x00007fff90f7692e _pthread_start + 168 5 libsystem_pthread.dylib 0x00007fff90f74385 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5ccdb928 rdx: 0x0000000000000000 rdi: 0x000000000000160b rsi: 0x0000000000000006 rbp: 0x00007fff5ccdb950 rsp: 0x00007fff5ccdb928 r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000008000000 r11: 0x0000000000000206 r12: 0x00007fff8b9481f0 r13: 0x00007f9bb61364c0 r14: 0x00007fff78f0e000 r15: 0x00007f9bb1a02600 rip: 0x00007fff97e650ae rfl: 0x0000000000000206 cr2: 0x00007fff77349038
Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133
Binary Images: 0x102f24000 - 0x102f27fff com.apple.dt.Xcode (7.2 - 9548)
<278C9A25-1A00-3F35-990F-7D9C31D6E68C> /Applications/Xcode.app/Contents/MacOS/Xcode 0x102f2d000 - 0x103409ff7 com.apple.dt.DVTFoundation (7.2 - 9542)由于没有复现。保留开启状态吧。等Xcode8的插件机制出来后,开发个新版本。
先在文件A设置书签,然后关闭A文件标签, 再切换书签,会触发异常。