robbiehanson/XcodeColors — pull request #17 by cnoon (2014-10-01 19:31:32+00:00)
Title: XcodeColors crashes in Xcode 6.0.1 when using Bots

My apologies for submitting a bug as a Pull Request, but the issue tracking for this project is not enabled.

We have been using CocoaLumberjack and everything is working nicely on Xcode 6.0.1. However, once we started using bots, Xcode is crashing as soon as we select one of the bots.

Here's the crash log...

```
Process: Xcode [5304]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0.1 (6528)
Build Info: IDEFrameworks-6528000000000000~2
App Item ID: 497799835
App External ID: 712682811
Code Type: X86-64 (Native)
Parent Process: launchd [349]
Responsible: Xcode [5304]
User ID: 588502068

PlugIn Path: /Users/USER/Library/Application Support/Developer/*/XcodeColors
PlugIn Identifier: ru.DeepIT.XcodeColors
PlugIn Version: 1.0.9 (109)

Date/Time: 2014-09-30 17:54:28.545 -0700
OS Version: Mac OS X 10.9.4 (13E28)
Report Version: 11
Anonymous UUID: A7A22441-A032-6F39-106F-B570CCFC9D52

Sleep/Wake UUID: 1D47A046-1880-4821-B048-75EF7B8E6370

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010

VM Regions Near 0x10:
-->
__TEXT 0000000100b53000-0000000100b54000 [ 4K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode

Application Specific Information:
ProductBuildVersion: 6A317

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff89c8179f objc_retain + 15
1 ru.DeepIT.XcodeColors 0x000000010faf6a43 -[XcodeColors_NSTextStorage fixAttributesInRange:] + 35
2 com.apple.AppKit 0x00007fff81a6df49 __NSCreateRenderingContextForAttributedString + 181
3 com.apple.AppKit 0x00007fff81b34c7c _NSStringDrawingCore + 2273
4 com.apple.AppKit 0x00007fff81b33910 _NSDrawTextCell + 6400
5 com.apple.AppKit 0x00007fff81b3a5fc -[NSTextFieldCell drawInteriorWithFrame:inView:] + 963
6 com.apple.AppKit 0x00007fff81b39468 -[NSControl drawRect:] + 341
7 com.apple.AppKit 0x00007fff81b2c04f -[NSView _drawRect:clip:] + 3748
8 com.apple.AppKit 0x00007fff81b2a8c4 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1799
9 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
10 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
11 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
12 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
13 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
14 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
15 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
16 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
17 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
18 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
19 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
20 com.apple.dt.DVTKit 0x0000000101181f1b -[DVTReplacementView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 207
21 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
22 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
23 com.apple.AppKit 0x00007fff81b2aca0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2787
24 com.apple.AppKit 0x00007fff81b28706 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 841
25 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
26 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
27 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
28 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
29 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
30 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
31 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
32 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
33 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
34 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
35 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
36 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
37 com.apple.AppKit 0x00007fff81b29bc4 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 6151
38 com.apple.AppKit 0x00007fff81b27eb1 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 314
39 com.apple.AppKit 0x00007fff81b24e9f -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2828
40 com.apple.AppKit 0x00007fff81b042da -[NSView displayIfNeeded] + 1680
41 com.apple.AppKit 0x00007fff81b6974e _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 884
42 com.apple.AppKit 0x00007fff8213f061 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1331 + 46
43 com.apple.CoreFoundation 0x00007fff86726d67 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
44 com.apple.CoreFoundation 0x00007fff86726cd7 __CFRunLoopDoObservers + 391
45 com.apple.CoreFoundation 0x00007fff867183b8 __CFRunLoopRun + 776
46 com.apple.CoreFoundation 0x00007fff86717e75 CFRunLoopRunSpecific + 309
47 com.apple.HIToolbox 0x00007fff88861a0d RunCurrentEventLoopInMode + 226
48 com.apple.HIToolbox 0x00007fff88861685 ReceiveNextEventCommon + 173
49 com.apple.HIToolbox 0x00007fff888615bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
50 com.apple.AppKit 0x00007fff819cd24e _DPSNextEvent + 1434
51 com.apple.AppKit 0x00007fff819cc89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
52 com.apple.dt.DVTKit 0x00000001012917bd -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 237
53 com.apple.AppKit 0x00007fff819c099c -[NSApplication run] + 553
54 com.apple.AppKit 0x00007fff819ab783 NSApplicationMain + 940
55 libdyld.dylib 0x00007fff8d3395fd start + 1
```

Any help would be greatly appreciated. I'm not even sure where to start with this issue.