Skip to content

Instantly share code, notes, and snippets.

@iljaiwas
Created October 9, 2013 08:52
Show Gist options
  • Save iljaiwas/6898297 to your computer and use it in GitHub Desktop.
Save iljaiwas/6898297 to your computer and use it in GitHub Desktop.
I could use a little hint where to start debugging a crash, which seems particular hard to track down. So far the bug only happened in the wild. Any suggestions how to start fixing this would be appreciated
- (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)inItem
{
return [inItem isKindOfClass:[NSDictionary class]];<<app crashing on this line
}
Crash Report:
Incident Identifier: B905C1A8-0B07-4084-9B5B-1993F5BEE0EA
CrashReporter Key: [TODO]
Hardware Model: MacBookAir5,2
Process: GarageBuy [5104]
Path: /Applications/GarageBuy.app/Contents/MacOS/GarageBuy
Identifier: com.iwascoding.garagebuy2
Version: 325
Code Type: X86-64
Parent Process: launchd [137]
Date/Time: 2013-05-17 14:32:37 +0000
OS Version: Mac OS X 10.8.3 (12D78)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_NOOP at 0x0
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x7fff8e2bf4d8 _objc_msgSend_vtable4 + 24
1 GarageBuy 0x10a2d82f5 -[GBSourceListController outlineView:isGroupItem:] (GBSourceListController.m:221)
2 AppKit 0x7fff8a67bd37 -[NSOutlineView _delegate_isGroupRow:] + 66
3 AppKit 0x7fff8a5fb7c8 -[NSTableView _isGroupRow:] + 81
4 AppKit 0x7fff8a5f6efd -[NSTableView _isSourceListGroupRow:] + 56
5 AppKit 0x7fff8a5f6838 -[NSTableView rectOfRow:] + 288
6 AppKit 0x7fff8a610d8e -[NSTableView(NSTableViewViewBased) makeRowViewForRow:] + 197
7 AppKit 0x7fff8a610bb1 -[NSTableRowData _addRowViewForVisibleRow:withPriorView:] + 331
8 AppKit 0x7fff8a61098a -[NSTableRowData _addRowViewForVisibleRow:withPriorRowIndex:inDictionary:withRowAnimation:] + 272
9 AppKit 0x7fff8a60ffca -[NSTableRowData _unsafeUpdateVisibleRowEntries] + 1621
10 AppKit 0x7fff8a60f7f1 -[NSTableRowData updateVisibleRowViews] + 119
11 AppKit 0x7fff8a5e787b -[NSTableView viewWillDraw] + 165
12 AppKit 0x7fff8a5e77bc -[NSOutlineView viewWillDraw] + 172
13 AppKit 0x7fff8a4c51ed ___22-[NSView viewWillDraw]_block_invoke_0 + 307
14 CoreFoundation 0x7fff8e4b74a6 ___NSArrayEnumerate + 582
15 AppKit 0x7fff8a4c4f2d -[NSView viewWillDraw] + 244
16 AppKit 0x7fff8a4c51ed ___22-[NSView viewWillDraw]_block_invoke_0 + 307
17 CoreFoundation 0x7fff8e4b74a6 ___NSArrayEnumerate + 582
18 AppKit 0x7fff8a4c4f2d -[NSView viewWillDraw] + 244
19 AppKit 0x7fff8a54faa5 -[NSScrollView viewWillDraw] + 45
20 AppKit 0x7fff8a4c51ed ___22-[NSView viewWillDraw]_block_invoke_0 + 307
21 CoreFoundation 0x7fff8e4b74a6 ___NSArrayEnumerate + 582
22 AppKit 0x7fff8a4c4f2d -[NSView viewWillDraw] + 244
23 AppKit 0x7fff8a4c51ed ___22-[NSView viewWillDraw]_block_invoke_0 + 307
24 CoreFoundation 0x7fff8e4b74a6 ___NSArrayEnumerate + 582
25 AppKit 0x7fff8a4c4f2d -[NSView viewWillDraw] + 244
26 AppKit 0x7fff8a681325 -[NSSplitView viewWillDraw] + 129
27 AppKit 0x7fff8a4c51ed ___22-[NSView viewWillDraw]_block_invoke_0 + 307
28 CoreFoundation 0x7fff8e4b74a6 ___NSArrayEnumerate + 582
29 AppKit 0x7fff8a4c4f2d -[NSView viewWillDraw] + 244
30 AppKit 0x7fff8a4c51ed ___22-[NSView viewWillDraw]_block_invoke_0 + 307
31 CoreFoundation 0x7fff8e4b74a6 ___NSArrayEnumerate + 582
32 AppKit 0x7fff8a4c4f2d -[NSView viewWillDraw] + 244
33 AppKit 0x7fff8a4c4584 -[NSView _sendViewWillDrawInRect:clipRootView:] + 1525
34 AppKit 0x7fff8a4909b1 -[NSView displayIfNeeded] + 1044
35 AppKit 0x7fff8a4901fc __handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 738
36 AppKit 0x7fff8aa5b8f1 ___83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke_01208 + 46
37 CoreFoundation 0x7fff8e485417 ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
38 CoreFoundation 0x7fff8e485381 ___CFRunLoopDoObservers + 369
39 CoreFoundation 0x7fff8e4607b8 ___CFRunLoopRun + 728
40 CoreFoundation 0x7fff8e4600e2 _CFRunLoopRunSpecific + 290
41 HIToolbox 0x7fff85bb2eb4 _RunCurrentEventLoopInMode + 209
42 HIToolbox 0x7fff85bb2b94 _ReceiveNextEventCommon + 166
43 HIToolbox 0x7fff85bb2ae3 _BlockUntilNextEventMatchingListInMode + 62
44 AppKit 0x7fff8a48d563 __DPSNextEvent + 685
45 AppKit 0x7fff8a48ce22 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
46 AppKit 0x7fff8a4841d3 -[NSApplication run] + 517
47 AppKit 0x7fff8a428c06 _NSApplicationMain + 869
48 GarageBuy 0x10a1f12c4 start + 52
@ekurutepe
Copy link

I'd wager a guess: inItem is a dangling pointer. Maybe try to debug with NSZombies activated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment