I got a few of these crashes (from Crashlytics), which I can't understand.
Anyone can understand what it is about?
I can see it happens after applicationDidEnterBackground. Does it mean it crashes after the app went into the background?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x181b9db90 objc_msgSend + 16
1 CoreFoundation 0x1825314a4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1548
2 CoreFoundation 0x182406788 _CFXNotificationPost + 368
3 Foundation 0x182e0e89c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
4 UIKit 0x18791f124 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 320
5 UIKit 0x1879ef5e4 +[UIViewController _performWithoutDeferringTransitions:] + 128
6 UIKit 0x18791ef90 -[UIApplication _applicationDidEnterBackground] + 100
7 UIKit 0x18791f514 -[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:] + 700
8 UIKit 0x18792f990 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 448
9 UIKit 0x18791961c __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 152
10 UIKit 0x1879192a4 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 712
11 FrontBoardServices 0x183ec77ac __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
12 FrontBoardServices 0x183ec7618 -[FBSSerialQueue _performNext] + 168
13 FrontBoardServices 0x183ec79c8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
14 CoreFoundation 0x1824dd124 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
15 CoreFoundation 0x1824dcbb8 __CFRunLoopDoSources0 + 540
16 CoreFoundation 0x1824da8b8 __CFRunLoopRun + 724
17 CoreFoundation 0x182404d10 CFRunLoopRunSpecific + 384
18 GraphicsServices 0x183cec088 GSEventRunModal + 180
19 UIKit 0x1876d9f70 UIApplicationMain + 204
20 Trenì€t! 0x1000f32e4 main (AppDelegate.swift:14)
21 libdispatch.dylib 0x181fa28b8 (Missing)
Related
Since iOS 16 update and my iOS application crash reports are going crazy. The stack trace on crashlytics starts at main.swift my application entry point to be specific at the function name UIApplicationMain()
// main.swift
import Foundation
import UIKit
/// NOTE: comment out #UIApplicationMain in AppDelegate
UIApplicationMain(
CommandLine.argc,
CommandLine.unsafeArgv,
NSStringFromClass(TimerApplication.self),
NSStringFromClass(AppDelegate.self)
)
Then the stack trace goes like this
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x736544697263248c
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1c20 objc_msgSend + 32
1 CoreFoundation 0x2a3cc cow_cleanup + 168
2 CoreFoundation 0x6444c -[__NSDictionaryM dealloc] + 148
3 libobjc.A.dylib 0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
4 libobjc.A.dylib 0x4f40 objc_autoreleasePoolPop + 256
5 FrontBoardServices 0x6aec -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 176
6 FrontBoardServices 0x6a00 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 340
7 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
8 libdispatch.dylib 0x7a5c _dispatch_block_invoke_direct + 264
9 FrontBoardServices 0x10f2c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
10 FrontBoardServices 0x10ac8 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
11 FrontBoardServices 0x132a8 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
12 CoreFoundation 0xd622c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
13 CoreFoundation 0xe2614 __CFRunLoopDoSource0 + 176
14 CoreFoundation 0x6651c __CFRunLoopDoSources0 + 244
15 CoreFoundation 0x7beb8 __CFRunLoopRun + 836
16 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
17 GraphicsServices 0x1368 GSEventRunModal + 164
18 UIKitCore 0x3a2d88 -[UIApplication _run] + 888
19 UIKitCore 0x3a29ec UIApplicationMain + 340
20 MobileApp 0x13fb578 main + 12 (main.swift:12)
21 ??? 0x1c56a9948 (Missing)
I'm very new to the App Store Validation process, and I'm getting a crashes in their testing that do not happen in Simulators or real device testing. This seems to be common story.
Here's the relevant part of the latest crash log from Apple:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 WordsBy2 0x0000000102f757b0 0x102f68000 + 55216
1 WordsBy2 0x0000000102f75698 0x102f68000 + 54936
2 WordsBy2 0x0000000102f79cbc 0x102f68000 + 72892
3 WordsBy2 0x0000000102f753fc 0x102f68000 + 54268
4 UIKitCore 0x0000000182eeb35c -[UIClassSwapper initWithCoder:] + 2196
5 UIFoundation 0x0000000189618edc UINibDecoderDecodeObjectForValue + 696
6 UIFoundation 0x00000001895a5854 -[UINibDecoder decodeObjectForKey:] + 308
7 UIKitCore 0x0000000182eef544 -[UIRuntimeConnection initWithCoder:] + 128
8 UIFoundation 0x0000000189618edc UINibDecoderDecodeObjectForValue + 696
9 UIFoundation 0x00000001896190f4 UINibDecoderDecodeObjectForValue + 1232
10 UIFoundation 0x00000001895a5854 -[UINibDecoder decodeObjectForKey:] + 308
11 UIKitCore 0x0000000182eea4fc -[NSCoder+ 7791868 (UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 488
12 UIKitCore 0x0000000182eeced4 -[UINib instantiateWithOwner:options:] + 1064
13 UIKitCore 0x000000018341c948 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 280
14 UIKitCore 0x000000018341c7e4 -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 124
15 UIKitCore 0x000000018350c704 -[UIWindowScene _loadWindowWithStoryboardIfNeeded:] + 96
16 UIKitCore 0x000000018350c670 -[UIWindowScene _readySceneForConnection] + 148
17 UIKitCore 0x00000001827c69d0 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1012
18 UIKitCore 0x00000001832abca0 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1032
19 UIKitCore 0x00000001832ac044 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 328
20 UIKitCore 0x0000000182debab8 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
21 FrontBoardServices 0x000000018fd69704 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 404
22 FrontBoardServices 0x000000018fd91130 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 100
23 FrontBoardServices 0x000000018fd76e60 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
24 FrontBoardServices 0x000000018fd90e44 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 312
25 libdispatch.dylib 0x0000000180678280 _dispatch_client_callout + 16
26 libdispatch.dylib 0x000000018061d930 _dispatch_block_invoke_direct$VARIANT$mp + 224
27 FrontBoardServices 0x000000018fdb5e60 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
28 FrontBoardServices 0x000000018fdb5b28 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 404
29 FrontBoardServices 0x000000018fdb5ffc -[FBSSerialQueue _performNextFromRunLoopSource] + 28
30 CoreFoundation 0x00000001809bfbf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
31 CoreFoundation 0x00000001809bfaf0 __CFRunLoopDoSource0 + 204
32 CoreFoundation 0x00000001809bee38 __CFRunLoopDoSources0 + 256
33 CoreFoundation 0x00000001809b93e0 __CFRunLoopRun + 776
34 CoreFoundation 0x00000001809b8ba0 CFRunLoopRunSpecific + 572
35 GraphicsServices 0x0000000197721598 GSEventRunModal + 160
36 UIKitCore 0x00000001832aa2f4 -[UIApplication _run] + 1052
37 UIKitCore 0x00000001832af874 UIApplicationMain + 164
38 libswiftUIKit.dylib 0x0000000194139b54 UIApplicationMain+ 80724 (_:_:_:_:) + 100
39 WordsBy2 0x0000000102f6c9ec 0x102f68000 + 18924
40 libdyld.dylib 0x0000000180697568 start + 4
This a fairly simple question, but I want to be sure... the last line corresponds to the start() method in my initialization process, and I presume the the + 4 is the fourth line of code in that code block? And I also presume that that includes commented lines in my original code?
If so, and that line sets a property of an optional instantiated class, then I assume a crash at this line would indicate that there was a problem with that object, but that the object would not appear in the crash log, since it wasn't one of its methods that was called. Correct?
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Application windows are expected to have a root view controller at the end of application launch
Native stack trace:
0 CoreFoundation 0x0000000104e4d1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x0000000112c18031 objc_exception_throw + 48
2 CoreFoundation 0x0000000104e52472 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000105a7d652 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x0000000109bd4b96 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3064
5 UIKit 0x0000000109f96e4a __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
6 UIKit 0x000000010a369909 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
7 UIKit 0x0000000109f96a86 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
8 UIKit 0x0000000109f972a7 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
9 UIKit 0x000000010a9084d4 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299
10 UIKit 0x000000010a90836e -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
11 UIKit 0x000000010a5ec62d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
12 UIKit 0x000000010a7e7387 _performActionsWithDelayForTransitionContext + 100
13 UIKit 0x000000010a5ec4f7 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
14 UIKit 0x000000010a368fb0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
15 UIKit 0x0000000109bd2f0c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
16 UIKit 0x000000010a1a5a97 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
17 FrontBoardServices 0x0000000117f362f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
18 FrontBoardServices 0x0000000117f3ecfa __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225
19 libdispatch.dylib 0x000000011356f779 _dispatch_client_callout + 8
20 libdispatch.dylib 0x0000000113574931 _dispatch_block_invoke_direct + 317
21 FrontBoardServices 0x0000000117f6a470 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
22 FrontBoardServices 0x0000000117f6a12e -[FBSSerialQueue _performNext] + 439
23 FrontBoardServices 0x0000000117f6a68e -[FBSSerialQueue _performNextFromRunLoopSource] + 45
24 CoreFoundation 0x0000000104defbb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25 CoreFoundation 0x0000000104dd44af __CFRunLoopDoSources0 + 271
26 CoreFoundation 0x0000000104dd3a6f __CFRunLoopRun + 1263
27 CoreFoundation 0x0000000104dd330b CFRunLoopRunSpecific + 635
28 GraphicsServices 0x00000001165faa73 GSEventRunModal + 62
29 UIKit 0x0000000109bd60b7 UIApplicationMain + 159
30 ??? 0x0000000133339607 0x0 + 5153986055
31 ??? 0x0000000133339373 0x0 + 5153985395
If you are having this error when using Xamarin Forms you should probably check if your initial page is properly constructed. This happens when XF fails to create your initial page and just continues running.
This crash has been asked on stackoverflow before here iphone app crash bad access exception DataDetectorsCore processToken, but no one gave an answer. Can someone please help me out here. Any tips or suggestions are appreciated. Here is my raw data given from crashlytic.
Thread : com.crashlytics.analytics.high-priority
0 libsystem_kernel.dylib 0x3927fad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x391ccde5 _dispatch_semaphore_wait_slow + 176
2 UIKit 0x30d0bba3 _addBackgroundTask + 558
3 UIKit 0x30d151a7 -[UIApplication beginBackgroundTaskWithExpirationHandler:] + 14
4 MyApp 0x0014652b -[CLSAnalyticsController maintainSessionFragments:]
5 MyApp 0x001463b3 -[CLSAnalyticsController maintainSessionFragmentsIgnoringError]
6 MyApp 0x00143ceb -[CLSAnalyticsController handlePriorityTriggeredMaintainSessionFragmentForEvent:]
7 MyApp 0x00143fc3 __35-[CLSAnalyticsController logEvent:]_block_invoke
8 libdispatch.dylib 0x391c70af _dispatch_client_callout + 22
9 libdispatch.dylib 0x391cb8f3 _dispatch_barrier_sync_f_invoke + 26
10 MyApp 0x00143b89 -[CLSAnalyticsController dispatchToQueue:asynchronous:block:]
11 MyApp 0x00143f07 -[CLSAnalyticsController logEvent:]
12 MyApp 0x00143c5b -[CLSAnalyticsController applicationLifecycleEvent:]
13 CoreFoundation 0x2e4fde71 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14 CoreFoundation 0x2e471ab1 _CFXNotificationPost + 1720
15 Foundation 0x2ee57ec5 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
16 UIKit 0x30d25fd5 -[UIApplication _deactivateForReason:notify:] + 460
17 UIKit 0x30cc5b4b -[UIApplication handleEvent:withNewEvent:] + 3466
18 UIKit 0x30cc4cfd -[UIApplication sendEvent:] + 72
19 UIKit 0x30d2a321 _UIApplicationHandleEvent + 664
20 GraphicsServices 0x3317e76d _PurpleEventCallback + 608
21 CoreFoundation 0x2e506f1f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
22 CoreFoundation 0x2e5063e7 __CFRunLoopDoSources0 + 206
23 CoreFoundation 0x2e504bd7 __CFRunLoopRun + 630
24 CoreFoundation 0x2e46f471 CFRunLoopRunSpecific + 524
25 CoreFoundation 0x2e46f253 CFRunLoopRunInMode + 106
26 GraphicsServices 0x3317d2eb GSEventRunModal + 138
27 UIKit 0x30d24845 UIApplicationMain + 1136
28 MyApp 0x000617e7 main (main.m:16)
I`m using cocos2d-x and UIKit and I have such crash.Doest anyone has any ideas? I would be very happy to listen to anything.
0 libobjc.A.dylib 0x3b0985cc objc_msgSend + 44
1 CoreFoundation 0x33411f60 __CFBasicHashRehash + 1612
2 CoreFoundation 0x3333bfe8 CFBasicHashRemoveValue + 2764
3 CoreFoundation 0x3333fe40 CFRunLoopRemoveTimer + 152
4 CoreFoundation 0x3333fd16 CFRunLoopTimerInvalidate + 346
5 UIKit 0x353162fc -[UIDelayedAction unschedule] + 32
6 UIKit 0x3531bca8 -[UIScrollViewDelayedTouchesBeganGestureRecognizer clearTimer] + 32
7 UIKit 0x3531bb62 -[UIScrollViewDelayedTouchesBeganGestureRecognizer touchesBegan:withEvent:] + 30
8 UIKit 0x3521307e -[UIWindow _sendGesturesForEvent:] + 406
9 UIKit 0x35212dae -[UIWindow sendEvent:] + 86
10 UIKit 0x352007fc -[UIApplication sendEvent:] + 376
11 UIKit 0x35200116 _UIApplicationHandleEvent + 6150
12 GraphicsServices 0x36f035a0 _PurpleEventCallback + 588
13 CoreFoundation 0x333cd680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
14 CoreFoundation 0x333ccee4 __CFRunLoopDoSources0 + 208
15 CoreFoundation 0x333cbcb2 __CFRunLoopRun + 642
16 CoreFoundation 0x3333eeb8 CFRunLoopRunSpecific + 352
17 CoreFoundation 0x3333ed44 CFRunLoopRunInMode + 100
18 GraphicsServices 0x36f022e6 GSEventRunModal + 70
19 UIKit 0x352542fc UIApplicationMain + 1116