krzysztofzablocki / LinkedConsole

Clickable links in your Xcode console, so you never wonder which class logged the message.
http://merowing.info
MIT License
931 stars 63 forks source link

Xcode crash when moving a tab to a separate window #38

Closed DanielAsher closed 7 years ago

DanielAsher commented 7 years ago

Hi,

thanks for a great tool!

I regularly get Xcode crashes when using KZLinkedConsole and moving a tabbed window into separate window. An example crash log:

Process:               Xcode [92786]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               7.3.1 (10188.1)
Build Info:            IDEFrameworks-10188001000000000~3
App Item ID:           497799835
App External ID:       817226719
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [92786]
User ID:               502

Date/Time:             2016-08-21 09:57:40.429 +0200
OS Version:            Mac OS X 10.11.6 (15G31)
Report Version:        11
Anonymous UUID:        F4FF8526-BA28-DDF9-961D-8484024C8417

Sleep/Wake UUID:       FEBC7C7E-A7EB-4F24-958E-BB78E20AEDB3

Time Awake Since Boot: 46000 seconds
Time Since Wake:       2100 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: 7D1014
UNCAUGHT EXCEPTION (NSRangeException): NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds
UserInfo: (null)
Hints: None
Backtrace:
  0   __exceptionPreprocess (in CoreFoundation)
  1   DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2   objc_exception_throw (in libobjc.A.dylib)
  3   +[NSException raise:format:] (in CoreFoundation)
  4   -[NSRLEArray objectAtIndex:effectiveRange:] (in Foundation)
  5   -[NSMutableAttributedString addAttributes:range:] (in Foundation)
  6   -[DVTTextStorage addAttributes:range:] (in DVTKit)
  7   _TTSf4g_n___TFC15KZLinkedConsole14KZLinkInjectorP33_071CB34855B3BCA24A9667F3084B0B6521addLinksToTextStoragefGSaT8fileNameSS4lineSS5rangeVSC8_NSRange__T_ at /Users/Daniel/Library/Application Support/Alcatraz/Plug-ins/KZLinkedConsole/KZLinkedConsole/Extensions/NSTextStorage+Extensions.swift:0 (in KZLinkedConsole)
  8   _TFFC15KZLinkedConsole14KZLinkInjectorP33_071CB34855B3BCA24A9667F3084B0B6528handlePendingLinksAfterDelayFSiT_U_FT_T_ at /Users/Daniel/Library/Application Support/Alcatraz/Plug-ins/KZLinkedConsole/KZLinkedConsole/Extensions/NSTextStorage+Extensions.swift:0 (in KZLinkedConsole)
  9   _dispatch_call_block_and_release (in libdispatch.dylib)
 10   _dispatch_client_callout (in libdispatch.dylib)
 11   _dispatch_after_timer_callback (in libdispatch.dylib)
 12   _dispatch_client_callout (in libdispatch.dylib)
 13   _dispatch_source_latch_and_call (in libdispatch.dylib)
 14   _dispatch_source_invoke (in libdispatch.dylib)
 15   _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
 16   __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
 17   __CFRunLoopRun (in CoreFoundation)
 18   CFRunLoopRunSpecific (in CoreFoundation)
 19   RunCurrentEventLoopInMode (in HIToolbox)
 20   ReceiveNextEventCommon (in HIToolbox)
 21   _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
 22   _DPSNextEvent (in AppKit)
 23   -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
 24   -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
 25   -[NSApplication run] (in AppKit)
 26   NSApplicationMain (in AppKit)
 27  0x0000000107d0939b (in Xcode)
 28   start (in libdyld.dylib)

Let me know if you can spot the issue before I dive in.

cheers,

Daniel