OS X 10.11.5, Xcode Version 7.3.1 (7D1014). App with TableView (View based). Works fine. But when I give the TableView a delegate (even without implementing any NSTableViewDelegate methods) it crashes (see below).
How to debug this? Tried a symbolic breakpoint in -[__NSArrayM objectAtIndex:] - but it crashes before reaching breakpoint. 2016-06-12 15:26:36.172 Echo App[24004:2898793] *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array 2016-06-12 15:26:36.175 Echo App[24004:2898793] ( 0 CoreFoundation 0x00007fff8a3904f2 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff880d873c objc_exception_throw + 48 2 CoreFoundation 0x00007fff8a2a77c5 -[__NSArrayM objectAtIndex:] + 245 3 AppKit 0x00007fff9a3dad31 -[NSTableRowData _addViewToRowView:atColumn:row:] + 535 4 AppKit 0x00007fff9a3da98e -[NSTableRowData _addViewsToRowView:atRow:] + 184 5 AppKit 0x00007fff9a3d91a7 -[NSTableRowData _initializeRowView:atRow:] + 390 6 AppKit 0x00007fff9a3d7907 -[NSTableRowData _addRowViewForVisibleRow:withPriorView:] + 416 7 AppKit 0x00007fff9a3d769b -[NSTableRowData _addRowViewForVisibleRow:withPriorRowIndex:inDictionary:withRowAnimation:] + 299 8 AppKit 0x00007fff9a3d6461 -[NSTableRowData _unsafeUpdateVisibleRowEntries] + 1697 9 AppKit 0x00007fff9a3d5d22 -[NSTableRowData updateVisibleRowViews] + 233 10 AppKit 0x00007fff9a3d569b -[NSTableView layout] + 178 11 AppKit 0x00007fff9a3743e7 -[NSView _doLayout] + 53 12 AppKit 0x00007fff9a37409f -[NSView _layoutSubtreeWithOldSize:] + 324 13 AppKit 0x00007fff9a3742fb -[NSView _layoutSubtreeWithOldSize:] + 928 14 AppKit 0x00007fff9a3742fb -[NSView _layoutSubtreeWithOldSize:] + 928 15 AppKit 0x00007fff9a3742fb -[NSView _layoutSubtreeWithOldSize:] + 928 16 AppKit 0x00007fff9a3742fb -[NSView _layoutSubtreeWithOldSize:] + 928 17 AppKit 0x00007fff9a3735d8 -[NSView layoutSubtreeIfNeeded] + 950 18 AppKit 0x00007fff9a392f21 -[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 82 19 AppKit 0x00007fff9a4054ff -[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 244 20 AppKit 0x00007fff9aa9c155 ___NSWindowGetDisplayCycleObserver_block_invoke6358 + 218 21 AppKit 0x00007fff9a4174f8 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 719 22 QuartzCore 0x00007fff8f413f71 _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 85 23 QuartzCore 0x00007fff8f41342c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 160 24 QuartzCore 0x00007fff8f4130ec _ZN2CA11Transaction6commitEv + 508 25 QuartzCore 0x00007fff8f41e977 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 71 26 CoreFoundation 0x00007fff8a325067 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 27 CoreFoundation 0x00007fff8a324fd7 __CFRunLoopDoObservers + 391 28 CoreFoundation 0x00007fff8a303ef8 CFRunLoopRunSpecific + 328 29 HIToolbox 0x00007fff97834935 RunCurrentEventLoopInMode + 235 30 HIToolbox 0x00007fff97834677 ReceiveNextEventCommon + 184 31 HIToolbox 0x00007fff978345af _BlockUntilNextEventMatchingListInModeWithFilter + 71 32 AppKit 0x00007fff9a2bfdf6 _DPSNextEvent + 1067 33 AppKit 0x00007fff9a2bf226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 34 AppKit 0x00007fff9a2b3d80 -[NSApplication run] + 682 35 AppKit 0x00007fff9a27d368 NSApplicationMain + 1176 36 Echo App 0x0000000100003202 main + 34 37 libdyld.dylib 0x00007fff887695ad start + 1 ) 2016-06-12 15:26:36.314 Echo App[24004:2898793] -[NSApplication runModalForWindow:] may not be invoked inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.) The modal dialog has been suppressed to avoid deadlock. ( 0 AppKit 0x00007fff9a52c3b4 -[NSApplication runModalForWindow:] + 219 1 AppKit 0x00007fff9a71376e -[NSApplication _showException:] + 689 2 AppKit 0x00007fff9a2b3e96 -[NSApplication run] + 960 3 AppKit 0x00007fff9a27d368 NSApplicationMain + 1176 4 Echo App 0x0000000100003202 main + 34 5 libdyld.dylib 0x00007fff887695ad start + 1 ) _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com