Our application has a fairly standard layout - a main window with a toolbar, source list on the left hand side, and a tab control. The contents of the tabs is drawn by a third party component that is open source and very complex. It makes extensive use of threads, etc.
Some users can reliably reproduce a situation where the whole application 'freezes' - which is to say, the main window stops redrawing. The cursor does not beachball, and the user can still click around, but the window simply does not update.
There is no specific repro steps other than starting to use the application, open one or more tabs and within a few minutes the problem occurs.
They are able to open the application menus at the top of the screen. One of the menu items - "Check for updates" - starts a modal session (a sheet with a progress indicator) while checking for updates on a background thread.
When the application is in this 'frozen' state, choosing 'Check for updates' seems to unfreeze the application for the duration of the modal session. Clicks and button presses that were made while frozen are suddenly registered as the UI redraws.
Then, the 'Check for updates' finishes, the modal session ends and the application is frozen again.
It seems to me to be a problem with the run loop. It's an open-ended question but I honestly don't know where to look - what can cause these kind of symptoms? I am unable to see any correlation between the hardware/software of the users that experience this issue.
EDIT
After freezing, the only thing I see on the console that I can't explain is
12/18/2013 10:39:29.000 AM kernel[0]: Network delay is not specified! Defaulting to 0x384
But I think this is a red herring.
A sample of the process when it's frozen shows this for the UI thread:
+ 2327 -[NSApplication run] (in AppKit) + 727 [0x9392e35c]
+ 2327 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) + 119 [0x9393bad0]
+ 2327 _DPSNextEvent (in AppKit) + 1602 [0x9393c5a9]
+ 2327 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox) + 92 [0x9b2ea98d]
+ 2327 ReceiveNextEventCommon (in HIToolbox) + 526 [0x9b2eabb2]
+ 2327 RunCurrentEventLoopInMode (in HIToolbox) + 259 [0x9b2eae2d]
+ 2327 CFRunLoopRunInMode (in CoreFoundation) + 123 [0x95467bbb]
+ 2327 CFRunLoopRunSpecific (in CoreFoundation) + 394 [0x95467d5a]
+ 2324 __CFRunLoopRun (in CoreFoundation) + 1393 [0x95468541]
+ ! 2324 __CFRunLoopServiceMachPort (in CoreFoundation) + 169 [0x95468f69]
+ ! 2324 mach_msg (in libsystem_kernel.dylib) + 68 [0x99c0616c]
+ ! 2324 mach_msg_trap (in libsystem_kernel.dylib) + 10 [0x99c06f7a]
+ 3 __CFRunLoopRun (in CoreFoundation) + 1779 [0x954686c3]
+ 1 __CFRunLoopDoTimers (in CoreFoundation) + 222 [0x9552b22e]
+ : 1 CFArrayCreateMutable (in CoreFoundation) + 138 [0x9540a02a]
+ : 1 -[__NSPlaceholderArray initWithCapacity:] (in CoreFoundation) + 136 [0x954005a8]
+ : 1 +[__NSArrayM __new:::::] (in CoreFoundation) + 798 [0x9540096e]
+ 1 __CFRunLoopDoTimers (in CoreFoundation) + 237 [0x9552b23d]
+ : 1 CFArrayAppendValue (in CoreFoundation) + 157 [0x9541fa9d]
+ : 1 -[__NSArrayM addObject:] (in CoreFoundation) + 64 [0x954009e0]
+ : 1 -[__NSArrayM insertObject:atIndex:] (in CoreFoundation) + 400 [0x95400b90]
+ : 1 _platform_bzero$VARIANT$sse42 (in libsystem_platform.dylib) + 51 [0x9660c233]
+ 1 __CFRunLoopDoTimers (in CoreFoundation) + 349 [0x9552b2ad]
+ 1 __CFRunLoopDoTimer (in CoreFoundation) + 1395 [0x954b0b43]
+ 1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation) + 22 [0x954b1186]
+ 1 WebCore::timerFired(__CFRunLoopTimer*, void*) (in WebCore) + 64 [0x9285bff0]
+ 1 WebCore::ThreadTimers::sharedTimerFired() (in WebCore) + 84 [0x9285c064]
+ 1 WebCore::ThreadTimers::sharedTimerFiredInternal() (in WebCore) + 330 [0x9285c1ca]
+ 1 WebCore::MainThreadSharedTimer::setFireInterval(double) (in WebCore) + 21 [0x9285ba65]
+ 1 WebCore::setSharedTimerFireInterval(double) (in WebCore) + 173 [0x9285bb1d]
+ 1 CFRunLoopAddTimer (in CoreFoundation) + 453 [0x9546fed5]
+ 1 CFSetApplyFunction (in CoreFoundation) + 147 [0x954554d3]
+ 1 CFBasicHashApply (in CoreFoundation) + 122 [0x95437b4a]
+ 1 __CFSetApplyFunction_block_invoke (in CoreFoundation) + 25 [0x95455519]
+ 1 __CFRunLoopAddItemToCommonModes (in CoreFoundation) + 60 [0x9545556c]
But I am not able to interpret that information...
EDIT 2
An additional sample; clearly different to the first:
+ 2352 -[NSApplication run] (in AppKit) + 727 [0x9887035c]
+ 2352 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) + 119 [0x9887dad0]
+ 2352 _DPSNextEvent (in AppKit) + 1602 [0x9887e5a9]
+ 2352 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox) + 92 [0x9428298d]
+ 2352 ReceiveNextEventCommon (in HIToolbox) + 526 [0x94282bb2]
+ 2352 RunCurrentEventLoopInMode (in HIToolbox) + 259 [0x94282e2d]
+ 2352 CFRunLoopRunInMode (in CoreFoundation) + 123 [0x930d6bbb]
+ 2352 CFRunLoopRunSpecific (in CoreFoundation) + 394 [0x930d6d5a]
+ 2332 __CFRunLoopRun (in CoreFoundation) + 1393 [0x930d7541]
+ ! 2332 __CFRunLoopServiceMachPort (in CoreFoundation) + 169 [0x930d7f69]
+ ! 2332 mach_msg (in libsystem_kernel.dylib) + 68 [0x91bc316c]
+ ! 2332 mach_msg_trap (in libsystem_kernel.dylib) + 10 [0x91bc3f7a]
+ 17 __CFRunLoopRun (in CoreFoundation) + 1779 [0x930d76c3]
+ ! 16 __CFRunLoopDoTimers (in CoreFoundation) + 349 [0x9319a2ad]
+ ! : 10 __CFRunLoopDoTimer (in CoreFoundation) + 1395 [0x9311fb43]
+ ! : | 10 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation) + 22 [0x93120186]
+ ! : | 4 __NSFireTimer (in Foundation) + 117 [0x96cac78b]
+ ! : | + 4 -[ThirdPartyView nsTimerCallBack:] (in ThirdPartyLib) + 61 [0x24958bd]
+ ! : | + 1 -[NSPasteboard changeCount] (in AppKit) + 19 [0x98a44fc6]
+ ! : | + ! 1 CFPasteboardGetGenerationCount (in CoreFoundation) + 0 [0x930e3470]
+ ! : | + 1 -[NSPasteboard changeCount] (in AppKit) + 0 [0x98a44fb3]
+ ! : | + 1 DYLD-STUB$$CFPasteboardGetGenerationCount (in AppKit) + 0 [0x992f994c]
+ ! : | + 1 objc_msgSend (in libobjc.A.dylib) + 26 [0x9b1094aa]
+ ! : | 3 __NSFireTimer (in Foundation) + 164 [0x96cac7ba]
+ ! : | + 3 _CFAutoreleasePoolPop (in CoreFoundation) + 47 [0x9309bcdf]
+ ! : | + 3 (anonymous namespace)::AutoreleasePoolPage::pop(void*) (in libobjc.A.dylib) + 559 [0x9b10b4b7]
+ ! : | 2 __NSFireTimer (in Foundation) + 98 [0x96cac778]
+ ! : | + 2 ??? (in <unknown binary>) [0x3589ca0]
+ ! : | + 2 ??? (in <unknown binary>) [0x99575bc]
+ ! : | + 2 ??? (in <unknown binary>) [0x9957668]
+ ! : | + 1 _objc_rootRetainCount (in libobjc.A.dylib) + 88 [0x9b10bdd0]
+ ! : | + ! 1 objc::DenseMapBase<objc::DenseMap<objc_object*, unsigned long, true, objc::DenseMapInfo<objc_object*> >, objc_object*, unsigned long, objc::DenseMapInfo<objc_object*>, true>::find(objc_object* const&) (in libobjc.A.dylib) + 32 [0x9b11f820]
+ ! : | + ! 1 bool objc::DenseMapBase<objc::DenseMap<objc_object*, unsigned long, true, objc::DenseMapInfo<objc_object*> >, objc_object*, unsigned long, objc::DenseMapInfo<objc_object*>, true>::LookupBucketFor<objc_object*>(objc_object* const&, std::__1::pair<objc_object*, unsigned long> const*&) const (in libobjc.A.dylib) + 73 [0x9b11f9ff]
+ ! : | + 1 objc_msgSend (in libobjc.A.dylib) + 64 [0x9b1094d0]
+ ! : | 1 __NSFireTimer (in Foundation) + 53 [0x96cac74b]
+ ! : | 1 NSPushAutoreleasePool (in Foundation) + 0 [0x96c4a188]
+ ! : 4 __CFRunLoopDoTimer (in CoreFoundation) + 557 [0x9311f7fd]
+ ! : | 3 __CFArmNextTimerInMode (in CoreFoundation) + 773 [0x930df535]
+ ! : | + 3 mk_timer_arm (in libsystem_kernel.dylib) + 10 [0x91bc40ca]
+ ! : | 1 __CFArmNextTimerInMode (in CoreFoundation) + 554 [0x930df45a]
+ ! : | 1 __CFTSRToNanoseconds (in CoreFoundation) + 25 [0x931bedb9]
+ ! : 1 __CFRunLoopDoTimer (in CoreFoundation) + 1556 [0x9311fbe4]
+ ! : | 1 pthread_mutex_lock (in libsystem_pthread.dylib) + 16 [0x911ca7ac]
+ ! : | 1 _pthread_mutex_lock (in libsystem_pthread.dylib) + 181 [0x911ca866]
+ ! : 1 __CFRunLoopDoTimer (in CoreFoundation) + 2093 [0x9311fdfd]
+ ! : 1 __CFRunLoopFindMode (in CoreFoundation) + 174 [0x930b1b5e]
+ ! : 1 _CFRuntimeSetInstanceTypeIDAndIsa (in CoreFoundation) + 33 [0x93065711]
+ ! : 1 _CFRuntimeSetInstanceTypeID (in CoreFoundation) + 0 [0x93063f50]
+ ! 1 __CFRunLoopDoTimers (in CoreFoundation) + 237 [0x9319a23d]
+ ! 1 CFArrayAppendValue (in CoreFoundation) + 157 [0x9308ea9d]
+ ! 1 -[__NSArrayM addObject:] (in CoreFoundation) + 64 [0x9306f9e0]
+ ! 1 -[__NSArrayM insertObject:atIndex:] (in CoreFoundation) + 400 [0x9306fb90]
+ ! 1 _platform_bzero$VARIANT$sse42 (in libsystem_platform.dylib) + 0 [0x94d2d200]
+ 2 __CFRunLoopRun (in CoreFoundation) + 1601 [0x930d7611]
+ ! 1 __CFRunLoopDoObservers (in CoreFoundation) + 81 [0x930e63b1]
+ ! : 1 CFArrayGetCount (in CoreFoundation) + 20 [0x930797f4]
+ ! 1 __CFRunLoopDoObservers (in CoreFoundation) + 194 [0x930e6422]
+ ! 1 CFArrayGetValueAtIndex (in CoreFoundation) + 0 [0x9308ef80]
+ 1 __CFRunLoopRun (in CoreFoundation) + 1550 [0x930d75de]
+ 1 mach_port_extract_member (in libsystem_kernel.dylib) + 31 [0x91bc7363]
+ 1 _kernelrpc_mach_port_extract_member_trap (in libsystem_kernel.dylib) + 10 [0x91bc3f26]
Related
Recently we received lots of WKWebView crash logs on the iOS14 beta2 system.
Here is the crash log:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: 0x00000000 at 0xf7fff8018
Attempted to dereference garbage pointer 0xf7fff8018.
libobjc.A.dylib
__NO_DSYM_FILE__
2
UIKitCore
-[_UIFocusContainerGuideMapEntry setFocusContainmentFrame:] (in UIKitCore) + 16
3
UIKitCore
-[_UIFocusRegionMapEntry _mapEntriesByOccludingWithFrame:] (in UIKitCore) + 344
4
UIKitCore
-[_UIFocusRegionMapSnapshot .cxx_destruct] (in UIKitCore) + 96
5
UIKitCore
-[_UIFocusableRegionMapEntry description] (in UIKitCore) + 116
6
UIKitCore
-[_UIFocusableRegionMapEntry description] (in UIKitCore) + 228
7
UIKitCore
-[_UIFocusRegionMapSnapshot visualRepresentationWithMinimumArea:] (in UIKitCore) + 1844
8
UIKitCore
-[_UIFocusRegionMapSnapshot visualRepresentationWithMinimumArea:] (in UIKitCore) + 672
9
UIKitCore
-[_UIFocusRegionMapSnapshot _snapshotByFulfillingPromiseFocusRegionEntry:] (in UIKitCore) + 848
10
UIKitCore
-[_UIStateMachine(Legacy) setStaticTransitionFromState:withEvent:toState:] (in UIKitCore) + 128
11
UIKitCore
-[_UIEstimatedTouchRecord initWithLiveTouch:freezeTouch:contextID:] (in UIKitCore) + 4
12
UIKitCore
-[UIWebDocumentView(Interaction) deepestNodeAtViewportLocation:] (in UIKitCore) + 96
13
WebKit
-[WKProcessAssertionBackgroundTaskManager _updateBackgroundTask] (in WebKit) + 272
14
WebKit
bool IPC::MessageSender::send<Messages::WebPaymentCoordinator::DidAuthorizePayment>(Messages::WebPaymentCoordinator::DidAuthorizePayment const&, unsigned long long, WTF::OptionSet<IPC::SendOption>) (in WebKit) + 28
15
WebKit
-[WKContentView(WKInteractionPreview) _presentedViewControllerForPreviewItemController:] (in WebKit) + 1564
16
UIKitCore
-[UIBezierPath encodeWithCoder:] (in UIKitCore) + 140
17
UIKitCore
__21+[UIColor blackColor]_block_invoke (in UIKitCore) + 140
18
UIKitCore
-[UIDisplayP3Color initWithDisplayP3Red:green:blue:alpha:] (in UIKitCore) + 196
19
UIKitCore
-[UIDeviceRGBColor set] (in UIKitCore) + 48
20
UIKitCore
__83+[_UIAppearance _applyInvocationsTo:window:matchingSelector:onlySystemInvocations:]_block_invoke (in UIKitCore) + 312
21
UIKitCore
+[_UIAppearance appearancesAtNode:withObject:] (in UIKitCore) + 992
22
UIKitCore
__processEventQueue (in UIKitCore) + 8700
23
UIKitCore
_UIDrawViewRectAfterCommit (in UIKitCore) + 708
24
UIKitCore
-[_UIStatusBarLockView animateUnlockWithCompletionBlock:] (in UIKitCore) + 704
25
UIKitCore
-[_UIStatusBarDualCellularSignalView setTopConstraint:] (in UIKitCore) + 0
26
CoreFoundation
-[__NSDictionary0 copy] (in CoreFoundation) + 0
27
CoreFoundation
__copy_helper_block_e8_32o40o48b56o64r (in CoreFoundation) + 16
28
CoreFoundation
__destroy_helper_block_e8_32o40o48b56r64r (in CoreFoundation) + 16
29
CoreFoundation
CFRunLoopTimerSetNextFireDate (in CoreFoundation) + 1072
30
CoreFoundation
CFRunLoopTimerCreate (in CoreFoundation) + 384
31
GraphicsServices
_GSSendEvent (in GraphicsServices) + 252
32
UIKitCore
-[_UISearchControllerATVSearchBarAnimator _updateLayoutForGridKeyboard:animated:] (in UIKitCore) + 4092
33
UIKitCore
-[_UISearchFormSheetPresentationController presentationTransitionWillBegin] (in UIKitCore) + 20
Is anyone familiar with this? Thx in advance
I'm trying to add UITableViewController to Today Widget, but every time I drag UITableViewController to Storyboard and run the Widget it crashes with the following error.
I've tried multiple times. I've tried it by using Table View object, but problem persists.
Note: It crashes even before loading viewDidLoad() method.
2015-06-06 01:19:20.569 iOSHackerToday[3202:283287] * Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '* -[NSArrayM
insertObject:atIndex:]: object cannot be nil'
*** First throw call stack: ( 0 CoreFoundation 0x0000000107842c65 __exceptionPreprocess + 165 1 libobjc.A.dylib
0x00000001074dbbb7 objc_exception_throw + 45 2 CoreFoundation
0x000000010770f8ca -[__NSArrayM insertObject:atIndex:] + 954 3
UIKit 0x0000000107d6f0b9
-[UIViewController _addChildViewController:performHierarchyCheck:notifyWillMove:] + 338 4 UIKit 0x0000000108241a0c
-[_UIViewServiceViewControllerOperator __createViewController:withContextToken:fbsDisplays:appearanceSerializedRepresentations:legacyAppearance:traitCollection:initialInterfaceOrientation:hostAccessibilityServerPort:canShowTextServices:replyHandler:]
+ 2216 5 CoreFoundation 0x0000000107738dec __invoking_ + 140 6 CoreFoundation 0x0000000107738c42 -[NSInvocation invoke] + 290 7 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 8 UIKit
0x00000001082fd01b -[_UIViewServiceImplicitAnimationDecodingProxy
forwardInvocation:] + 222 9 CoreFoundation
0x000000010779ff4f forwarding + 495 10 CoreFoundation
0x000000010779fcd8 _CF_forwarding_prep_0 + 120 11 CoreFoundation
0x0000000107738dec invoking_ + 140 12 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 13 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 14 UIKit
0x00000001082889f4 -[_UIQueueingProxy forwardInvocation:] + 319 15
CoreFoundation 0x000000010779ff4f
forwarding + 495 16 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 17 CoreFoundation
0x0000000107738dec invoking_ + 140 18 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 19 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 20
CoreFoundation 0x000000010779ff4f
forwarding + 495 21 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 22 CoreFoundation
0x0000000107738dec invoking_ + 140 23 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 24 libdispatch.dylib
0x0000000109da6f16 _dispatch_call_block_and_release + 12 25
libdispatch.dylib 0x0000000109dc1964
_dispatch_client_callout + 8 26 libdispatch.dylib 0x0000000109daca59 _dispatch_main_queue_callback_4CF + 704 27
CoreFoundation 0x00000001077aa1f9
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 28 CoreFoundation 0x000000010776bdcb __CFRunLoopRun
+ 2043 29 CoreFoundation 0x000000010776b366 CFRunLoopRunSpecific + 470 30 GraphicsServices
0x000000010b01ca3e GSEventRunModal + 161 31 UIKit
0x0000000107c3b900 UIApplicationMain + 1282 32 libxpc.dylib
0x000000010a0a7aec _xpc_objc_main + 453 33 libxpc.dylib
0x000000010a0a9e91 xpc_main + 185 34 Foundation
0x0000000107209ee1 service_connection_handler + 0 35 PlugInKit
0x0000000106ff3a82 -[PKService run] + 521 36 PlugInKit
0x0000000106ff3747 +[PKService main] + 55 37 PlugInKit
0x0000000106ff3aa6 +[PKService _defaultRun:arguments:] + 17 38
libextension.dylib 0x000000010978399d NSExtensionMain
+ 51 39 libdyld.dylib 0x0000000109df1145 start + 1 40 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type
NSException (lldb)
When you delete the default layout and drag a new table view controller, you need to mark the new view controller as 'Intial View Controller'
Here's the Apple's document which explains how to do it. https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/chapters/SetInitialController.html
In the storyboard, if you are using a custom view controller class made in swift, make sure you check the box 'Inherit Module From Target':
So I was messing around with the Document Based Application, and I'm trying get the save file to work. I have a file format save to .lgre and whenever I hit save, I'll select location, and then nothing happens except that I get this in that console. Can someone tell me whats going wrong?
0 CoreFoundation 0x00007fff8c64b64c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8e9ca6de objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c64b4fd +[NSException raise:format:] + 205
3 Ligre UI 0x00000001000011b1 -[Document dataOfType:error:] + 129
4 AppKit 0x00007fff933d8fcf -[NSDocument writeToURL:ofType:error:] + 861
5 AppKit 0x00007fff933dbf03 -[NSDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:] + 494
6 AppKit 0x00007fff933dae6b -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:forceTemporaryDirectory:error:] + 850
7 AppKit 0x00007fff933dbb93 -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:error:] + 28
8 AppKit 0x00007fff933dbd01 -[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:] + 357
9 AppKit 0x00007fff933e8fc5 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke_22307 + 240
10 AppKit 0x00007fff933e8ec6 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke2304 + 365
11 AppKit 0x00007fff933e72e6 __66-[NSDocument saveToURL:ofType:forSaveOperation:completionHandler:]_block_invoke2176 + 1587
12 AppKit 0x00007fff93426882 __62-[NSDocumentController(NSInternal) _onMainThreadInvokeWorker:]_block_invoke1881 + 175
13 CoreFoundation 0x00007fff8c56954c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
14 CoreFoundation 0x00007fff8c55b655 __CFRunLoopDoBlocks + 341
15 CoreFoundation 0x00007fff8c55b196 __CFRunLoopRun + 1814
16 CoreFoundation 0x00007fff8c55a838 CFRunLoopRunSpecific + 296
17 HIToolbox 0x00007fff9421243f RunCurrentEventLoopInMode + 235
18 HIToolbox 0x00007fff942121ba ReceiveNextEventCommon + 431
19 HIToolbox 0x00007fff94211ffb _BlockUntilNextEventMatchingListInModeWithFilter + 71
20 AppKit 0x00007fff92fbe6d1 _DPSNextEvent + 964
21 AppKit 0x00007fff92fbde80 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
22 AppKit 0x00007fff92fb1e23 -[NSApplication run] + 594
23 AppKit 0x00007fff92f9d2d4 NSApplicationMain + 1832
24 Ligre UI 0x0000000100001302 main + 34
25 libdyld.dylib 0x00007fff8cea45c9 start + 1
26 ??? 0x0000000000000003 0x0 + 3
)
Did you override dataOfType or one of the writeToURL methods?
See the discussion here: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDocument_Class/index.html#//apple_ref/occ/instm/NSDocument/dataOfType:error:
I am looking for some assistance with squashing a bug in an OSX app that i just can't work out. I am getting a logged error of:
Selector name found in current argument registers: isEqual:
But i can't for the life of me work out where it's coming from as the log is very unhelpful. Also i can't reproduce this on my own test systems, but it seems to be happening quite a lot on some of the beta testers machines. This only seems to happen on 10.9.
Here is the log file for the crash:
Incident Identifier: 77FAD32D-0316-489E-B898-9C084A4FF48A
CrashReporter Key: A9FEF4E7-53F7-5FD1-AEDE-915C87BD437F
Hardware Model: MacBookPro8,1
Process: iModerate Deskto [4155]
Path: /Users/USER/Desktop/iModerate Desktop.app/Contents/MacOS/iModerate Desktop
Identifier: com.fuzzybadger.iModerate-Desktop
Version: 1.1.549
Code Type: X86-64
Parent Process: launchd [159]
Date/Time: 2014-02-28 10:40:33 +0000
OS Version: Mac OS X 10.9.0 (13A603)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_NOOP at 0x0
Crashed Thread: 10
Application Specific Information:
Selector name found in current argument registers: isEqual:
Thread 0:
0 libsystem_kernel.dylib 0x00007fff852b1716 __psynch_cvwait + 10
1 QuartzCore 0x00007fff8769cce7 _ZN2CA13DispatchGroupD2Ev + 53
2 QuartzCore 0x00007fff8768916e _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 538
3 QuartzCore 0x00007fff876888f1 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
4 QuartzCore 0x00007fff8768837c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 236
5 QuartzCore 0x00007fff87688016 _ZN2CA11Transaction6commitEv + 388
6 QuartzCore 0x00007fff876987a1 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 71
7 CoreFoundation 0x00007fff8998d0a7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
8 CoreFoundation 0x00007fff8998d017 __CFRunLoopDoObservers + 391
9 CoreFoundation 0x00007fff8997e294 CFRunLoopRunSpecific + 340
10 HIToolbox 0x00007fff8fbd1f0d RunCurrentEventLoopInMode + 226
11 HIToolbox 0x00007fff8fbd1b85 ReceiveNextEventCommon + 173
12 HIToolbox 0x00007fff8fbd1abc _BlockUntilNextEventMatchingListInModeWithFilter + 65
13 AppKit 0x00007fff8ce6828e _DPSNextEvent + 1434
14 AppKit 0x00007fff8ce678db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
15 AppKit 0x00007fff8ce5b9cc -[NSApplication run] + 553
16 AppKit 0x00007fff8ce46803 NSApplicationMain + 940
17 libdyld.dylib 0x00007fff8ce435fd start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff852b2662 kevent64 + 10
1 libdispatch.dylib 0x00007fff91e9f152 _dispatch_mgr_init + 0
Thread 2:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 Foundation 0x00007fff90e47907 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
5 Foundation 0x00007fff90e4770b __NSThread__main__ + 1318
6 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 3:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 AppKit 0x00007fff8d0081ce _NSEventThread + 144
5 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
6 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 4:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 Foundation 0x00007fff90e49a7c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253
5 Simperium-OSX 0x000000010cb6b838 -[_SRRunLoopThread main] (SRWebSocket.m:1744)
6 Foundation 0x00007fff90e4770b __NSThread__main__ + 1318
7 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
8 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 5:
0 libsystem_kernel.dylib 0x00007fff852b19aa __select + 10
1 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
2 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 6:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 8:
0 libsystem_platform.dylib 0x00007fff8bde7cd1 OSAtomicDequeue + 17
1 libsystem_malloc.dylib 0x00007fff8f4b16c4 nano_malloc + 35
2 libsystem_malloc.dylib 0x00007fff8f4af87c malloc_zone_malloc + 71
3 CoreFoundation 0x00007fff899118df __CFBasicHashRehash + 287
4 CoreFoundation 0x00007fff89917566 __CFBasicHashAddValue + 86
5 CoreFoundation 0x00007fff89916609 CFDictionarySetValue + 217
6 libCGCMS.A.dylib 0x00007fff8b857fb8 CreateProfileSet + 104
7 libCGCMS.A.dylib 0x00007fff8b857e61 profileRef + 189
8 libCGCMS.A.dylib 0x00007fff8b858b79 create + 1205
9 libCGCMS.A.dylib 0x00007fff8b859454 get_cms_space_for_space + 140
10 libCGCMS.A.dylib 0x00007fff8b8592ca get_color_world_for_space + 166
11 libCGCMS.A.dylib 0x00007fff8b8591f0 CMSTransformCreateConverter + 63
12 CoreGraphics 0x00007fff86681ba1 CGColorTransformCacheGetConversionType + 145
13 CoreGraphics 0x00007fff86681aeb CGColorTransformConvertNeedsCMS + 113
14 CoreGraphics 0x00007fff8667f8e9 img_data_lock + 1217
15 CoreGraphics 0x00007fff8667e480 CGSImageDataLock + 149
16 libRIP.A.dylib 0x00007fff86548b3c ripc_AcquireImage + 769
17 libRIP.A.dylib 0x00007fff86547b85 ripc_DrawImage + 1025
18 CoreGraphics 0x00007fff8667e023 CGContextDrawImage + 457
19 AppKit 0x00007fff8cfd8c02 __74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 835
20 AppKit 0x00007fff8cfd86a8 -[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1073
21 AppKit 0x00007fff8cfd7fee __71-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 896
22 AppKit 0x00007fff8cf63626 -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 170
23 AppKit 0x00007fff8cfd7b6c -[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1447
24 AppKit 0x00007fff8cfd7153 -[NSImage _drawMappingAlignmentRectToRect:withState:backgroundStyle:operation:fraction:flip:hints:] + 1453
25 AppKit 0x00007fff8d01fa21 -[NSImageCell _drawImageWithFrame:inView:] + 225
26 AppKit 0x00007fff8d01f8e5 -[NSImageCell drawInteriorWithFrame:inView:] + 625
27 AppKit 0x00007fff8cfd4728 -[NSControl drawRect:] + 341
28 AppKit 0x00007fff8cfc98b0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1075
29 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
30 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
31 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
32 AppKit 0x00007fff8cfc936d __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 186
33 AppKit 0x00007fff8cfc9153 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 2297
34 AppKit 0x00007fff8cfc8848 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 108
35 QuartzCore 0x00007fff8768a852 CABackingStoreUpdate_ + 2220
36 QuartzCore 0x00007fff87689fa0 ___ZN2CA5Layer8display_Ev_block_invoke + 59
37 QuartzCore 0x00007fff87689f5c x_blame_allocations + 84
38 QuartzCore 0x00007fff87689a6b _ZN2CA5Layer8display_Ev + 1539
39 AppKit 0x00007fff8cfc8713 _NSBackingLayerDisplay + 235
40 AppKit 0x00007fff8cf9faab -[_NSViewBackingLayer display] + 811
41 QuartzCore 0x00007fff8769ce1a _ZL16display_callbackPvS_ + 81
42 QuartzCore 0x00007fff8769cd69 _ZN2CA13DispatchGroup8dispatchEb + 69
43 libdispatch.dylib 0x00007fff91e9d2ad _dispatch_client_callout + 8
44 libdispatch.dylib 0x00007fff91e9f09e _dispatch_root_queue_drain + 326
45 libdispatch.dylib 0x00007fff91ea0193 _dispatch_worker_thread2 + 40
46 libsystem_pthread.dylib 0x00007fff905e9ef8 _pthread_wqthread + 314
47 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 10 Crashed:
0 libobjc.A.dylib 0x00007fff87f0e097 objc_msgSend + 23
1 CoreFoundation 0x00007fff899573d9 -[__NSDictionaryM setObject:forKey:] + 505
2 AppKit 0x00007fff8ceb032b -[NSCell _textAttributes] + 531
3 AppKit 0x00007fff8ceb00e2 -[NSCell _unformattedAttributedStringValue:] + 301
4 AppKit 0x00007fff8cfead57 -[NSButtonCell _currentTitle] + 122
5 AppKit 0x00007fff8cfea3fb -[NSButtonCell _configureAndDrawTitleWithRect:cellFrame:controlView:] + 148
6 AppKit 0x00007fff8cfd62cf -[NSButtonCell drawInteriorWithFrame:inView:] + 1965
7 AppKit 0x00007fff8cfd5ac8 -[NSButtonCell drawWithFrame:inView:] + 498
8 AppKit 0x00007fff8cfd4728 -[NSControl drawRect:] + 341
9 AppKit 0x00007fff8cfc98b0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1075
10 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
11 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
12 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
13 AppKit 0x00007fff8cfc936d __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 186
14 AppKit 0x00007fff8cfc9153 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 2297
15 AppKit 0x00007fff8cfc8848 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 108
16 AppKit 0x00007fff8d01e57c -[_NSBackingLayerContents drawLayer:inContext:] + 149
17 QuartzCore 0x00007fff8768bcc9 -[CALayer drawInContext:] + 115
18 AppKit 0x00007fff8d01e0b8 -[_NSTiledLayer drawTile:inContext:] + 654
19 AppKit 0x00007fff8d01ddbc -[_NSTiledLayerContents drawLayer:inContext:] + 172
20 QuartzCore 0x00007fff8768bcc9 -[CALayer drawInContext:] + 115
21 AppKit 0x00007fff8d7f2565 -[NSTileLayer drawInContext:] + 169
22 QuartzCore 0x00007fff8768a852 CABackingStoreUpdate_ + 2220
23 QuartzCore 0x00007fff87689fa0 ___ZN2CA5Layer8display_Ev_block_invoke + 59
24 QuartzCore 0x00007fff87689f5c x_blame_allocations + 84
25 QuartzCore 0x00007fff87689a6b _ZN2CA5Layer8display_Ev + 1539
26 AppKit 0x00007fff8d01dccf -[NSTileLayer display] + 119
27 AppKit 0x00007fff8d01a175 -[_NSTiledLayerContents update:] + 5545
28 AppKit 0x00007fff8d0188e8 -[_NSTiledLayer display] + 404
29 QuartzCore 0x00007fff8769ce1a _ZL16display_callbackPvS_ + 81
30 QuartzCore 0x00007fff8769cd69 _ZN2CA13DispatchGroup8dispatchEb + 69
31 libdispatch.dylib 0x00007fff91e9d2ad _dispatch_client_callout + 8
32 libdispatch.dylib 0x00007fff91e9f09e _dispatch_root_queue_drain + 326
33 libdispatch.dylib 0x00007fff91ea0193 _dispatch_worker_thread2 + 40
34 libsystem_pthread.dylib 0x00007fff905e9ef8 _pthread_wqthread + 314
35 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 13:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 10 crashed with X86-64 Thread State:
rip: 0x00007fff87f0e097 rbp: 0x000000011ab59d20 rsp: 0x000000011ab59cb8 rax: 0x00007fff76b7c648
rbx: 0x0000000000000001 rcx: 0x0000000000000000 rdx: 0x00007fff76b7c648 rdi: 0x00006080006321a0
rsi: 0x00007fff8d89320c r8: 0x00007fff8d85082b r9: 0x0000000000000032 r10: 0x00007fff8d89320c
r11: 0xbadd0dacedb8bead r12: 0x0000608000232d00 r13: 0x0000000000000002 r14: 0x0000000000000003
r15: 0x0000000000000003 rflags: 0x0000000000010246 cs: 0x000000000000002b fs: 0x0000000000000000
gs: 0x000000000e5d0000
The string Selector name found in current argument registers: isEqual: in the crash report is actually coming from HockeySDK and shows the last selector name objc_msgSend() was trying to call. It is identical to OS X showing the following string in their crash reports: objc_msgSend() selector name: isEqual:.
We'll improve this message in our SDK and also see what we can do in the backend for current incoming messages.
So the crash is not caused by HockeySDK!
The reason for the crash is, that objc_msgSend (thread 10 frame 0) was trying to call isEqual on an invalid object, hence the exception type SIGSEGV (See http://en.wikipedia.org/wiki/Segmentation_fault ). This was triggered by [NSButtonCell _currentTitle] in frame 4.
So you might want to check your table views and cells memory management. Especially when you assign a title to an NSButtonCell.
When i am moving the data from tableview cell by one its crashing ..
When my view did loaded my array count is 64
I assign this to number of row return [categorieArray count];
and cell configuration
cell.textLabel.text=[categorieArray objectAtIndex:indexPath.row];
return cell;
*** Call stack at first throw:
(
0 CoreFoundation 0x00f8fbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x010e45c2 objc_exception_throw + 47
2 CoreFoundation 0x00f916fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00f01366 ___forwarding___ + 966
4 CoreFoundation 0x00f00f22 _CF_forwarding_prep_0 + 50
5 Sigma-Aldrich 0x0000468d -[RootViewController tableView:cellForRowAtIndexPath:] + 237
6 UIKit 0x000977fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
7 UIKit 0x0008d77f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
8 UIKit 0x000a2450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
9 UIKit 0x0009a538 -[UITableView layoutSubviews] + 242
10 QuartzCore 0x017f5451 -[CALayer layoutSublayers] + 181
11 QuartzCore 0x017f517c CALayerLayoutIfNeeded + 220
12 QuartzCore 0x017ee37c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
13 QuartzCore 0x017ee0d0 _ZN2CA11Transaction6commitEv + 292
14 QuartzCore 0x0181e7d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
15 CoreFoundation 0x00f70fbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
16 CoreFoundation 0x00f060e7 __CFRunLoopDoObservers + 295
17 CoreFoundation 0x00ecebd7 __CFRunLoopRun + 1575
18 CoreFoundation 0x00ece240 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00ece161 CFRunLoopRunInMode + 97
20 GraphicsServices 0x01203268 GSEventRunModal + 217
21 GraphicsServices 0x0120332d GSEventRun + 115
22 UIKit 0x0003242e UIApplicationMain + 1160
23 Sigma-Aldrich 0x00001d49 main + 121
24 Sigma-Aldrich 0x00001cc5 start + 53
25 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
It seems you have an incomplete implementation of your UITableViewDataSource, specifically (it seems) you forgot to implement tableView:cellForRowAtIndexPath, so that when the framework tries and calls it, it fails.
Have a look here for more info.