0

我有时会遇到一个奇怪的错误。我做了几次同样的事情,然后有时程序就崩溃了。大多数情况下,当我尝试打开文件对话框或尝试确定随机数时会发生这种情况。我不知道它可能是什么。如果有人能指出我正确的方向,那就太好了。

这是我得到的日志和图像:

2013-03-23 17:40:11.040 ImageSorter[38065:303]-[ NSMallocBlock openFirstFile:]:无法识别的选择器发送到实例 0x10015b170 2013-03-23 17:40:11.041 ImageSorter[38065:303]-[ NSMallocBlock openFirstFile: ]:无法识别选择器发送到实例0x10015B170 2013-03-23 17:40:11.046 Imageorter [38065:303](0
Corefoundation 0x00007FFF8CE4FB06 ExceptionProprocess + 198 1 Libobjc.a.dylib
0x00007FFF93B913F0 Objc_excepion_Throw + 43 2
Corefoundation 0x00007FFF8CE640A - [NSObject(NSObject) doesNotRecognizeSelector:] + 186 3 CoreFoundation 0x00007fff8ce3e02e ___forwarding_
+ 414 4的CoreFoundation 0x00007fff8ce3de18 _CF_forwarding_prep_0 + 232 5了AppKit
0x00007fff8b141989 - [的NSApplication sendAction:为:从:] + 342 6
了AppKit 0x00007fff8b1417e7 - [的NSControl sendAction:至:] + 85 7了AppKit
0x00007fff8b14171b - [的NSCell _sendActionFrom:] + 138 8了AppKit
0x00007fff8b13fc03 -[NSCell tr​​ackMouse:inRect:ofView:untilMouseUp:] + 1855 9 AppKit 0x00007fff8b13f451 -[NSButtonCell tr​​ackMouse:inRect:ofView:untilMouseUp:] + 504 10 AppKit 0x00007fff8b13ebcc -[NSControl mouseDown:] + 820 11 AppKit
0x00007f sendEvent8 ] + 6853 12 应用套件
0x00007FFF8B132674 - [nsapplication sendevent:] + 5761 13
appkit 0x00007fff8b04824a - [nsapplication运行] + 636 14
appkit 0x00007FF8AFECC06 NSApplicationMain + 869 15 Imablosorter
0x0000000100001142 Main + 34 16 LibdyLD.Dylib
0x00007FFF93B107E1 START + 0)(LLDB)

屏幕错误

-------------------------------------------------- --------------------------------------

在 gaige 和 Joshua Nozzi 的第一个答案之后发生了以下情况:

-------------------------------------------------- --------------------------------------

我启用了 Zombie Objects,当我第一次运行它时它告诉我:

_NSZombie_NSIBUserDefinedRuntimeAttributesConnector 类在两者中都实现了??和 ??。将使用两者之一。哪一个是未定义的。

CoreAnimation:警告,删除了未提交 CATransaction 的线程;在环境中设置 CA_DEBUG_TRANSACTIONS=1 以记录回溯。

所以我设置 CA_DEBUG_TRANSACTIONS=1。第二个警告可能是因为我在后台线程中运行打开的对话框吗?

我现在运行了几次,又遇到了几个错误,但我真的看不出问题出在哪里,以及为什么在执行相同任务时并不总是出现相同的错误。我不希望任何人真正阅读所有错误消息(它们更多地说明了我的问题),但如果有人能展示我如何阅读和理解它们会很棒(有没有很好的教程?):

错误一:

