使用objc_msgSend()选择器名称崩溃:countByEnumeratingWithState:objects:count:

时间:2016-05-03 03:53:16

标签: cocoa crash nstableview nsview nswindow

我的可可应用程序偶尔会因上述特定信息而崩溃。我确定这是由于我的应用程序中的NSTableView显示,但我无法弄清楚出了什么问题。崩溃报告如下。谁能说出发生了什么?

Application Specific Information:
objc_msgSend() selector name: countByEnumeratingWithState:objects:count:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff8847a0dd objc_msgSend + 29
1   com.apple.AppKit                0x00007fff8ae1a44a -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 6008
2   com.apple.AppKit                0x00007fff8add12be -[NSView displayIfNeeded] + 1876
3   com.apple.AppKit                0x00007fff8add0b19 -[NSWindow displayIfNeeded] + 236
4   com.apple.AppKit                0x00007fff8add0782 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
5   com.apple.AppKit                0x00007fff8b506191 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1540 + 46
6   com.apple.CoreFoundation        0x00007fff8dd32127 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
7   com.apple.CoreFoundation        0x00007fff8dd32080 __CFRunLoopDoObservers + 368
8   com.apple.CoreFoundation        0x00007fff8dd24188 __CFRunLoopRun + 872
9   com.apple.CoreFoundation        0x00007fff8dd23bd8 CFRunLoopRunSpecific + 296
10  com.apple.HIToolbox             0x00007fff950db56f RunCurrentEventLoopInMode + 235
11  com.apple.HIToolbox             0x00007fff950db2ea ReceiveNextEventCommon + 431
12  com.apple.HIToolbox             0x00007fff950db12b _BlockUntilNextEventMatchingListInModeWithFilter + 71
13  com.apple.AppKit                0x00007fff8adcd9bb _DPSNextEvent + 978
14  com.apple.AppKit                0x00007fff8adccf68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
15  com.apple.AppKit                0x00007fff8adc2bf3 -[NSApplication run] + 594
16  com.apple.AppKit                0x00007fff8ad3f354 NSApplicationMain + 1832
17  libdyld.dylib                   0x00007fff8980e5c9 start + 1

0 个答案:

没有答案