i got several crashes in my crashlytics, all crash happened at ios13 and background, my app did request location in background
this is crash logs
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x184da7150 objc_release + 16
1 CoreUI 0x191d3bd40 -[_CUIInternalLinkRendition dealloc] + 40
2 CoreFoundation 0x18509511c cow_cleanup + 168
3 CoreFoundation 0x184f3f438 -[__NSDictionaryM dealloc] + 144
4 libobjc.A.dylib 0x184da86e0 AutoreleasePoolPage::releaseUntil(objc_object**) + 180
5 libobjc.A.dylib 0x184da85d8 objc_autoreleasePoolPop + 224
6 FrontBoardServices 0x18a108100 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
7 FrontBoardServices 0x18a122d84 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke + 184
8 libdispatch.dylib 0x184d32184 _dispatch_client_callout + 16
9 libdispatch.dylib 0x184cdb038 _dispatch_block_invoke_direct$VARIANT$mp + 224
10 FrontBoardServices 0x18a147540 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
11 FrontBoardServices 0x18a14720c -[FBSSerialQueue _queue_performNextIfPossible] + 404
12 FrontBoardServices 0x18a147734 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
13 CoreFoundation 0x184fe27e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation 0x184fe2738 __CFRunLoopDoSource0 + 80
15 CoreFoundation 0x184fe1ed0 __CFRunLoopDoSources0 + 180
16 CoreFoundation 0x184fdd01c __CFRunLoopRun + 1080
17 CoreFoundation 0x184fdc8bc CFRunLoopRunSpecific + 464
18 GraphicsServices 0x18ee48328 GSEventRunModal + 104
19 UIKitCore 0x1890726d4 UIApplicationMain + 1936
20 FoodyNowPartners 0x100c6b564 main + 20 (PushManager.swift:20)
21 libdyld.dylib 0x184e67460 start + 4
Related
I was rejected to review the app, but there is no problem when I tested it with a practical device.
So I don't know where the problem occurs.
Crash Log:
Last Exception Backtrace:
0 CoreFoundation 0x1c6349e48 \__exceptionPreprocess + 164
1 libobjc.A.dylib 0x1bf6938d8 objc_exception_throw + 60
2 UIKitCore 0x1c8924838 -\[UIStoryboard initWithBundle:storyboardFileName:identifierToN
3 UIKitCore 0x1c8924394 -\[UISceneConfiguration initWithName:sessionRole:\] + 1572
4 UIKitCore 0x1c898167c +\[UISceneConfiguration configurationWithName:sessionRole:\] + 64
5 UIKitCore 0x1c898f5c8 -\[UISceneSession \_initWithPersistentIdentifier:sessionRole:configurationName:\] + 168
6 UIKitCore 0x1c8723230 -\[UIApplication \_connectUISceneFromFBSScene:transitionContext:\] + 408
7 UIKitCore 0x1c8722ee8 -\[UIApplication workspace:didCreateScene:withTransitionContext:completion:\] + 372
8 UIKitCore 0x1c8722d08 -\[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:\] + 288
9 FrontBoardServices 0x1dc064e90 -\[FBSScene \_callOutQueue_agent_didCreateWithTransitionContext:completion:\] + 344
10 FrontBoardServices 0x1dc0a48f8 \__92-\[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:\]\_block_invoke.78 + 120
11 FrontBoardServices 0x1dc068c24 -\[FBSWorkspace \_calloutQueue_executeCalloutFromSource:withBlock:\] + 168
12 FrontBoardServices 0x1dc0a4530 \__92-\[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:\]\_block_invoke + 360
13 libdispatch.dylib 0x1cd958fdc \_dispatch_client_callout + 20
14 libdispatch.dylib 0x1cd95ca5c \_dispatch_block_invoke_direct + 264
15 FrontBoardServices 0x1dc072d40 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
16 FrontBoardServices 0x1dc0728dc -\[FBSSerialQueue targetQueue_performNextIfPossible\] + 220
17 FrontBoardServices 0x1dc075184 -\[FBSSerialQueue performNextFromRunLoopSource\] + 28
18 CoreFoundation 0x1c6415f34 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
19 CoreFoundation 0x1c642230c \__CFRunLoopDoSource0 + 176
20 CoreFoundation 0x1c63a6230 \__CFRunLoopDoSources0 + 340
21 CoreFoundation 0x1c63bbb8c \__CFRunLoopRun + 836
22 oreFoundation 0x1c63c0ec0 CFRunLoopRunSpecific + 612
23 GraphicsServices 0x1ffb6b368 GSEventRunModal + 164
24 UIKitCore 0x1c88b686c -\[UIApplication run\] + 888
25 UIKitCore 0x1c88b64d0 UIApplicationMain + 340
26 libswiftUIKit.dylib 0x1ceeda308 UIApplicationMain(_::::) + 104
27 MyApp 0x102b7ee8c static UIApplicationDelegate.main() + 104
28 MyApp 0x102b82880 main + 28
30 dyld 0x1e4bd2960 start + 2528
I looked for a place where Nil could float in init, but there was no place.
Thank you for your reading
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)
EDIT:
Xcode 10 beta 6 fix the problem
I'm updating my app for ios 12 with the new xcode 10, but the Fabric framework makes the app crash at start.
I only run the code and the app crash on the launch screen.
In my AppDelegate:
#import <Fabric/Fabric.h>
#import <Answers/Answers.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Fabric with:#[[Answers class]]];
return YES;
}
And this is the log that appear:
+[NSRecursiveLock dictionary]: unrecognized selector sent to class 0x233a30580
(lldb)
I also added this writing as mentioned in the guide:
And this is in the AppDelegate.m
And this is the crash log
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0
Crashed: 0 libsystem_kernel.dylib 0x00000001fa545104
pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001fa5c4a00 pthread_kill$VARIANT$armv81 + 296 2
libsystem_c.dylib 0x00000001fa49cd78 abort + 140 3
libc++abi.dylib 0x00000001f9b64f78 __cxa_bad_cast + 0 4
libc++abi.dylib 0x00000001f9b65120
default_unexpected_handler+ 8480 () + 0 5 libobjc.A.dylib
0x00000001f9b7de48 _objc_terminate+ 28232 () + 124 6
libc++abi.dylib 0x00000001f9b710fc
std::__terminate(void (*)+ 57596 ()) + 16 7 libc++abi.dylib
0x00000001f9b71188 std::terminate+ 57736 () + 84 8
libdispatch.dylib 0x00000001fa3e8498
_dispatch_client_callout + 36 9 libdispatch.dylib 0x00000001fa3b8260 _dispatch_once_callout + 28 10 Reflex
0x0000000100b5280c +[Fabric sharedSDK] + 112 11 Reflex
0x0000000100b52984 __15+[Fabric with:]_block_invoke + 76 12
libdispatch.dylib 0x00000001fa3e8484
_dispatch_client_callout + 16 13 libdispatch.dylib 0x00000001fa3b8260 _dispatch_once_callout + 28 14 Reflex
0x0000000100b52934 +[Fabric with:] + 224 15 Reflex
0x00000001009f3600 -[AppDelegate
application:didFinishLaunchingWithOptions:] + 1439232
(AppDelegate.m:64) 16 UIKitCore
0x0000000226f51564 -[UIApplication
_handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 412 17 UIKitCore 0x0000000226f52ccc -[UIApplication
_callInitializationDelegatesForMainScene:transitionContext:] + 3340 18 UIKitCore 0x0000000226f58718 -[UIApplication
_runWithMainScene:transitionContext:completion:] + 1552 19 UIKitCore 0x000000022777f6dc __111-[__UICanvasLifecycleMonitor_Compatability
_scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke
+ 784 20 UIKitCore 0x000000022777bc88 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 21 UIKitCore 0x000000022777f358
-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240 22 UIKitCore 0x000000022777fcf8
-[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1076 23 UIKitCore
0x000000022773ef20 __82-[_UIApplicationCanvas
_transitionLifecycleStateWithTransitionContext:completion:]_block_invoke
+ 772 24 UIKitCore 0x000000022773ebcc -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 25 UIKitCore 0x0000000227782168
__125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke
+ 220 26 UIKitCore 0x0000000227782c58 _performActionsWithDelayForTransitionContext + 112 27 UIKitCore 0x0000000227782020 -[_UICanvasLifecycleSettingsDiffAction
performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]
+ 248 28 UIKitCore 0x000000022777b334 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 29 UIKitCore 0x0000000226f56c10
-[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540 30
UIKitCore 0x0000000226f883c8
-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 31 FrontBoardServices
0x00000001fd3db890 -[FBSSceneImpl
_didCreateWithTransitionContext:completion:] + 444 32 FrontBoardServices 0x00000001fd3e6658 __56-[FBSWorkspace
client:handleCreateScene:withCompletion:]_block_invoke_2 + 260 33
FrontBoardServices 0x00000001fd3e5d50 __40-[FBSWorkspace
_performDelegateCallOut:]_block_invoke + 64 34 libdispatch.dylib 0x00000001fa3e8484 _dispatch_client_callout + 16 35
libdispatch.dylib 0x00000001fa3bf3f0
_dispatch_block_invoke_direct$VARIANT$armv81 + 216 36 FrontBoardServices 0x00000001fd41a640
__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 40 37 FrontBoardServices 0x00000001fd41a2cc -[FBSSerialQueue
_performNext] + 416 38 FrontBoardServices 0x00000001fd41a8e8 -[FBSSerialQueue _performNextFromRunLoopSource] +
56 39 CoreFoundation 0x00000001fa93e5b8
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 40 CoreFoundation 0x00000001fa93e538 __CFRunLoopDoSource0
+ 88 41 CoreFoundation 0x00000001fa93de1c __CFRunLoopDoSources0 + 176 42 CoreFoundation 0x00000001fa938ce8 __CFRunLoopRun + 1040 43 CoreFoundation
0x00000001fa9385b8 CFRunLoopRunSpecific + 436 44 GraphicsServices
0x00000001fcba8584 GSEventRunModal + 100 45 UIKitCore
0x0000000226f5a4c4 UIApplicationMain + 212 46 Reflex
0x0000000100a663d0 main + 1909712 (main.m:14) 47 libdyld.dylib
0x00000001fa3f8c0c start + 4
Can anyone help me?
Thanks in advance
There is a bug with Fabric and Xcode 10 beta 5 that prevents build on real device but you can build on simulator, Upgrade to Xcode 10 beta 6 and this bug should be fixed
After I released a new version of my app using XCode8, this crash was reported in Fabric:
#0. Crashed: com.apple.main-thread
0 libdispatch.dylib 0x187c89834 dispatch_source_cancel + 4
1 Appname 0x1003d866c -[FIRAAlarm cancel] + 4298868332
2 Appname 0x1003d8318 -[FIRAAlarm runAfterDelay:withBlock:] + 4298867480
3 Appname 0x1003fc054 -[FIRASessionReporter rescheduleSessionStartTimer] + 4299014228
4 CoreFoundation 0x188d9622c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
5 CoreFoundation 0x188d95930 _CFXRegistrationPost + 400
6 CoreFoundation 0x188d956ac ___CFXNotificationPost_block_invoke + 60
7 CoreFoundation 0x188e04b9c -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1504
8 CoreFoundation 0x188cd7bf4 _CFXNotificationPost + 376
9 Foundation 0x1897de6bc -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
10 UIKit 0x18ecca284 <redacted> + 1212
11 UIKit 0x18eecdd20 <redacted> + 2744
12 UIKit 0x18eee2080 <redacted> + 48
13 UIKit 0x18eeca8c4 <redacted> + 168
14 FrontBoardServices 0x18a99d8bc <redacted> + 36
15 FrontBoardServices 0x18a99d728 <redacted> + 176
16 FrontBoardServices 0x18a99dad0 <redacted> + 56
17 CoreFoundation 0x188daa278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
18 CoreFoundation 0x188da9bc0 __CFRunLoopDoSources0 + 524
19 CoreFoundation 0x188da77c0 __CFRunLoopRun + 804
20 CoreFoundation 0x188cd6048 CFRunLoopRunSpecific + 444
21 UIKit 0x18ecb05dc <redacted> + 608
22 UIKit 0x18ecab360 UIApplicationMain + 208
23 Appname 0x1000f6724 main (main.m:15)
24 libdispatch.dylib 0x187cb85b8 (Missing)
The crash detail doesn't show any specific file, just this information:
Appname
#CrashNumber-[FIRAAlarm cancel]
Any ideas what this “FIRAAlarm” is?
This is a known Firebase issue and will be fixed in their next release:
https://groups.google.com/forum/#!topic/firebase-talk/W-gPv4tmXpw
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)