CoreAnimation:警告,删除了未提交 CATransaction 的线程;0 QuartzCore 0x00007fff89727959 _ZN2CA11Transaction4pushEv + 219 1 QuartzCore 0x00007fff89727531 _ZN2CA11Transaction15ensure_implicitEv + 273 2
:通过创建[NSScrollerImp _updateLayerGeometry] + 67 5 - + 38 4了AppKit 0x00007fff81099ede:QuartzCore 0x00007fff897273ce _ZN2CA11Transaction9set_valueEj12_CAValueTypePKv + 40 3 QuartzCore 0x00007fff89727362 + [CATransaction setDisableActions]了
AppKit 0x00007fff810994bd - [NSScroller(NSInternal2 ) _replaceScrollerImp] + 368 6 AppKit 0x00007fff81131778 -[NSScroller initWithCoder:] + 305 7 基础
0x00007fff85886fe9 _decodeObjectBinary + 2741 8基金会
0x00007fff85887dc6 - [NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1189 9基金会0x00007fff85888338 - [NSArray的(NSArray的)的initWithCoder:] + 538 10基金会0x00007fff85886fe9 _decodeObjectBinary + 2741 11基金会
0x00007fff85886394 _decodeObject + 226 12了AppKit
0x00007fff80fb3631 - [的NSView的initWithCoder:] + 976 13 AppKit
0x00007fff8112ed17 -[NSScrollView initWithCoder:] + 335 14 基础 0x00007fff85886fe9 _decodeObjectBinary + 2741 15 基础
0x00007fff85886394 _decodeObject + 226

错误2:

***-[ NSArrayM removeObjectAtIndex:]:索引 19 超出范围 [0 .. 18] 2013-03-24 11:48:25.953 程序 [8316:303] (0 CoreFoundation
0x00007fff82e07b06 __exceptionPreprocess + 198 1 libobjc.A.dylib
0x00007fff89b49 objc_exception_throw + 43 2的CoreFoundation
0x00007fff82da4a04 - [__ NSArrayM removeObjectAtIndex:] + 276 3
了AppKit 0x00007fff8114915f - [NSBinder _updateObservingRegistration:] + 258 4了AppKit 0x00007fff8115619c - [NSBinder breakConnection] + 97 5了AppKit
0x00007fff8114155d - [NSObject的(NSKeyValueBindingCreation)结合:toObject:withKeyPath:选项:] + 277 6 FinderKit
0x00007fff89e4d570 - [FI_TListViewController privateBindSettings] + 528 7 FinderKit 0x00007fff89e38598 - [FI_TBrowserViewController(配置)bindViewSettings] + 83 8 FinderKit 0x00007fff89ec17b7 - [FIFinderViewGutsController commonFinishInitialization] + 33 9 FinderKit 0x00007fff89ebb439 - [FIFinderViewGutsController createBrowserViewWithViewStyle:] + 516 10 FinderKit 0x00007fff89ebd48a - [FIFinderViewGutsController buildBrowserView: ] + 211 11 FinderKit 0x00007fff89ebd931 -[FIFinderViewGutsController _internalSetTargetPath:withViewStyle:] + 615 12 FinderKit 0x00007fff89ebceb2 -[FIFinderViewGutsController setTargetNode:withViewStyle:] + 523 13 查找器套件
0x00007fff89ebe584 - [FIFinderViewGutsController deferredRetargetAndReloadForNode:] + 381 14 FinderKit
0x00007fff89ebe957 - [FIFinderViewGutsController urlResolutionCompleted:] + 158 15的CoreFoundation
0x00007fff82db9eda _CFXNotificationPost + 2554 16基金会
0x00007fff85880e26 - [NSNotificationCenter postNotificationName:对象:USERINFO:] + 64 17基金会
0x00007fff858cad3a __NSThreadPerformPerform + 225 18的CoreFoundation 0x00007fff82d86b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 17 19 CoreFoundation 0x00007fff82d86455 __CFRunLoopDoSources0 + 245 20 CoreFoundation 0x00007fff82da97f5 __CFRunLoopRun + 789 21 CoreFoundation
0x00007fff82da90e2 CFRunLoopRunSpecific + 290 22使HIToolbox
0x00007fff81f41eb4 RunCurrentEventLoopInMode + 209 23使HIToolbox
0x00007fff81f41c52 ReceiveNextEventCommon + 356 24使HIToolbox
0x00007fff81f41ae3 BlockUntilNextEventMatchingListInMode + 62 25了AppKit 0x00007fff81009563 _DPSNextEvent + 685 26了AppKit 0x00007fff81008e22 - [的NSApplication nextEventMatchingMask:untilDate:inMode:出队:] + 128 27了AppKit 0x00007fff810001d3 - [ NSApplication 运行] + 517 28 AppKit 0x00007fff80fa4c06 NSApplicationMain + 869 29 JsonAnalyzer
0x000000010000ce82 main + 34 30 JsonAnalyzer
0x0000000100001604 开始 + 52 31 ???
0x0000000000000003 0x0 + 3)

错误 3:

2013-03-24 11:50:13.096 程序 [8369:6b0b] * 断言失败 -[FI_TSidebarView _expandItemEntry:expandChildren:startLevel:], /SourceCache/AppKit/AppKit-1187.37/TableView.subproj/NSOutlineView.m:1309 2013 -03-24 11:50:13.097 Program[8369:6b0b] 引发了未捕获的异常 2013-03-24 11:50:13.098 Program[8369:6b0b] (null) 不应该已经扩展!2013-03-24 11:50:13.106计划[8369:6B0B](0
Corefoundation 0x00007FFF82E07B06 __ExceptionProcess + 198 1 Libobjc.a.Dylib 0x00007FFF89B493F0 Objc_exception_Throw + 43 2
Corefoundation 0x00007FFF82E07948 + [NSException Reading:Format:Arguments:] + 104 3
基础0x00007fff85844c82 - [NSAssertionHandler handleFailureInMethod:对象:文件:LINENUMBER:描述:] + 189 4
了AppKit 0x00007fff81158900 - [NSOutlineView _expandItemEntry:expandChildren:STARTLEVEL:] + 1153 5了AppKit 0x00007fff8113eb92 - [NSOutlineView _uncachedNumberOfRows] + 379 6
了AppKit 0x00007fff8113e9c8 - [NSTableView的_totalHeightOfTableView ] + 187 7 AppKit 0x00007fff8113e798 -[NSTableView _minimumFrameSize] + 74 8 AppKit
0x00007fff8109f0e1 -[NSClipView _minimumFrameSize] + 36 9 AppKit
0x00007fff8109e44e -[NSScrollView tile] + 1883 10AppKit
0x00007fff8109dc56 - [NSScrollView _tileWithoutRecursing] + 49 11了AppKit 0x00007fff810a0b89 - [NSScrollView reflectScrolledClipView:] + 879 12了AppKit
0x00007fff810324eb - [NSClipView _selfBoundsChanged] + 689 13了AppKit 0x00007fff810a4a76 - [NSClipView setBoundsSize:] + 59 14了AppKit
0x00007fff810a4915 - [的NSView的setBounds:] + 153 15 应用套件
0x00007fff810a47f1 - [NSScrollView viewDidChangeBackingProperties] + 173 16了AppKit 0x00007fff815cef69 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1206 17了AppKit 0x00007fff815cf020 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 18 AppKit 0x00007fff815cf020-[NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:colorSpace:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 19了AppKit 0x00007fff815cf020 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 20了AppKit 0x00007fff815cf020 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 21了AppKit 0x00007fff815cf020 -[NSView(NSInternal) _recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:colorSpace:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 22 AppKit 0x00007fff815cf020 -[NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:colorSpace:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 23 AppKit 0x00007fff80fdd001 -[NSView addSubview:] + 1777 24 AppKit 0x00007fff80f1962a -[NSBox setContentView:] + 81 25 AppKit
0x00007fff80f18be0 - [NSSavePanel(NSSavePanelLayout)_layoutViewsVerticallyAndResizeWindowToLastExpandedSize:accessoryViewHeight:] + 4370 26了AppKit 0x00007fff80f14a8b - [NSSavePanel _initPanelCommon] + 484 27了AppKit 0x00007fff80f0f490 - [NSSavePanel initWithContentRect:styleMask:背衬:延迟:] + 334 28了AppKit
0x00007fff80f0d1f7 + [NSSavePanel _crunchyRawUnbonedPanel] + 187 29 jsonanalyzer 0x00000001000226d1 - [OpenFile Openfile] + 49 30 JSonanalyzer
0x0000000100002266 - [AppController OpenMethod] + 182 31
Fourction 0x00007FF858CDCD2 __nsthread__main__ + 1345 32 libsystem_c.dylib
0x00007fff845f67a2 _pthread_start + 327 33 libsystem_c.dylib
0x00007fff845e31e1 thread_start + 13 ) 2013-03-24 11:50:13.109 Program[8369:6b0b] *
由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“(null)不应该已经扩展!” ***第一掷调用堆栈:(0的CoreFoundation 0x00007fff82e07b06 exceptionPreprocess + 198 1 libobjc.A.dylib
0x00007fff89b493f0 objc_exception_throw + 43 2的CoreFoundation
0x00007fff82e07948 + [NSException提高:格式:参数:] + 104 3
基金会0x00007fff85844c82 - [NSAssertionHandler handleFailureInMethod:对象:文件:行号:描述:] + 189 4
了AppKit 0x00007fff81158900 - [NSOutlineView _expandItemEntry:expandChildren:STARTLEVEL:] + 1153 5了AppKit 0x00007fff8113eb92 - [NSOutlineView _uncachedNumberOfRows] + 379 6
了AppKit 0x00007fff8113e9c8 - [NSTableView的_totalHeightOfTableView] + 187 7了AppKit 0x00007fff8113e798 - [NSTableView的_minimumFrameSize] + 74 8了AppKit
0x00007fff8109f0e1 - [NSClipView _minimumFrameSize] + 36 9 AppKit
0x00007fff8109e44e -[NSScrollView 磁贴] + 1883 10 AppKit
0x00007fff8109dc56 -[NSScrollView _tileWithoutRecursing] + 49 11 AppKit 0x00007fff810a0b89 -[NSScrollView reflectScrolledClipView:]
0x00007fff810324eb -[NSClipView _selfBoundsChanged] + 689 13 AppKit 0x00007fff810a4a76 -[NSClipView setBoundsSize:] + 59 14 AppKit
0x00007fff810a4915 -[NSView setBounds:] + 153 15 AppKit
0x00007fff810a47f1 - [NSScrollView viewDidChangeBackingProperties] + 173 16了AppKit 0x00007fff815cef69 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1206 17了AppKit 0x00007fff815cf020 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 18 AppKit 0x00007fff815cf020-[NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:colorSpace:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 19了AppKit 0x00007fff815cf020 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 20了AppKit 0x00007fff815cf020 - [的NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:色空间:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 21了AppKit 0x00007fff815cf020 -[NSView(NSInternal) _recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:colorSpace:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 22 AppKit 0x00007fff815cf020 -[NSView(NSInternal)_recursiveSendViewDidChangeBackingPropertiesFrom:toScaleFactor:colorSpace:invokingForSurfacePropertiesChange:alreadyUpdatedSurfaceProperties:] + 1389 23 AppKit 0x00007fff80fdd001 -[NSView addSubview:] + 1777 24 AppKit 0x00007fff80f1962a -[NSBox setContentView:] + 81 25 AppKit
0x00007fff80f18be0 - [NSSavePanel(NSSavePanelLayout)_layoutViewsVerticallyAndResizeWindowToLastExpandedSize:accessoryViewHeight:] + 4370 26了AppKit 0x00007fff80f14a8b - [NSSavePanel _initPanelCommon] + 484 27了AppKit 0x00007fff80f0f490 - [NSSavePanel initWithContentRect:styleMask:背衬:延迟:] + 334 28了AppKit
0x00007fff80f0d1f7 + [NSSavePanel _crunchyRawUnbonedPanel] + 187 29 jsonanalyzer 0x00000001000226d1 - [OpenFile Openfile] + 49 30 JSonanalyzer
0x0000000100002266 - [AppController OpenMethod] + 182 31
Fourcite 0x00007FF858CDCD2 __nsthread__main
+ 1345 32 libsystem_c.dylib
0x00007fff845f67a2 _pthread_start + 327 libsystem_c.dylib
0x00007fff845e31e1 thread_start + 13)libc++abi.dylib:终止调用抛出异常(lldb)

错误 4:

2013-03-24 12:07:53.299 程序 [9024:6d0b] 引发未捕获的异常 2013-03-24 12:07:53.301 程序 [9024:6d0b] endUpdates 调用时没有 beginUpdates 2013-03-24 12:07 :53.309程序[9024:6d0b](0的CoreFoundation 0x00007fff82e07b06 exceptionPreprocess + 198 1点libobjc.A.dylib 0x00007fff89b493f0 objc_exception_throw + 43 2了AppKit
0x00007fff8118421b - [NSTableRowData endUpdates] + 205 3
的CoreFoundation 0x00007fff82db9eda _CFXNotificationPost + 2554 4基金会0x00007fff85880e26 - [NSNotificationCenter postNotificationName:对象:userInfo:] + 64 5 AppKit
0x00007fff80ff216e -[NSView _postFrameChangeNotification] + 259 6
了AppKit 0x00007fff80fdc843 - [的NSView setFrameSize:] + 1352 7了AppKit
0x00007fff81031cb1 - [NSClipView setFrameSize:] + 394 8了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 9了AppKit
0x00007fff8109fa2f - [NSScrollView _setContentViewFrame:] + 596 10了AppKit 0x00007fff8109e43a - [NSScrollView瓦] + 1863 11了AppKit
0x00007fff8109dc56 - [NSScrollView _tileWithoutRecursing] + 49 12了AppKit 0x00007fff8109dbda - [NSScrollView _Update] + 30 13了AppKit 0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 14了AppKit
0x00007fff810a2e7c - [NSScrollView setFrameSize:] + 1131 15了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 16了AppKit
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize:] + 1502 17了AppKit 0x00007fff81030337 - [的NSView resizeSubviewsWithOldSize:] + 318 18了AppKit
0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 19了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME: ] + 299 20 FinderKit
0x00007fff89ec91aa - [FI_TSidebarSplitterController SPLITVIEW:resizeSubviewsWithOldSize:] + 1232 21了AppKit
0x00007fff811fdc70 - [NSSplitView resizeSubviewsWithOldSize:] + 717 22了AppKit 0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 23了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 24应用套件
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize:] + 1502 25了AppKit 0x00007fff81030337 - [的NSView resizeSubviewsWithOldSize:] + 318 26了AppKit
0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 27了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 28了AppKit
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize: ] + 1502 29 AppKit 0x00007fff81030337 -[NSView resizeSubviewsWithOldSize:] + 318 30 AppKit
0x00007fff80fdc748 -[NSView setFrameSize:] + 1101 31 AppKit
0x00007fff80fdbf8e -[NSView setFrame:] + AppKit 299 3
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize:] + 1502 33了AppKit 0x00007fff81030337 - [的NSView resizeSubviewsWithOldSize:] + 318 34了AppKit
0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 35了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 36了AppKit
0x00007fff80f13bea - [NSNavFinderViewFileBrowser setFrameSize: ] + 152 37 AppKit 0x00007fff80fdbf8e -[NSView setFrame:] + 299 38 AppKit
0x00007fff81118692 -[NSBox _tile:] + 243 39 AppKit
0x00007fff80f1964b -[NSBox setContentView:] + 114 40 AppKit
0x00007fff80f18be0 - [NSSavePanel(NSSavePanelLayout)_layoutViewsVerticallyAndResizeWindowToLastExpandedSize:accessoryViewHeight:] + 4370 41了AppKit 0x00007fff80f14a8b - [NSSavePanel _initPanelCommon] + 484 42了AppKit 0x00007fff80f0f490 - [NSSavePanel initWithContentRect:styleMask:背衬:延迟:] + 334 43了AppKit
0x00007fff80f0d1f7 + [NSSavePanel _crunchyRawUnbonedPanel] + 187 44 jsonanalyzer 0x00000001000226d1 - [Openfile Openfile] + 49 45 jsonanalyzer
0x0000000100002266 - [AppController OpenMethod] + 182 46 Foundation
0x00007FFF858CDCD2 __nsthread__main
+ 1345 47 Libsystem_C.Dylib
0x00007FFF845F67A2 _Pthread_start + 327 48 LibSystem_C.Dylib
0x00007fff845e31e1 thread_start + 13 ) 2013-03-24 12:07:53.315 程序 [9024:6d0b] * 由于未捕获的异常“NSTableViewException”而终止应用程序,原因:“没有 beginUpdates 调用的 endUpdates”*第一次抛出调用堆栈:( 0 CoreFoundation 0x00007fff82e07b06 exceptionPreprocess + 198 1 libobjc.A.dylib
0x00007fff89b493f0 objc_exception_throw + 43 2了AppKit
0x00007fff8118421b - [NSTableRowData endUpdates] + 205 3
的CoreFoundation 0x00007fff82db9eda _CFXNotificationPost + 2554 4基金会0x00007fff85880e26 - [NSNotificationCenter postNotificationName:对象:USERINFO:] + 64 5 AppKit的
0x00007fff80ff216e - [的NSView _postFrameChangeNotification] + 259 6
了AppKit 0x00007fff80fdc843 - [的NSView setFrameSize:] + 1352 7了AppKit
0x00007fff81031cb1 - [NSClipView setFrameSize:] + 394 8了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 9了AppKit
0x00007fff8109fa2f - [NSScrollView _setContentViewFrame:] + 596 10 Appkit 0x00007FFF8109E43A - [NSScrollView Tile] + 1863 11 AppKit
0x00007FFF8109DC56 - [NSScrollView _TileWithoutRecursing] + 49 12 AppKit 0x00007FFF8109DBDA - [NSScrollView _Update] + 30 13 AppKit 0x00007FFF80FDC748 - [NSView SetFramesize:] + 1101 14 AppKit
0x00007fff810a2e7c - [NSScrollView setFrameSize:] + 1131 15了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 16了AppKit
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize:] + 1502 17了AppKit 0x00007fff81030337 - [的NSView resizeSubviewsWithOldSize:] + 318 18了AppKit
0x00007fff80fdc748 - [的NSView setFrameSize: ] + 1101 19了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 20 FinderKit
0x00007fff89ec91aa - [FI_TSidebarSplitterController SPLITVIEW:resizeSubviewsWithOldSize:] + 1232 21了AppKit
0x00007fff811fdc70 - [NSSplitView resizeSubviewsWithOldSize:] + 717 22了AppKit 0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 23应用套件
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 24了AppKit
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize:] + 1502 25了AppKit 0x00007fff81030337 - [的NSView resizeSubviewsWithOldSize:] + 318 26了AppKit
0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 27了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME: ] + 299 28 AppKit
0x00007FFF810311F2 - [NSView ResizeWithOldSuperViewSize:] + 1502 29 AppKit 0x00007FFF81030337 - [NSView ResizativeUbViewSwitholdsize:] + 318 30
Appkit 0x00007FFF80FDC748 - [NSView SetFramesize:] + 1101 31 AppKit
0x00007FFF80FDBF8E - [NSView SetFrame:] + 299 32 AppKit
0x00007fff810311f2 - [的NSView resizeWithOldSuperviewSize:] + 1502 33了AppKit 0x00007fff81030337 - [的NSView resizeSubviewsWithOldSize:] + 318 34了AppKit
0x00007fff80fdc748 - [的NSView setFrameSize:] + 1101 35了AppKit
0x00007fff80fdbf8e - [的NSView SETFRAME:] + 299 36了AppKit
0x00007fff80f13bea - [NSNavFinderViewFileBrowser setFrameSize: ] + 152 37 AppKit 0x00007fff80fdbf8e -[NSView setFrame:] + 299 38 AppKit
0x00007fff81118692 -[NSBox _tile:] + 243 39 AppKit
0x00007fff80f1964b -[NSBox setContentView:] + 114 40 AppKit
0x00007fff80f18be0 - [NSSavePanel(NSSavePanelLayout)_layoutViewsVerticallyAndResizeWindowToLastExpandedSize:accessoryViewHeight:] + 4370 41了AppKit 0x00007fff80f14a8b - [NSSavePanel _initPanelCommon] + 484 42了AppKit 0x00007fff80f0f490 - [NSSavePanel initWithContentRect:styleMask:背衬:延迟:] + 334 43了AppKit
0x00007fff80f0d1f7 + [NSSavePanel _crunchyRawUnbonedPanel] + 187 44 jsonanalyzer 0x00000001000226d1 - [Openfile Openfile] + 49 45 jsonanalyzer
0x0000000100002266 - [AppController OpenMethod] + 182 46 Foundation
0x00007FFF858CDCD2 __nsthread__main
+ 1345 47 Libsystem_C.Dylib
0x00007FFF845F67A2 _Pthread_start + 327 48 LibSystem_C.Dylib
0x00007fff845e31e1 thread_start + 13)libc++abi.dylib:终止调用抛出异常(lldb)

