The app is crashing on iOS 13 versions only with crash details fetched from Firebase Crashlytics.
There are no specific details about the app location where the app is crashing. I have tried finding out about it, but not succeeded.
Fatal Exception: NSInvalidArgumentException
-[WAKScrollView canBecomeFocused]: unrecognized selector sent to instance 0x283fc5e80
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x1a534b5f0 __exceptionPreprocess
1 libobjc.A.dylib 0x1a506dbcc objc_exception_throw
2 CoreFoundation 0x1a524fea8 -[NSOrderedSet initWithSet:copyItems:]
3 CoreFoundation 0x1a534f694 ___forwarding___
4 CoreFoundation 0x1a53515bc _CF_forwarding_prep_0
5 UIKitCore 0x1a8ef0664 _UIFocusItemCanBecomeFocusedAndChildrenAreNotFocused
6 UIKitCore 0x1a8f12a58 -[_UIFocusItemRegion initWithFrame:item:]
7 WebCore 0x1dac31288 -[UIKitWebAccessibilityObjectWrapper(UIFocusConformance) _searchForFocusRegionsInContext:]
8 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
9 WebCore 0x1dac311d4 -[UIKitWebAccessibilityObjectWrapper(UIFocusConformance) _searchForFocusRegionsInContext:]
10 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
11 UIKitCore 0x1a9886828 -[UIView _addAccessibilityFocusContainersInRect:inCoordinateSpace:context:]
12 UIKitCore 0x1a9886504 -[UIView _searchForFocusRegionsInContext:]
13 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
14 UIKitCore 0x1a8f291c4 -[_UIFocusMapSnapshot addRegionsInContainers:]
15 UIKitCore 0x1a98864e0 -[UIView _searchForFocusRegionsInContext:]
16 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
17 UIKitCore 0x1a8f291c4 -[_UIFocusMapSnapshot addRegionsInContainers:]
18 UIKitCore 0x1a98864e0 -[UIView _searchForFocusRegionsInContext:]
19 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
20 UIKitCore 0x1a8f291c4 -[_UIFocusMapSnapshot addRegionsInContainers:]
21 UIKitCore 0x1a98864e0 -[UIView _searchForFocusRegionsInContext:]
22 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
23 UIKitCore 0x1a8f291c4 -[_UIFocusMapSnapshot addRegionsInContainers:]
24 UIKitCore 0x1a98864e0 -[UIView _searchForFocusRegionsInContext:]
25 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
26 UIKitCore 0x1a8f291c4 -[_UIFocusMapSnapshot addRegionsInContainers:]
27 UIKitCore 0x1a98864e0 -[UIView _searchForFocusRegionsInContext:]
28 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
29 UIKitCore 0x1a8f291c4 -[_UIFocusMapSnapshot addRegionsInContainers:]
30 UIKitCore 0x1a98864e0 -[UIView _searchForFocusRegionsInContext:]
31 UIKitCore 0x1a8f28ff4 -[_UIFocusMapSnapshot addRegionsInContainer:]
32 UIKitCore 0x1a8f2888c -[_UIFocusMapSnapshot _capture]
33 UIKitCore 0x1a8f27e38 -[_UIFocusMapSnapshot _initWithSnapshotter:mapArea:searchArea:]
34 UIKitCore 0x1a8f29f2c -[_UIFocusMapSnapshotter captureSnapshot]
35 UIKitCore 0x1a8f21754 -[_UIFocusMap _defaultFocusItemInEnvironment:limitScopeUsingFocusPreferences:]
36 UIKitCore 0x1a8efbd84 -[_UIFocusEnvironmentPreferenceEnumerationContext _inferPreferencesForEnvironment:]
37 UIKitCore 0x1a8efbb40 -[_UIFocusEnvironmentPreferenceEnumerationContext _resolvePreferredFocusEnvironments]
38 UIKitCore 0x1a8efba80 -[_UIFocusEnvironmentPreferenceEnumerationContext prefersNothingFocused]
39 UIKitCore 0x1a8efc550 _enumeratePreferredFocusEnvironments
40 UIKitCore 0x1a8efc670 _enumeratePreferredFocusEnvironments
41 UIKitCore 0x1a8efc670 _enumeratePreferredFocusEnvironments
42 UIKitCore 0x1a8efc670 _enumeratePreferredFocusEnvironments
43 UIKitCore 0x1a8efc670 _enumeratePreferredFocusEnvironments
44 UIKitCore 0x1a8efc670 _enumeratePreferredFocusEnvironments
45 UIKitCore 0x1a8efc670 _enumeratePreferredFocusEnvironments
46 UIKitCore 0x1a8efc344 -[_UIFocusEnvironmentPreferenceEnumerator enumeratePreferencesForEnvironment:usingBlock:]
47 UIKitCore 0x1a8efccc4 -[_UIDeepestPreferredEnvironmentSearch deepestPreferredFocusableItemForEnvironment:inFocusSystem:]
48 UIKitCore 0x1a8f3af68 -[UIFocusUpdateContext _updateDestinationItemIfNeeded]
49 UIKitCore 0x1a8f3ad48 -[UIFocusUpdateContext _destinationItemInfo]
50 UIKitCore 0x1a8f3ac30 -[UIFocusUpdateContext nextFocusedItem]
51 UIKitCore 0x1a8f2b96c -[UIFocusSystem updateFocusIfNeeded]
52 UIKitCore 0x1a93ff94c _runAfterCACommitDeferredBlocks
53 UIKitCore 0x1a93ef2f4 _cleanUpAfterCAFlushAndRunDeferredBlocks
54 UIKitCore 0x1a941f744 _afterCACommitHandler
55 CoreFoundation 0x1a52c8fb8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
56 CoreFoundation 0x1a52c3eac __CFRunLoopDoObservers
57 CoreFoundation 0x1a52c4328 __CFRunLoopRun
58 CoreFoundation 0x1a52c3c34 CFRunLoopRunSpecific
59 GraphicsServices 0x1af40d38c GSEventRunModal
60 UIKitCore 0x1a93f622c UIApplicationMain
61 MagicBox Learning 0x104718058 main + 14 (main.m:14)
62 libdyld.dylib 0x1a514b800 start
We had this issue in our app if there was a bluetooth keyboard attached to the device, but only if the Settings->Accessibility->Keyboards->Full Keyboard Access setting was enabled. As soon as that was turned off there were not more crashes.
Related
we're getting a small number but regular crashes on launch in a production app.
We have Crashlytics and Sentry but i cant see any references to the react code.
Here is a couple of stacktraces
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x2d318 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fc24 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x2fbbc abort_with_payload_wrapper_internal + 30
3 libobjc.A.dylib 0x2d0b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
4 libobjc.A.dylib 0x2d040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30
5 libobjc.A.dylib 0x5acc weak_register_no_lock + 392
6 libobjc.A.dylib 0xa924 objc_storeWeak + 448
7 UIKitCore 0x2a2ee0 -[_UIBoundingPath initWithCoordinateSpace:] + 96
8 UIKitCore 0x613fc4 -[_UIComplexBoundingPath initWithCoordinateSpace:orientation:scale:boundingPathBitmap:] + 112
9 UIKitCore 0x3f11d0 -[_UIScreenComplexBoundingPathUtilities boundingPathForWindow:] + 2836
10 UIKitCore 0x675ddc -[UIWindow _boundingPath] + 204
11 UIKitCore 0x1b1650 -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 244
12 UIKitCore 0x4bab4c -[UIView(UIViewBoundingPathSupport) _rectTuckedAgainstBoundingPathEdge:withSize:cornerRadii:minimumPadding:] + 260
13 UIKitCore 0x6b74f8 -[_UISheetLayoutInfo _unsafeInsets] + 160
14 UIKitCore 0x71f18 -[_UISheetLayoutInfo _marginsWhenFloating] + 184
15 UIKitCore 0x3aca4c -[_UISheetLayoutInfo _isEdgeAttached] + 52
16 UIKitCore 0x467ffc -[_UISheetLayoutInfo _reversedIndexOfLastUndimmedDetent] + 84
17 UIKitCore 0x2d713c -[_UISheetLayoutInfo _activeDetentValues] + 348
18 UIKitCore 0x24b990 -[_UISheetLayoutInfo _offsetForCurrentActiveDetent] + 48
19 UIKitCore 0x583b5c -[_UISheetLayoutInfo _frameOfPresentedViewInContainerView] + 100
20 UIKitCore 0x3cad98 -[UISheetPresentationController _containerViewLayoutSubviews] + 652
21 UIKitCore 0x2231dc -[UITransitionView layoutSubviews] + 92
22 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
23 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
24 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
25 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
26 QuartzCore 0x504a8 CA::Transaction::commit() + 704
27 QuartzCore 0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
28 UIKitCore 0x53e6e0 _UIApplicationFlushCATransaction + 72
29 UIKitCore 0x7d8d5c _UIUpdateSequenceRun + 84
30 UIKitCore 0xe5fedc schedulerStepScheduledMainSection + 144
31 UIKitCore 0xe5f6a4 runloopSourceCallback + 92
32 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
33 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0 + 208
34 CoreFoundation 0x5694 __CFRunLoopDoSources0 + 268
35 CoreFoundation 0xb05c __CFRunLoopRun + 828
36 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
37 GraphicsServices 0x1374 GSEventRunModal + 164
38 UIKitCore 0x514b58 -[UIApplication _run] + 1100
39 UIKitCore 0x296090 UIApplicationMain + 364
40 App. 0x72a4 main + 8 (main.m:8)
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x2d318 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fc24 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x2fbbc abort_with_payload_wrapper_internal + 30
3 libobjc.A.dylib 0x2d0b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
4 libobjc.A.dylib 0x2d040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 30
5 libobjc.A.dylib 0x5acc weak_register_no_lock + 392
6 libobjc.A.dylib 0xa924 objc_storeWeak + 448
7 UIKitCore 0x2a2ee0 -[_UIBoundingPath initWithCoordinateSpace:] + 96
8 UIKitCore 0x613fc4 -[_UIComplexBoundingPath initWithCoordinateSpace:orientation:scale:boundingPathBitmap:] + 112
9 UIKitCore 0x3f11d0 -[_UIScreenComplexBoundingPathUtilities boundingPathForWindow:] + 2836
10 UIKitCore 0x675ddc -[UIWindow _boundingPath] + 204
11 UIKitCore 0x1b1650 -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 244
12 UIKitCore 0x4bab4c -[UIView(UIViewBoundingPathSupport) _rectTuckedAgainstBoundingPathEdge:withSize:cornerRadii:minimumPadding:] + 260
13 UIKitCore 0x6b74f8 -[_UISheetLayoutInfo _unsafeInsets] + 160
14 UIKitCore 0x71f18 -[_UISheetLayoutInfo _marginsWhenFloating] + 184
15 UIKitCore 0x3aca4c -[_UISheetLayoutInfo _isEdgeAttached] + 52
16 UIKitCore 0x467ffc -[_UISheetLayoutInfo _reversedIndexOfLastUndimmedDetent] + 84
17 UIKitCore 0x2d713c -[_UISheetLayoutInfo _activeDetentValues] + 348
18 UIKitCore 0x24b990 -[_UISheetLayoutInfo _offsetForCurrentActiveDetent] + 48
19 UIKitCore 0x583b5c -[_UISheetLayoutInfo _frameOfPresentedViewInContainerView] + 100
20 UIKitCore 0x3cad98 -[UISheetPresentationController _containerViewLayoutSubviews] + 652
21 UIKitCore 0x2231dc -[UITransitionView layoutSubviews] + 92
22 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
23 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
24 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
25 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
26 QuartzCore 0x504a8 CA::Transaction::commit() + 704
27 QuartzCore 0x323a0 CA::Transaction::flush_as_runloop_observer(bool) + 88
28 UIKitCore 0x53e6e0 _UIApplicationFlushCATransaction + 72
29 UIKitCore 0x7d8d5c _UIUpdateSequenceRun + 84
30 UIKitCore 0xe5fedc schedulerStepScheduledMainSection + 144
31 UIKitCore 0xe5f6a4 runloopSourceCallback + 92
32 CoreFoundation 0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
33 CoreFoundation 0xcc1a0 __CFRunLoopDoSource0 + 208
34 CoreFoundation 0x5694 __CFRunLoopDoSources0 + 268
35 CoreFoundation 0xb05c __CFRunLoopRun + 828
36 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
37 GraphicsServices 0x1374 GSEventRunModal + 164
38 UIKitCore 0x514b58 -[UIApplication _run] + 1100
39 UIKitCore 0x296090 UIApplicationMain + 364
40 App. 0x77f8 main + 8 (main.m:8)
41 ??? 0x105a99da4 (Missing)
my only clue is from "initWithCoordinateSpace:orientation:scale:boundingPathBitmap" If there was a corrupt http image reference could this be causing a crash somewhere?
We are also using Firebase in-app-messaging. Could this be crashing the app on startup?
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
There is a crash in iOS 13.1 and above. The crash occurred on the system library of the child thread. I don't know what happened? I tried to reproduce the crash, but it didn't work. Here is the stack:
#5 Thread
SIGSEGV
SEGV_ACCERR
libobjc.A.dylib objc_release + 16
1 libobjc.A.dylib AutoreleasePoolPage::releaseUntil(objc_object**) + 180
2 libobjc.A.dylib objc_autoreleasePoolPop + 224
3 libdispatch.dylib __dispatch_last_resort_autorelease_pool_pop + 40
4 libdispatch.dylib __dispatch_root_queue_drain + 1036
5 libdispatch.dylib __dispatch_worker_thread2 + 116
6 libsystem_pthread.dylib _pthread_wqthread + 212
#0 Thread
0 libsystem_kernel.dylib 0x00000001ab99f5f4 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001ab99ea60 mach_msg
2 libdispatch.dylib 0x00000001ab86a4e0 __dispatch_mach_send_and_wait_for_reply
3 libdispatch.dylib 0x00000001ab86a89c _dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$armv81
4 libxpc.dylib 0x00000001ab795544 xpc_connection_send_message_with_reply_sync
5 Foundation 0x00000001ac0b29e4 ___NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__
6 Foundation 0x00000001abe8c1d4 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]
7 Foundation 0x00000001abeda65c -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:arg4:]
8 Foundation 0x00000001ac0b95a4 __NSXPCDistantObjectSimpleMessageSend4
9 CoreTelephony 0x00000001b02c4300 -[CoreTelephonyClient(CarrierBundle) copyCarrierBundleValue:key:bundleType:error:]
10 CoreTelephony 0x00000001b02dc7b0 -[CTTelephonyNetworkInfo getCarrierName:forContext:withError:]
11 CoreTelephony 0x00000001b02dcea4 -[CTTelephonyNetworkInfo updateNetworkInfoAndShouldNotifyClient:forContext:]
12 CoreTelephony 0x00000001b02dc3a8 -[CTTelephonyNetworkInfo initWithClient:]
13 CoreTelephony 0x00000001b02dc00c -[CTTelephonyNetworkInfo init]
14 XXXXXX 0x00000001009c8370 -[HYNetService generalParameters] (HYNetService.m:81)
15 XXXXXX 0x0000000100dac39c -[HYNetCenter hy_configRequest:success:failure:] (HYNetCenter.m:57)
16 XXXXXX 0x0000000100dac218 -[HYNetCenter sendRequest:success:failure:] (HYNetCenter.m:0)
17 XXXXXX 0x00000001009c8a28 -[HYNetService sendRequest:completion:] (HYNetService.m:142)
18 XXXXXX 0x000000010098f414 +[HYTimetableAPI queryTimetableReommendDataWithSuccess:failure:] (HYTimetableAPI.m:75)
19 XXXXXX 0x0000000100a47c98 -[HYTimetableManager fetchTimetableRecommendDataWithSuccess:] (HYTimetableManager.m:135)
20 XXXXXX 0x0000000100a4741c -[HYTimetableManager init] (HYTimetableManager.m:43)
21 XXXXXX 0x0000000100a473b4 __34+[HYTimetableManager shareManager]_block_invoke (HYTimetableManager.m:33)
22 libdispatch.dylib 0x00000001ab896184 __dispatch_client_callout
23 libdispatch.dylib 0x00000001ab868f7c __dispatch_once_callout
24 XXXXXX 0x0000000100a4738c +[HYTimetableManager shareManager] (once.h:85)
25 XXXXXX 0x0000000100b876b0 -[HYBookshelfViewController viewWillAppear:] (HYBookshelfViewController.m:200)
26 UIKitCore 0x00000001af5cf20c -[UIViewController _setViewAppearState:isAnimating:]
27 UIKitCore 0x00000001af5cf8a0 -[UIViewController __viewWillAppear:]
28 UIKitCore 0x00000001af53c398 -[UINavigationController _startTransition:fromViewController:toViewController:]
29 UIKitCore 0x00000001af53cfa8 -[UINavigationController _startDeferredTransitionIfNeeded:]
30 UIKitCore 0x00000001af53e2ec -[UINavigationController __viewWillLayoutSubviews]
31 UIKitCore 0x00000001af522060 -[UILayoutContainerView layoutSubviews]
32 UIKitCore 0x00000001b0061270 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
33 QuartzCore 0x00000001b254d5f8 -[CALayer layoutSublayers]
34 QuartzCore 0x00000001b2551e28 CA::Layer::layout_if_needed(CA::Transaction*)
35 QuartzCore 0x00000001b255d894 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
36 QuartzCore 0x00000001b24a69f0 CA::Context::commit_transaction(CA::Transaction*, double)
37 QuartzCore 0x00000001b24d0890 CA::Transaction::commit()
38 QuartzCore 0x00000001b24d1284 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
39 CoreFoundation 0x00000001abb45c48 ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
40 CoreFoundation 0x00000001abb40b34 ___CFRunLoopDoObservers
41 CoreFoundation 0x00000001abb41100 ___CFRunLoopRun
42 CoreFoundation 0x00000001abb408bc CFRunLoopRunSpecific
43 GraphicsServices 0x00000001b59ac328 GSEventRunModal
44 UIKitCore 0x00000001afbd66d4 UIApplicationMain
45 XXXXXX 0x0000000100b5f9e4 main (main.m:14)
46 libdyld.dylib 0x00000001ab9cb460 _start
As above, no information can be seen in the crash stack log, how to further analyze it? Thank you for your help!
I've been stuck on this all day, and struggling to identify the source of a NSRangeException crash.
The app builds fine, but in the process of loading the first scene it throws:
2015-05-01 17:21:48.606 AppName[3707:447852] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
The full stack trace is:
*** First throw call stack:
(
0 CoreFoundation 0x0000000111d22c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000111584bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000111c0c093 -[__NSArrayM objectAtIndex:] + 227
3 UIKit 0x000000010f311881 _UIViewTopDownSubtreeTraversal + 193
4 UIKit 0x000000010f932fa3 -[UIView(UIConstraintBasedLayout_EngineDelegate) _invalidateSystemLayoutSizeFittingSizeAtEngineDelegateLevel] + 141
5 Foundation 0x000000010e931d6f -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 915
6 Foundation 0x000000010eabc1e8 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 275
7 Foundation 0x000000010e92649a -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 220
8 UIKit 0x000000010f92fa34 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 474
9 Foundation 0x000000010e9341be -[NSISEngine withBehaviors:performModifications:] + 155
10 UIKit 0x000000010f92f83a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 452
11 UIKit 0x000000010f92f64d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
12 UIKit 0x000000010f92f933 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 217
13 Foundation 0x000000010e9341be -[NSISEngine withBehaviors:performModifications:] + 155
14 UIKit 0x000000010f92f83a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 452
15 UIKit 0x000000010f92f64d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
16 UIKit 0x000000010f92f2de -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 404
17 UIKit 0x000000010f92426e -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 126
18 UIKit 0x000000010f32f561 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 209
19 UIKit 0x000000010f32f74a -[UIView(Internal) _didMoveFromWindow:toWindow:] + 698
20 UIKit 0x000000010f327ecf __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 125
21 UIKit 0x000000010f327e43 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
22 UIKit 0x000000010f331f48 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1660
23 UIKit 0x000000010f61884c -[UINavigationTransitionView transition:fromView:toView:] + 479
24 UIKit 0x000000010f4161b0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2984
25 UIKit 0x000000010f416448 -[UINavigationController _startDeferredTransitionIfNeeded:] + 523
26 UIKit 0x000000010f416f0e -[UINavigationController __viewWillLayoutSubviews] + 43
27 UIKit 0x000000010f561715 -[UILayoutContainerView layoutSubviews] + 202
28 UIKit 0x000000010f334a2b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 536
29 QuartzCore 0x000000010eff4ec2 -[CALayer layoutSublayers] + 146
30 QuartzCore 0x000000010efe96d6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
31 QuartzCore 0x000000010efe9546 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
32 QuartzCore 0x000000010ef55886 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
33 QuartzCore 0x000000010ef56a3a _ZN2CA11Transaction6commitEv + 462
34 UIKit 0x000000010f2b2a2d -[UIApplication _reportMainSceneUpdateFinished:] + 44
35 UIKit 0x000000010f2b36f1 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2648
36 UIKit 0x000000010f2b20d5 -[UIApplication workspaceDidEndTransaction:] + 179
37 FrontBoardServices 0x00000001158955e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
38 CoreFoundation 0x0000000111c5641c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
39 CoreFoundation 0x0000000111c4c165 __CFRunLoopDoBlocks + 341
40 CoreFoundation 0x0000000111c4b923 __CFRunLoopRun + 851
41 CoreFoundation 0x0000000111c4b366 CFRunLoopRunSpecific + 470
42 UIKit 0x000000010f2b1b42 -[UIApplication _run] + 413
43 UIKit 0x000000010f2b4900 UIApplicationMain + 1282
44 My360 0x000000010dcf26ff main + 111
45 libdyld.dylib 0x00000001127f5145 start + 1
46 ??? 0x0000000000000001 0x0 + 1
)
It's a large app, and I cannot identify which objectAtIndex is causing the issue.
After looking at similar issues, I added an Exception breakpoint:
However the breakpoint just keeps taking me back to the main.m file:
int main(int argc, char * argv[]) {
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
Can anyone point me towards how I can identify the line that is causing this exception?
Thanks!
Edit:
When I click on the My360 icon at the top of the debugging console, it shows this:
My app is crashing for the apple review team but I can't replicate the issue. They sent me the crash log.
Incident Identifier:
CrashReporter Key: d91f018f5afc31f948a80025c7a09bb112a3caf4
Hardware Model: iPhone3,1
Process:
Path:
Identifier:
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-12 09:27:55.479 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3766b88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x35370259 objc_exception_throw + 33
2 CoreFoundation 0x3766ea9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x3766d915 ___forwarding___ + 301
4 CoreFoundation 0x375c8650 _CF_forwarding_prep_0 + 48
5 Sportal_TDF 0x00031515 -[MenuViewController showStageList:] (MenuViewController.m:62)
6 CoreFoundation 0x375ca1fb -[NSObject performSelector:withObject:] + 43
7 Sportal_TDF 0x00005d93 -[DataViewControllerBase retrieveCachedJson:json:cacheAction:] (DataViewControllerBase.m:468)
8 Sportal_TDF 0x00005e57 -[DataViewControllerBase callWebService:json:cacheAction:successAction:] (DataViewControllerBase.m:480)
9 Sportal_TDF 0x000314f9 -[MenuViewController loadUpcomingStage] (MenuViewController.m:57)
10 Sportal_TDF 0x000317b9 -[MenuViewController viewWillAppear:] (MenuViewController.m:142)
11 UIKit 0x31381b95 -[UIViewController _setViewAppearState:isAnimating:] + 145
12 UIKit 0x31525ad1 __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke_0 + 137
13 CoreFoundation 0x3765f631 __NSArrayEnumerate + 365
14 CoreFoundation 0x375c4ed5 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 65
15 UIKit 0x31381c39 -[UIViewController _setViewAppearState:isAnimating:] + 309
16 UIKit 0x31381a49 -[UIViewController viewWillMoveToWindow:] + 233
17 UIKit 0x31342b05 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 529
18 UIKit 0x313424ab -[UIView(Internal) _addSubview:positioned:relativeTo:] + 303
19 UIKit 0x31342377 -[UIView(Hierarchy) addSubview:] + 31
20 UIKit 0x31377555 -[UIWindow addRootViewControllerViewIfPossible] + 289
21 UIKit 0x31369e87 -[UIWindow _setHidden:forced:] + 295
22 UIKit 0x313da7d5 -[UIWindow makeKeyAndVisible] + 25
23 Sportal_TDF 0x000030b3 -[Sportal_TDFAppDelegate application:didFinishLaunchingWithOptions:] (Sportal_TDFAppDelegate.m:107)
24 UIKit 0x31377cab -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1183
25 UIKit 0x313717dd -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 409
26 UIKit 0x3133fac3 -[UIApplication handleEvent:withNewEvent:] + 1011
27 UIKit 0x3133f567 -[UIApplication sendEvent:] + 55
28 UIKit 0x3133ef3b _UIApplicationHandleEvent + 5827
29 GraphicsServices 0x33d8122b PurpleEventCallback + 883
30 CoreFoundation 0x3763f523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
31 CoreFoundation 0x3763f4c5 __CFRunLoopDoSource1 + 141
32 CoreFoundation 0x3763e313 __CFRunLoopRun + 1371
33 CoreFoundation 0x375c14a5 CFRunLoopRunSpecific + 301
34 CoreFoundation 0x375c136d CFRunLoopRunInMode + 105
35 UIKit 0x3137086b -[UIApplication _run] + 551
36 UIKit 0x3136dcd5 UIApplicationMain + 1081
37 0x00002a07 main (main.m:16)
38 0x000029a0 0x1000 + 6560
It is crashing on line
#autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
How can I debug when I can't replicate the issue? Has anyone experienced this issue. My app was working fine in previous versions but this time it is crashing in 5.1.1. Any help would be greatly appreciated.
What does [MenuViewController showStageList:] contain on line 62!?
Obviously you are calling a method, that's non existent: [NSObject doesNotRecognizeSelector:].