Norway


I had an app in the App Store with lots of crashes, but I can’t reproduce it myself.
I have lots of logs but they don’t contain a making it difficult to diagnose the issue.

Why is there no backtrace? Are there certain situations when a backtrace isn’t present that might help give some more clue to the reason for the crash?

The crash logs show CFNOTIFICATIONCENTER_IS__OUT_TO_AN_OBSERVER which possibly could be caused by a notification being sent to a deallocated observer according to other questions on SO.
However the app only runs on 10+, and according to Apple its not necessary to de-register observers from 9 onwards unless they are block observers. Which my app doesn’t use so that can’t be the cause as far as my own apps notifications are concerned.

  Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note:  EXC_CORPSE_NOTIFY
    Triggered by Thread:  0

    Thread 0 name:
    Thread 0 Crashed:
    0   libsystem_kernel.dylib          0x000000018ec4d014 __pthread_kill + 8
    1   libsystem_pthread.dylib         0x000000018ed1724 pthread_kill + 112 (pthread.c:136)
    2   libsystem_c.dylib               0x000000018ebc19c4 abort + 140 (abort.c:91)
    3   libswiftCore.dylib              0x0000000100ad976c 0x1007ec000 + 309804
    4   libswiftCore.dylib              0x0000000100b014c 0x1007ec000 + 325255
    5   CoreFoundation                  0x000000018fc56f54 ___forwarding___ + 91 (NSForwarding.m:312)
       CoreFoundation                  0x000000018fb54c _CF_forwarding_prep_0 + 92
    7   CoreFoundation                  0x000000018fbed5f4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 (CFNotificationCenter.c:650)
    8   CoreFoundation                  0x000000018fbecd08 _CFXRegistrationPost + 400 (CFNotificationCenter.c:164)
    9   CoreFoundation                  0x000000018fbeca84 ___CFXNotificationPost_block_invoke + 60 (CFNotificationCenter.c:1031)
    10  CoreFoundation                  0x000000018fc5b7a8 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1412 (CFXNotificationRegistrar.m:163)
    11  CoreFoundation                  0x000000018fb3095c _CFXNotificationPost + 376 (CFNotificationCenter.c:1028)
    12  Foundation                      0x0000000190642930 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 (NSNotification.m:482)
    13  UIKit                           0x0000000195e07ea8 -[UIApplication _stopDeactivatingForReason:] + 1124 (UIApplication.m:1534)
    14  UIKit                           0x0000000196005b4c __62-[UIApplication _sceneSettingsPostLifecycleEventDiffInspector]_block_invoke.1259 + 124 (UIApplication.m:3247)
    15  FrontBoardServices              0x00000001917e4be8 __52-[FBSSettingsDiffInspector inspectDiff:withContext:]_block_invoke.27 + 204 (FBSSettingsDiffInspector.m:46)
    16  Foundation                      0x00000001906fc7fc __NSIndexSetEnumerate + 724 (NSIndexSet.m:1347)
    17  BaseBoard                       0x0000000191757510 -[BSSettingsDiff inspectChangesWithBlock:] + 104 (BSSettingsDiff.m:187)
    18  FrontBoardServices              0x00000001917dece4 -[FBSSettingsDiff inspectOtherChangesWithBlock:] + 88 (FBSSettingsDiff.m:65)
    19  FrontBoardServices              0x00000001917e49bc -[FBSSettingsDiffInspector inspectDiff:withContext:] + 280 (FBSSettingsDiffInspector.m:44)
    20  UIKit                           0x00000001960064d4 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 196 (UIApplication.m:3346)
    21  UIKit                           0x0000000196006124 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 892 (UIApplication.m:3357)
      UIKit                           0x00000001963407c8 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464 (UIApplicationSceneClientAgent.m:74)
    23  FrontBoardServices              0x00000001917ce22c __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376 + 208 (FBSSceneImpl.m:598)
    24  FrontBoardServices              0x00000001917fb884 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:158)
    25  FrontBoardServices              0x00000001917fb6f0 -[FBSSerialQueue _performNext] + 176 (FBSSerialQueue.m:177)
    26  FrontBoardServices              0x00000001917fbaa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:206)
    27  CoreFoundation                  0x000000018fc0142c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1943)
    28  CoreFoundation                  0x000000018fc00d9c __CFRunLoopDoSources0 + 540 (CFRunLoop.c:1989)
    29  CoreFoundation                  0x000000018fbfe9a8 __CFRunLoopRun + 744 (CFRunLoop.c:2821)
    30  CoreFoundation                  0x000000018fb2eda4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
    31  GraphicsServices                0x0000000191598074 GSEventRunModal + 100 (GSEvent.c:45)
    32  UIKit                           0x0000000195de9058 UIApplicationMain + 208 (UIApplication.m:4089)
    33  My App                          0x00000001000be2e4 main + 56 (MyFile.swift:17)
    34  libdyld.dylib                   0x000000018eb3d59c start + 4

FYI Line 17 of MyFile.swift is just this:

@objc class RealmDatabase : NSObject
{
    var configuration:Realm.Configuration?  = nil // Line 17

Thats just a declaration of an optional, so I don’t see how that could cause any problems.

Are there any other clues as to what the problem could be?



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here