错误 5:

2013-03-24 12:07:01.791 程序[8985:303] *** -[__NSDictionaryI countByEnumeratingWithState:objects:count:]: 消息发送到已释放实例 0x106b80490 (lldb)

错误6:

2013-03-24 12:13:05.343 程序 [9236:6d0b] 启动 objc [9236]:类 _NSZombie_NSIBUserDefinedRuntimeAttributesConnector 在两者中都实现?和 ??。将使用两者之一。哪一个是未定义的。2013-03-24 12:13:05.580 程序 [9236:6d0b] *** -[__NSDictionaryM 计数]:发送到已释放实例 0x106b70080 (lldb) 的消息

4

4 回答 4

2

这几乎可以肯定是您的内存管理错误。无论您希望指向您向其发送 -openFirstFile: 消息的对象的任何指针都不再存在,因为该对象已被释放,而另一个对象现在位于其地址 - 您不应该触摸的地址,因为它不再属于您的应用程序。

使用仪器(僵尸仪器)来追踪错误。

于 2013-03-23T17:45:06.583 回答
1

这里的关键很可能在第一行:-[NSMallocBlock openFirstFile:]. 在这种情况下,很明显-openFirstFile:消息正在从响应者发送到预期是其他东西但已被重用的块。

根据-[NSControl sendAction:to:]堆栈跟踪的后面部分,这是响应某些操作(可能单击标准文件窗口中的“打开”按钮)而发生的。

在这种情况下,似乎某个 IBOutlet 的委托正在指向某些东西并正在被释放。

我会考虑使用 Zombies(在 Instruments 中,或者只是在正常运行时通过Enable Zombie Objects在 Scheme 的 Run 区域的 Diagnostics 部分中使用它们来启用它们。

于 2013-03-23T17:50:48.907 回答
0

对于那些在 tableview 上查看错误 4 的“没有 beginUpdates 调用的 endUpdates”的人,这可能是由于在主线程之外发生的视图更新(例如 [tableview reloadData] 调用)。

有关更多信息,请参阅此类似问题:NSArrayController 重新排列对象错误

于 2014-09-26T23:26:15.227 回答
-1

错误的访问错误通常发生在您试图到达范围之外的东西时,即 8 数组中 7 的位置。您确定不是这种情况吗?这将是我的第一个检查点,确保您不超过限制:)

于 2013-03-23T17:30:37.513 回答