iOS Crash related to UIFeedbackGeneratorConfiguration - ios

In my iOS app release recently on Apple Store, I am seeing a crash related to something called UIFeedbackGeneratorConfiguration which I dont know what exactly is.
Below is screenshot from Xcode organizer.
When opened in Xcode using Open in Project... option, it opens like
The crash log when symbolicated is
Incident Identifier: 29848030-AD96-4039-8EFA-1B0F1C35718A
Hardware Model: iPhone8,1
Process: MyApp [53021]
Path: /private/var/containers/Bundle/Application/D7C39FA7-6102-4415-9970-13B525FAD1D4/MyApp.app/MyApp
Identifier: com.MyApp
Version: 4.0.0 (4.0.0.8)
AppStoreTools: 13A1030d
AppVariant: 1:iPhone8,1:13
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyApp [9019]
Date/Time: 2022-01-14 14:24:10.8109 +0000
Launch Time: 2022-01-13 09:55:28.3790 +0000
OS Version: iPhone OS 15.1 (19B74)
Release Type: User
Baseband Version: 9.01.00
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000ce32ac21c
Exception Codes: 0x0000000000000001, 0x0000000ce32ac21c
VM Region Info: 0xce32ac21c is not in any region. Bytes after previous region: 44076548637 Bytes before following region: 12294897124
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 280000000-2a0000000 [512.0M] rw-/rwx SM=PRV
---> GAP OF 0xd20000000 BYTES
commpage (reserved) fc0000000-1000000000 [ 1.0G] ---/--- SM=NUL ...(unallocated)
Exception Note: EXC_CORPSE_NOTIFY
Terminating Process: exc handler [53021]
Triggered by Thread: 0
Kernel Triage:
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000197f48474 class_isMetaClass + 4 (objc-runtime-new.h:485)
1 Foundation 0x000000018249d1c0 -[NSNotificationCenter addObserver:selector:name:object:] + 268 (NSNotification.m:490)
2 UIKitCore 0x0000000183499438 -[_UIFeedbackGeneratorConfiguration _setupIfNecessary] + 336 (_UIFeedbackGeneratorConfiguration.m:255)
3 UIKitCore 0x000000018363ff64 -[UIFeedbackGenerator _setupForFeedback:] + 44 (UIFeedbackGenerator.m:299)
4 UIKitCore 0x00000001833f73d4 -[UIFeedbackGenerator activateWithCompletionBlock:] + 56 (UIFeedbackGenerator.m:308)
5 UIKitCore 0x00000001836fab14 +[UIKeyboardImpl applicationWillEnterForeground:] + 64 (UIKeyboardImpl.m:859)
6 CoreFoundation 0x0000000180d38c4c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 (CFNotificationCenter.c:652)
7 CoreFoundation 0x0000000180dcd554 ___CFXRegistrationPost_block_invoke + 48 (CFNotificationCenter.c:173)
8 CoreFoundation 0x0000000180da2b34 _CFXRegistrationPost + 416 (CFNotificationCenter.c:199)
9 CoreFoundation 0x0000000180d4d754 _CFXNotificationPost + 696 (CFNotificationCenter.c:1147)
10 Foundation 0x0000000182468138 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92 (NSNotification.m:560)
11 UIKitCore 0x00000001835a8b78 -[UIApplication _sendWillEnterForegroundCallbacks] + 280 (UIApplication.m:11081)
12 UIKitCore 0x0000000183256ae8 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2 + 1572 (_UISceneLifecycleMultiplexer.m:648)
13 UIKitCore 0x000000018321202c _UIScenePerformActionsWithLifecycleActionMask + 96 (_UISceneLifecycleState.m:109)
14 UIKitCore 0x0000000183335b24 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 196 (_UISceneLifecycleMultiplexer.m:565)
15 UIKitCore 0x000000018344bde4 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 240 (_UISceneLifecycleMultiplexer.m:514)
16 UIKitCore 0x0000000183677554 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 732 (_UISceneLifecycleMultiplexer.m:564)
17 UIKitCore 0x0000000183607448 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 336 (_UISceneLifecycleMultiplexer.m:470)
18 UIKitCore 0x0000000183212f14 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 188 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
19 UIKitCore 0x00000001832cee14 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 812 (BSAnimationSettings+UIKit.m:50)
20 UIKitCore 0x0000000183214ca4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 248 (_UISceneSettingsDiffAction.m:23)
21 UIKitCore 0x00000001832fa094 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 356 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:58)
22 UIKitCore 0x000000018326ecb0 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.571 + 772 (UIScene.m:1807)
23 UIKitCore 0x0000000183242ff0 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248 (UIScene.m:1508)
24 UIKitCore 0x0000000183285244 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 264 (UIScene.m:1774)
25 UIKitCore 0x0000000183210f18 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464 (UIApplicationSceneClientAgent.m:80)
26 FrontBoardServices 0x000000019180ddac -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 500 (FBSScene.m:549)
27 FrontBoardServices 0x0000000191825544 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 124 (FBSWorkspaceScenesClient.m:581)
28 FrontBoardServices 0x000000019180b704 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232 (FBSWorkspace.m:352)
29 FrontBoardServices 0x00000001918114f0 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 368 (FBSWorkspaceScenesClient.m:580)
30 libdispatch.dylib 0x0000000180a6e198 _dispatch_client_callout + 16 (object.m:560)
31 libdispatch.dylib 0x0000000180a10ac0 _dispatch_block_invoke_direct$VARIANT$mp + 220 (queue.c:489)
32 FrontBoardServices 0x000000019180cd6c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40 (FBSSerialQueue.m:157)
33 FrontBoardServices 0x000000019180c2f0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 176 (FBSSerialQueue.m:181)
34 FrontBoardServices 0x00000001918103e0 -[FBSSerialQueue _performNextFromRunLoopSource] + 24 (FBSSerialQueue.m:194)
35 CoreFoundation 0x0000000180dc2210 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1972)
36 CoreFoundation 0x0000000180dd2238 __CFRunLoopDoSource0 + 204 (CFRunLoop.c:2016)
37 CoreFoundation 0x0000000180d155d8 __CFRunLoopDoSources0 + 256 (CFRunLoop.c:2053)
38 CoreFoundation 0x0000000180d1aa08 __CFRunLoopRun + 768 (CFRunLoop.c:2951)
39 CoreFoundation 0x0000000180d2dd7c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
40 GraphicsServices 0x000000019afa29a0 GSEventRunModal + 160 (GSEvent.c:2200)
41 UIKitCore 0x000000018356005c -[UIApplication _run] + 1080 (UIApplication.m:3493)
42 UIKitCore 0x00000001832f5ce0 UIApplicationMain + 2028 (UIApplication.m:5046)
43 MyApp 0x0000000104f52034 main + 68 (LAContextExtension.swift:12)
44 dyld 0x000000010546c190 start + 444 (dyldMain.cpp:876)
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001ba7e1088 __semwait_signal + 8
1 libsystem_c.dylib 0x000000018b2008e0 nanosleep + 212 (nanosleep.c:104)
2 Foundation 0x00000001824c49e0 +[NSThread sleepForTimeInterval:] + 152 (NSThread.m:504)
3 MyApp 0x0000000104fbef58 closure #2 in AppDelegate.monitorNotificationSettings() + 276 (AppDelegate.swift:142)
4 MyApp 0x0000000105024ac0 thunk for #escaping #callee_guaranteed () -> () + 20 (<compiler-generated>:0)
5 libdispatch.dylib 0x0000000180a6d194 _dispatch_call_block_and_release + 24 (init.c:1517)
6 libdispatch.dylib 0x0000000180a6e198 _dispatch_client_callout + 16 (object.m:560)
7 libdispatch.dylib 0x0000000180a101ec _dispatch_queue_override_invoke + 728 (inline_internal.h:2601)
8 libdispatch.dylib 0x0000000180a1d42c _dispatch_root_queue_drain + 340 (inline_internal.h:0)
9 libdispatch.dylib 0x0000000180a1dc28 _dispatch_worker_thread2 + 172 (queue.c:6930)
10 libsystem_pthread.dylib 0x00000001dae1de48 _pthread_wqthread + 224 (pthread.c:2554)
11 libsystem_pthread.dylib 0x00000001dae1d9f0 start_wqthread + 8
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001ba7e0b10 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001ba7e1134 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x0000000180d16ac0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x0000000180d1aba8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x0000000180d2dd7c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Foundation 0x000000018246600c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:373)
6 Foundation 0x00000001824a518c -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 (NSRunLoop.m:420)
7 UIKitCore 0x00000001834ddd58 -[UIEventFetcher threadMain] + 512 (UIEventFetcher.m:1167)
8 Foundation 0x00000001824b2efc __NSThread__start__ + 792 (NSThread.m:972)
9 libsystem_pthread.dylib 0x00000001dae1f3a4 _pthread_start + 116 (pthread.c:891)
10 libsystem_pthread.dylib 0x00000001dae1d9fc thread_start + 8
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001ba7e1088 __semwait_signal + 8
1 libsystem_c.dylib 0x000000018b2008e0 nanosleep + 212 (nanosleep.c:104)
2 Foundation 0x00000001824c49e0 +[NSThread sleepForTimeInterval:] + 152 (NSThread.m:504)
3 MyApp 0x0000000104fbef58 closure #2 in AppDelegate.monitorNotificationSettings() + 276 (AppDelegate.swift:142)
4 MyApp 0x0000000105024ac0 thunk for #escaping #callee_guaranteed () -> () + 20 (<compiler-generated>:0)
5 libdispatch.dylib 0x0000000180a6d194 _dispatch_call_block_and_release + 24 (init.c:1517)
6 libdispatch.dylib 0x0000000180a6e198 _dispatch_client_callout + 16 (object.m:560)
7 libdispatch.dylib 0x0000000180a101ec _dispatch_queue_override_invoke + 728 (inline_internal.h:2601)
8 libdispatch.dylib 0x0000000180a1d42c _dispatch_root_queue_drain + 340 (inline_internal.h:0)
9 libdispatch.dylib 0x0000000180a1dc28 _dispatch_worker_thread2 + 172 (queue.c:6930)
10 libsystem_pthread.dylib 0x00000001dae1de48 _pthread_wqthread + 224 (pthread.c:2554)
11 libsystem_pthread.dylib 0x00000001dae1d9f0 start_wqthread + 8
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001ba7e0b10 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001ba7e1134 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x0000000180d16ac0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x0000000180d1aba8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x0000000180d2dd7c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 CFNetwork 0x0000000181731f38 +[__CFN_CoreSchedulingSetRunnable _run:] + 424 (CoreSchedulingSet.mm:1372)
6 Foundation 0x00000001824b2efc __NSThread__start__ + 792 (NSThread.m:972)
7 libsystem_pthread.dylib 0x00000001dae1f3a4 _pthread_start + 116 (pthread.c:891)
8 libsystem_pthread.dylib 0x00000001dae1d9fc thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x00000001dae1d9e8 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x00000001dae1d9e8 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x00000001dae1d9e8 start_wqthread + 0
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001ba7e24a0 readlink + 8
1 Foundation 0x0000000182541358 -[NSFileManager destinationOfSymbolicLinkAtPath:error:] + 92 (NSFileManager.m:5618)
2 Foundation 0x0000000182540bf4 +[NSFileAttributes attributesAtPath:traverseLink:] + 60 (NSFileManager.m:898)
3 Foundation 0x0000000182526c9c -[NSFileManager enumeratorAtPath:] + 40 (NSFileManager.m:4285)
4 GoogleDataTransport 0x0000000105368e98 __44-[GDTCORFlatFileStorage checkForExpirations]_block_invoke + 760 (GDTCORFlatFileStorage.m:425)
5 libdispatch.dylib 0x0000000180a6d194 _dispatch_call_block_and_release + 24 (init.c:1517)
6 libdispatch.dylib 0x0000000180a6e198 _dispatch_client_callout + 16 (object.m:560)
7 libdispatch.dylib 0x0000000180a140d4 _dispatch_lane_serial_drain$VARIANT$mp + 644 (inline_internal.h:2601)
8 libdispatch.dylib 0x0000000180a14b84 _dispatch_lane_invoke$VARIANT$mp + 408 (queue.c:3937)
9 libdispatch.dylib 0x0000000180a1e750 _dispatch_workloop_worker_thread + 632 (queue.c:6727)
10 libsystem_pthread.dylib 0x00000001dae1de84 _pthread_wqthread + 284 (pthread.c:2541)
11 libsystem_pthread.dylib 0x00000001dae1d9f0 start_wqthread + 8
Thread 9 name:
Thread 9:
0 libsystem_blocks.dylib 0x00000001dad937dc _Block_release + 96 (runtime.cpp:99)
1 libdispatch.dylib 0x0000000180a6e4bc __destroy_helper_block_8_32c35_ZTS29dispatch_block_private_data_s + 92 (block.cpp:99)
2 libsystem_blocks.dylib 0x00000001dad93834 _Block_release + 184 (runtime.cpp:176)
3 libdispatch.dylib 0x0000000180a6e198 _dispatch_client_callout + 16 (object.m:560)
4 libdispatch.dylib 0x0000000180a140d4 _dispatch_lane_serial_drain$VARIANT$mp + 644 (inline_internal.h:2601)
5 libdispatch.dylib 0x0000000180a14bb4 _dispatch_lane_invoke$VARIANT$mp + 456 (queue.c:3937)
6 libdispatch.dylib 0x0000000180a1e750 _dispatch_workloop_worker_thread + 632 (queue.c:6727)
7 libsystem_pthread.dylib 0x00000001dae1de84 _pthread_wqthread + 284 (pthread.c:2541)
8 libsystem_pthread.dylib 0x00000001dae1d9f0 start_wqthread + 8
Thread 10:
0 libsystem_pthread.dylib 0x00000001dae1d9e8 start_wqthread + 0
Thread 11:
0 libsystem_pthread.dylib 0x00000001dae1d9e8 start_wqthread + 0
Thread 12:
0 libsystem_pthread.dylib 0x00000001dae1d9e8 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000ce32ac200 x1: 0x000000019b40aa0e x2: 0x000000028141c200 x3: 0x000000019bb13775
x4: 0x00000001e832ae08 x5: 0x0000000283a2c540 x6: 0x000000000000002a x7: 0x0000000000000000
x8: 0x00003b6ce32ac200 x9: 0x00000001f6ddbfd0 x10: 0x0000000000000001 x11: 0x000f00028065d000
x12: 0x000000000000000a x13: 0x000000028065d090 x14: 0x0000000000000000 x15: 0x00000001f18996e0
x16: 0x0000000197f48470 x17: 0x000000018249d0b4 x18: 0x0000000000000000 x19: 0x000000028141c200
x20: 0x000000019bb13775 x21: 0x00000001e832ae08 x22: 0x0000000283a2c540 x23: 0x000000028114c460
x24: 0xfffffffd7ebe3dff x25: 0x00000002834def40 x26: 0x0000000000000000 x27: 0x000001990000021c
x28: 0x0000000000001800 fp: 0x000000016aeb4f90 lr: 0x000000018249d1c0
sp: 0x000000016aeb4f20 pc: 0x0000000197f48474 cpsr: 0x60000000
esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x104f48000 - 0x10510bfff MyApp arm64 <dee02279d86431709c9bd750b7483261> /private/var/containers/Bundle/Application/D7C39FA7-6102-4415-9970-13B525FAD1D4/MyApp.app/MyApp
0x105358000 - 0x105377fff GoogleDataTransport arm64 <f59376a7e76c3ca6b3062902b0029209> /private/var/containers/Bundle/Application/D7C39FA7-6102-4415-9970-13B525FAD1D4/MyApp.app/Frameworks/GoogleDataTransport.framework/GoogleDataTransport
0x105454000 - 0x1054a7fff dyld arm64 <5e7ef5771cc5369aa04d28fbba883086> /usr/lib/dyld
0x180a0a000 - 0x180a8cfff libdispatch.dylib arm64 <56aa6e938d8e32feac73d3e79b1ba2f5> /usr/lib/system/libdispatch.dylib
0x180d10000 - 0x18114afff CoreFoundation arm64 <ea9c1df294c7379bbf8d970335b1552f> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1814e6000 - 0x18197bfff CFNetwork arm64 <d47c42c4e8f531babf5e074a91376b00> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x18244e000 - 0x18272efff Foundation arm64 <86d8a58db71f34c683e0014b2b835f1d> /System/Library/Frameworks/Foundation.framework/Foundation
0x183074000 - 0x1847fdfff UIKitCore arm64 <fb5c2d366a053355b898d8d3c163d02e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x18b1fc000 - 0x18b276fff libsystem_c.dylib arm64 <5700e26c19b735c9b739e62c325f4fcc> /usr/lib/system/libsystem_c.dylib
0x191802000 - 0x1918a0fff FrontBoardServices arm64 <833f5b02d9623b8aa5d2335e0f7d25a1> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x197f41000 - 0x197f76fff libobjc.A.dylib arm64 <78e77e2874d0371aa2466d41374ba19a> /usr/lib/libobjc.A.dylib
0x19afa1000 - 0x19afa9fff GraphicsServices arm64 <af306dd576573f63912fabc225106419> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1ba7e0000 - 0x1ba811fff libsystem_kernel.dylib arm64 <28a82cbdb2103662af9e636819d8909a> /usr/lib/system/libsystem_kernel.dylib
0x1dad92000 - 0x1dad93fff libsystem_blocks.dylib arm64 <56ddac7a396339f9aaad944023ad9d61> /usr/lib/system/libsystem_blocks.dylib
0x1dae19000 - 0x1dae2cfff libsystem_pthread.dylib arm64 <ce7eb78851553c3888d812f1419fa5fa> /usr/lib/system/libsystem_pthread.dylib
EOF
Please help if anyone knows what this crash can be about. I am actually a noob in crash reports analysis.

Had similar problem on my end as well.
I mistakenly built the IPA with my test device selected. And I simply changed to Any iOS Device(arm64) as shown in the picture below. And no more crash.

Related

App crashes with SIGABRT only on App Review

I have a weird problem with my app. I needed to update the metadata on App Store connect and uploaded a new build to App Store. The only thing that was changed in code is two strings with version number. Everything else is exactly the same as a version that is live on the App Store (which works fine). I got a rejection with 2.1.0 Performance: App Completeness reason, turned out my app crashes on launch on reviewers device. I thought that this maybe a one time problem and tried to upload a new build with same results. Crash report looks like this:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1aaf29288 __exceptionPreprocess + 220
1 libobjc.A.dylib 0x1c3c23744 objc_exception_throw + 60
2 Realm 0x1031d3f90 RLMAccessorContext::createObject(objc_object*, realm::CreatePolicy, bool, realm::ObjKey) + 1776
3 Realm 0x103212e1c RLMAddObjectToRealm + 264
4 RealmSwift 0x1038784e0 Realm.add(_:update:) + 279776 (__hidden#4669_:438)
5 AppName 0x10275cf5c _hidden#5641_ + 282460 (__hidden#5706_:442)
6 AppName 0x1027dcd64 _hidden#12_ + 806244 (__hidden#1380_:0)
7 AppName 0x10275d1bc _hidden#296_ + 283068 (__hidden#1380_:0)
8 RealmSwift 0x103877d78 Realm.write<A>(withoutNotifying:_:) + 277880 (__hidden#4669_:255)
9 AppName 0x10275d0f0 _hidden#5647_ + 282864 (__hidden#5706_:438)
10 AppName 0x1028374a0 _hidden#15379_ + 1176736 (__hidden#15477_:382)
11 AppName 0x102838824 _hidden#15383_ + 1181732 (__hidden#1380_:0)
12 UIKitCore 0x1ad62f72c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 340
13 UIKitCore 0x1ad816564 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3572
14 UIKitCore 0x1ad7ff118 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1180
15 UIKitCore 0x1ad65cd34 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
16 UIKitCore 0x1ad4b73b4 _UIScenePerformActionsWithLifecycleActionMask + 104
17 UIKitCore 0x1ad5e1d90 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
18 UIKitCore 0x1ad701aa0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
19 UIKitCore 0x1ad940764 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 772
20 UIKitCore 0x1ad8cbd14 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
21 UIKitCore 0x1ad4b81a0 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
22 UIKitCore 0x1ad5780d8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
23 UIKitCore 0x1ad4ba0a4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
24 UIKitCore 0x1ad5a4244 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
25 UIKitCore 0x1ada28e60 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615 + 776
26 UIKitCore 0x1ad4e8484 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
27 UIKitCore 0x1ad52bcc4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288
28 UIKitCore 0x1ad661b38 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 584
29 UIKitCore 0x1ad5a2508 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
30 FrontBoardServices 0x1bd133294 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
31 FrontBoardServices 0x1bd159090 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128
32 FrontBoardServices 0x1bd114308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
33 FrontBoardServices 0x1bd115958 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
34 libdispatch.dylib 0x1aab90a30 _dispatch_client_callout + 20
35 libdispatch.dylib 0x1aab944e0 _dispatch_block_invoke_direct + 264
36 FrontBoardServices 0x1bd115c70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
37 FrontBoardServices 0x1bd115040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
38 FrontBoardServices 0x1bd119700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
39 CoreFoundation 0x1aaf4b414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
40 CoreFoundation 0x1aaf5c1a0 __CFRunLoopDoSource0 + 208
41 CoreFoundation 0x1aae95694 __CFRunLoopDoSources0 + 268
42 CoreFoundation 0x1aae9b05c __CFRunLoopRun + 828
43 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
44 GraphicsServices 0x1c6fe2374 GSEventRunModal + 164
45 UIKitCore 0x1ad81e648 -[UIApplication _run] + 1100
46 UIKitCore 0x1ad59fd90 UIApplicationMain + 364
47 AppName 0x1027211c8 main + 37320 (__hidden#1378_:63)
48 dyld 0x102ed5ce4 start + 520
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1e2965b38 __pthread_kill + 8
1 libsystem_pthread.dylib 0x21c0963bc pthread_kill + 268
2 libsystem_c.dylib 0x1b602f524 abort + 168
3 libc++abi.dylib 0x1c3d2eb7c abort_message + 132
4 libc++abi.dylib 0x1c3d1e9c4 demangling_terminate_handler() + 336
5 libobjc.A.dylib 0x1c3c29c68 _objc_terminate() + 144
6 libc++abi.dylib 0x1c3d2df18 std::__terminate(void (*)()) + 20
7 libc++abi.dylib 0x1c3d2deb4 std::terminate() + 64
8 libdispatch.dylib 0x1aab90a44 _dispatch_client_callout + 40
9 libdispatch.dylib 0x1aab944e0 _dispatch_block_invoke_direct + 264
10 FrontBoardServices 0x1bd115c70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11 FrontBoardServices 0x1bd115040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
12 FrontBoardServices 0x1bd119700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
13 CoreFoundation 0x1aaf4b414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14 CoreFoundation 0x1aaf5c1a0 __CFRunLoopDoSource0 + 208
15 CoreFoundation 0x1aae95694 __CFRunLoopDoSources0 + 268
16 CoreFoundation 0x1aae9b05c __CFRunLoopRun + 828
17 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
18 GraphicsServices 0x1c6fe2374 GSEventRunModal + 164
19 UIKitCore 0x1ad81e648 -[UIApplication _run] + 1100
20 UIKitCore 0x1ad59fd90 UIApplicationMain + 364
21 AppName 0x1027211c8 main + 37320 (__hidden#1378_:63)
22 dyld 0x102ed5ce4 start + 520
Thread 1:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x1e295f4a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e295fae4 mach_msg + 76
2 CoreFoundation 0x1aae96d30 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aae9b1bc __CFRunLoopRun + 1180
4 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
5 Foundation 0x1ac69d464 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x1ac6dee2c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x1ad798770 -[UIEventFetcher threadMain] + 524
8 Foundation 0x1ac6ed43c __NSThread__start__ + 808
9 libsystem_pthread.dylib 0x21c0909ac _pthread_start + 148
10 libsystem_pthread.dylib 0x21c08fe68 thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 6 name: Dispatch queue: com.apple.UIKit.KeyboardManagement
Thread 6:
0 libsystem_kernel.dylib 0x1e2960138 __ulock_wait + 8
1 libdispatch.dylib 0x1aab91420 _dlock_wait + 56
2 libdispatch.dylib 0x1aab911d4 _dispatch_thread_event_wait_slow + 56
3 libdispatch.dylib 0x1aab9ff70 __DISPATCH_WAIT_FOR_QUEUE__ + 356
4 libdispatch.dylib 0x1aab9fb28 _dispatch_sync_f_slow + 144
5 UIKitCore 0x1ad6785ac __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 136
6 CoreFoundation 0x1aaeb1b24 __invoking___ + 148
7 CoreFoundation 0x1aaecf610 -[NSInvocation invoke] + 468
8 Foundation 0x1ac6b9938 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 24
9 Foundation 0x1ac6daf74 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 572
10 Foundation 0x1ac6b5480 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 212
11 libxpc.dylib 0x21c0c56ac _xpc_connection_reply_callout + 124
12 libxpc.dylib 0x21c0b8bcc _xpc_connection_call_reply_async + 88
13 libdispatch.dylib 0x1aab90ab0 _dispatch_client_callout3 + 20
14 libdispatch.dylib 0x1aabae214 _dispatch_mach_msg_async_reply_invoke + 340
15 libdispatch.dylib 0x1aab98000 _dispatch_lane_serial_drain + 376
16 libdispatch.dylib 0x1aab98cb4 _dispatch_lane_invoke + 444
17 libdispatch.dylib 0x1aaba3500 _dispatch_workloop_worker_thread + 648
18 libsystem_pthread.dylib 0x21c0900bc _pthread_wqthread + 288
19 libsystem_pthread.dylib 0x21c08fe5c start_wqthread + 8
Thread 7 name: AVAudioSession Notify Thread
Thread 7:
0 libsystem_kernel.dylib 0x1e295f4a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e295fae4 mach_msg + 76
2 CoreFoundation 0x1aae96d30 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aae9b1bc __CFRunLoopRun + 1180
4 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
5 AudioSession 0x1b44baf04 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0x1b44c48f0 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x21c0909ac _pthread_start + 148
8 libsystem_pthread.dylib 0x21c08fe68 thread_start + 8
Thread 8 name: Realm notification listener
Thread 8:
0 libsystem_kernel.dylib 0x1e2960e18 kevent + 8
1 Realm 0x103528db4 realm::_impl::ExternalCommitHelper::listen() + 156
2 Realm 0x103528f04 _hidden#16050_ + 52
3 libsystem_pthread.dylib 0x21c0909ac _pthread_start + 148
4 libsystem_pthread.dylib 0x21c08fe68 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x00000001c3d320f5 x5: 0x000000016d6e6310 x6: 0x000000000000006e x7: 0x0000000000000400
x8: 0x54b9f472dc7144f9 x9: 0x54b9f473de83c179 x10: 0x0000000000000200 x11: 0x000000000000000b
x12: 0x000000000000000b x13: 0x00000001ab266a9f x14: 0x00000001c3d3211b x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000102f28580 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x0000000102f28660 x22: 0x0000000000000000 x23: 0x0000000102f28660
x24: 0x00000002040a7000 x25: 0x000000016d6e6aa0 x26: 0x000000002b3100d5 x27: 0x00000002040a7000
x28: 0x00000002040a7000 fp: 0x000000016d6e6280 lr: 0x000000021c0963bc
sp: 0x000000016d6e6260 pc: 0x00000001e2965b38 cpsr: 0x40000000
far: 0x0000000201cce768 esr: 0x56000080 Address size fault
Looks like Facebook SDK(?) crashing the app? And what is about Realm?
The problem is I can't reproduce the crash anywhere. Simulator or 5 real devices do not crash. I also see that Apple now use iPhone Xr as reviewer device (it was iPad before?). Tried to run app on iPhone Xr and it doesn't crash as well. Tried different combinations of Debug/Release, setting Exception Breakpoints without any luck.
Will be really thankful for any insight on how to approach this problem or what is going on here. Thank you very much!
I am not sure 100% if this is the fix to my problem as I was not able to reproduce this crash on any of mine or tester devices. However I had ATTrackingManager.requestTrackingAuthorization in App Delegate which appears to be not the place where you should use it. I moved it to initial viewcontroller and this fixed this crash for me and app got approved. But again I am not sure if I am maybe just lucky this time because I was not able to reproduce it in anyway and the app with this function in App Delegate was in store before, but maybe it crashes sometime not sure. If anyone with more knowledge of what might happen can write in that can be helpful for future. Thanks everyone.

Realm sometimes crashing in background mode

I am using background mode for downloading data from the server and storing it in Realm. I am getting weird crash reports from my users. I attached an example crash log.
private func addParseReportToDb(serverResponses: [AddNewParseReportResponse], trackedProfileRecordId: String) {
let trackedProfile = TrackedProfile.getByPrimaryKey(recordId: trackedProfileRecordId)!
for serverResponse in serverResponses {
let parseReport = ParseReport()
parseReport.biograph = serverResponse.biography
let realm = try! Realm()
try! realm.write({
realm.add(parseReport)
})
createUserFeedWithLatestReports(trackedProfile: trackedProfile)
}
}
Above method is calling from below method:
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: #escaping (UIBackgroundFetchResult) -> Void) {
let realm = try! Realm()
let tst = Test()
tst.type = "silent"
try! realm.write({
realm.add(tst)
})
let parseService = InstaParseService()
parseService.downloadLatestReports {
parseService.getUsersForFetch { status in
completionHandler(.newData)
}
}
}
parse.downloadLatestReports method calls the addParseReportToDb method.
The crash point is realm.add(parseReport)
As you can see actually I can add another object before adding the parseReport without any problem. Don't know why but that part crashes sometimes.
Crash log:
Incident Identifier: AB7B2EA0-F152-4F60-975E-5AA4FAA2CDFE
Hardware Model: iPhone10,6
Process: Insta Spy [35822]
Path: /private/var/containers/Bundle/Application/8A905DEA-41BF-4CA5-A026-1B7BF98919CC/Insta Spy.app/Insta Spy
Identifier: com.frost.instaspy
Version: 1.0.5 (6)
AppStoreTools: 13F15
AppVariant: 1:iPhone10,6:15
Beta: YES
Code Type: ARM-64 (Native)
Role: unknown
Parent Process: launchd [1]
Coalition: com.frost.instaspy [2476]
Date/Time: 2022-06-11 09:48:00.9830 +0300
Launch Time: 2022-06-11 09:47:58.7865 +0300
OS Version: iPhone OS 15.5 (19F77)
Release Type: User
Baseband Version: 5.03.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x18129fd0c __exceptionPreprocess + 216 (NSException.m:200)
1 libobjc.A.dylib 0x198a90ee4 objc_exception_throw + 56 (objc-exception.mm:565)
2 Insta Spy 0x102782e4c RLMAccessorContext::createObject(objc_object*, realm::CreatePolicy, bool, realm::ObjKey) + 1876 (RLMAccessor.mm:1097)
3 Insta Spy 0x1027cb3a8 RLMAddObjectToRealm + 200 (RLMObjectStore.mm:138)
4 Insta Spy 0x102767fb8 partial apply for thunk for #callee_guaranteed () -> (#error #owned Error) + 20 (<compiler-generated>:0)
5 Insta Spy 0x1029329b4 Realm.write<A>(withoutNotifying:_:) + 180 (Realm.swift:255)
6 Insta Spy 0x102767e70 specialized InstaParseService.addParseReportToDb(serverResponses:trackedProfileRecordId:) + 1068 (InstaParseService.swift:108)
7 Insta Spy 0x102764348 closure #1 in InstaParseService.downloadLatestReports(completionHandler:) + 268 (<compiler-generated>:0)
8 PromisedFuture 0x10358a368 closure #1 in Future.execute(onSuccess:onFailure:) + 288 (Future.swift:167)
9 Insta Spy 0x1027011d8 specialized closure #1 in closure #1 in static APIClient.performRequest<A>(route:) + 308
10 Insta Spy 0x102702768 partial apply for specialized closure #1 in closure #1 in static APIClient.performRequest<A>(route:) + 48 (<compiler-generated>:0)
11 Insta Spy 0x102d22e60 partial apply for closure #2 in closure #2 in closure #3 in closure #1 in DownloadRequest.response<A>(queue:responseSerializer:completionHandler:) + 136
12 Insta Spy 0x102cb6c94 thunk for #escaping #callee_guaranteed () -> () + 28 (<compiler-generated>:0)
13 libdispatch.dylib 0x180f5f094 _dispatch_call_block_and_release + 24 (init.c:1517)
14 libdispatch.dylib 0x180f60094 _dispatch_client_callout + 16 (object.m:560)
15 libdispatch.dylib 0x180f41858 _dispatch_main_queue_drain + 888 (inline_internal.h:2622)
16 libdispatch.dylib 0x180f414d0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36 (queue.c:7770)
17 CoreFoundation 0x18125b0c4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1795)
18 CoreFoundation 0x1812185e8 __CFRunLoopRun + 2544 (CFRunLoop.c:3144)
19 CoreFoundation 0x18122b240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
20 GraphicsServices 0x1a1d2d988 GSEventRunModal + 160 (GSEvent.c:2200)
21 UIKitCore 0x183a2b41c -[UIApplication _run] + 1080 (UIApplication.m:3511)
22 UIKitCore 0x1837c4b88 UIApplicationMain + 336 (UIApplication.m:5064)
23 libswiftUIKit.dylib 0x197b7aee4 UIApplicationMain(_:_:_:_:) + 100 (UIKit.swift:530)
24 Insta Spy 0x1026f56f4 main + 80 (<compiler-generated>:14)
25 Insta Spy 0x1026f56f4 $main + 92 (AddTrackedProfileViewModel.swift:0)
26 Insta Spy 0x1026f56f4 main + 108
27 dyld 0x1034f83d0 start + 444 (dyldMain.cpp:879)
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001bba8fbbc __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001dc4e3854 pthread_kill + 208 (pthread.c:1668)
2 libsystem_c.dylib 0x000000018b9d50b0 __abort + 124 (abort.c:155)
3 libsystem_c.dylib 0x000000018b9806b8 abort + 136 (abort.c:126)
4 libc++abi.dylib 0x0000000198b88dd8 abort_message + 128 (abort_message.cpp:78)
5 libc++abi.dylib 0x0000000198b7955c demangling_terminate_handler() + 300 (cxa_default_handlers.cpp:71)
6 libobjc.A.dylib 0x0000000198a968f8 _objc_terminate() + 124 (objc-exception.mm:701)
7 Insta Spy 0x0000000102ef6fec FIRCLSTerminateHandler() + 340 (FIRCLSException.mm:335)
8 libc++abi.dylib 0x0000000198b88274 std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:59)
9 libc++abi.dylib 0x0000000198b8821c std::terminate() + 60 (cxa_handlers.cpp:88)
10 libdispatch.dylib 0x0000000180f600a8 _dispatch_client_callout + 36 (object.m:563)
11 libdispatch.dylib 0x0000000180f41858 _dispatch_main_queue_drain + 888 (inline_internal.h:2622)
12 libdispatch.dylib 0x0000000180f414d0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36 (queue.c:7770)
13 CoreFoundation 0x000000018125b0c4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1795)
14 CoreFoundation 0x00000001812185e8 __CFRunLoopRun + 2544 (CFRunLoop.c:3144)
15 CoreFoundation 0x000000018122b240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
16 GraphicsServices 0x00000001a1d2d988 GSEventRunModal + 160 (GSEvent.c:2200)
17 UIKitCore 0x0000000183a2b41c -[UIApplication _run] + 1080 (UIApplication.m:3511)
18 UIKitCore 0x00000001837c4b88 UIApplicationMain + 336 (UIApplication.m:5064)
19 libswiftUIKit.dylib 0x0000000197b7aee4 UIApplicationMain(_:_:_:_:) + 100 (UIKit.swift:530)
20 Insta Spy 0x00000001026f56f4 main + 80 (<compiler-generated>:14)
21 Insta Spy 0x00000001026f56f4 $main + 92 (AddTrackedProfileViewModel.swift:0)
22 Insta Spy 0x00000001026f56f4 main + 108
23 dyld 0x00000001034f83d0 start + 444 (dyldMain.cpp:879)
Thread 1:
0 libsystem_pthread.dylib 0x00000001dc4d7934 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001dc4d7934 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001dc4d7934 start_wqthread + 0
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001bba8b710 fstatat64 + 8
1 libsystem_c.dylib 0x000000018b96f478 _mkpath + 152 (mkpath_np.c:57)
2 Foundation 0x000000018296e770 -[NSFileManager createDirectoryAtPath:withIntermediateDirectories:attributes:error:] + 120 (NSFileManager.m:5356)
3 Insta Spy 0x0000000102c3b2e0 __55-[GDTCORFlatFileStorage hasEventsForTarget:onComplete:]_block_invoke + 184 (GDTCORFlatFileStorage.m:382)
4 libdispatch.dylib 0x0000000180f5f094 _dispatch_call_block_and_release + 24 (init.c:1517)
5 libdispatch.dylib 0x0000000180f60094 _dispatch_client_callout + 16 (object.m:560)
6 libdispatch.dylib 0x0000000180f3b4a4 _dispatch_lane_serial_drain$VARIANT$armv81 + 600 (inline_internal.h:2622)
7 libdispatch.dylib 0x0000000180f3bf44 _dispatch_lane_invoke$VARIANT$armv81 + 388 (queue.c:3944)
8 libdispatch.dylib 0x0000000180f458e0 _dispatch_workloop_worker_thread + 608 (queue.c:6732)
9 libsystem_pthread.dylib 0x00000001dc4d7e10 _pthread_wqthread + 284 (pthread.c:2599)
10 libsystem_pthread.dylib 0x00000001dc4d793c start_wqthread + 8
Thread 5:
0 libsystem_pthread.dylib 0x00000001dc4d7934 start_wqthread + 0
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001bba89aac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bba8a07c mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x0000000181213d78 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x0000000181218080 __CFRunLoopRun + 1160 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018122b240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Foundation 0x0000000182938efc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:373)
6 Foundation 0x0000000182978010 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 (NSRunLoop.m:420)
7 UIKitCore 0x00000001839aa86c -[UIEventFetcher threadMain] + 512 (UIEventFetcher.m:1167)
8 Foundation 0x0000000182985c0c __NSThread__start__ + 792 (NSThread.m:972)
9 libsystem_pthread.dylib 0x00000001dc4d9348 _pthread_start + 116 (pthread.c:891)
10 libsystem_pthread.dylib 0x00000001dc4d7948 thread_start + 8
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001bba89aac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bba8a07c mach_msg + 72 (mach_msg.c:119)
2 Insta Spy 0x0000000102ef83f8 FIRCLSMachExceptionReadMessage + 60 (FIRCLSMachException.c:194)
3 Insta Spy 0x0000000102ef83f8 FIRCLSMachExceptionServer + 108 (FIRCLSMachException.c:170)
4 libsystem_pthread.dylib 0x00000001dc4d9348 _pthread_start + 116 (pthread.c:891)
5 libsystem_pthread.dylib 0x00000001dc4d7948 thread_start + 8
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001bba8b294 kevent + 8
1 Insta Spy 0x0000000102a2f218 realm::_impl::ExternalCommitHelper::listen() + 160 (external_commit_helper.cpp:220)
2 Insta Spy 0x0000000102a2fbdc operator() + 4 (external_commit_helper.cpp:176)
3 Insta Spy 0x0000000102a2fbdc _invoke<(lambda at /Users/tolgaytoklar/Library/Developer/Xcode/DerivedData/Insta_Spy-efuqnbeotewvyncxwyoycmcgayra/SourcePackages/checkouts/realm-core/src/realm/object-store/impl/apple/external_comm... + 4 (type_traits:3918)
4 Insta Spy 0x0000000102a2fbdc _thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, (lambda at /Users/tolgaytoklar/Library/Developer/Xcode/DerivedData/Insta_Spy-e... + 4 (thread:287)
5 Insta Spy 0x0000000102a2fbdc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCom... + 52 (thread:298)
6 libsystem_pthread.dylib 0x00000001dc4d9348 _pthread_start + 116 (pthread.c:891)
7 libsystem_pthread.dylib 0x00000001dc4d7948 thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001bba89aac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bba8a07c mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x0000000181213d78 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x0000000181218080 __CFRunLoopRun + 1160 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018122b240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 CFNetwork 0x0000000181c30b08 +[__CFN_CoreSchedulingSetRunnable _run:] + 428 (CoreSchedulingSet.mm:1372)
6 Foundation 0x0000000182985c0c __NSThread__start__ + 792 (NSThread.m:972)
7 libsystem_pthread.dylib 0x00000001dc4d9348 _pthread_start + 116 (pthread.c:891)
8 libsystem_pthread.dylib 0x00000001dc4d7948 thread_start + 8
Thread 10:
0 libsystem_pthread.dylib 0x00000001dc4d7934 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x000000000000006e x7: 0xffffffff00000900
x8: 0x0000000103548580 x9: 0xd1fb99cae63401f2 x10: 0x00000000000003e8 x11: 0x000000000000000b
x12: 0x0000000000000000 x13: 0x0000000008a2f000 x14: 0x0000000000000010 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000002 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x0000000103548660 x22: 0x0000000000000007 x23: 0x0000000103048472
x24: 0x0000000000000000 x25: 0x0000000103548660 x26: 0x000000000000000f x27: 0x0000000000000000
x28: 0x00000002834a2280 fp: 0x000000016d70e290 lr: 0x00000001dc4e3854
sp: 0x000000016d70e270 pc: 0x00000001bba8fbbc cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x1026f0000 - 0x10316ffff Insta Spy arm64 <c7b80223ca0c30759a16544c17251c9b> /private/var/containers/Bundle/Application/8A905DEA-41BF-4CA5-A026-1B7BF98919CC/Insta Spy.app/Insta Spy
0x1034e0000 - 0x103533fff dyld arm64 <0912a37c959234f1938ffdbcfcd1cf2f> /usr/lib/dyld
0x103584000 - 0x10358bfff PromisedFuture arm64 <e1670c2d528c33f49d1cad6e42bdfe69> /private/var/containers/Bundle/Application/8A905DEA-41BF-4CA5-A026-1B7BF98919CC/Insta Spy.app/Frameworks/PromisedFuture.framework/PromisedFuture
0x180efc000 - 0x180f7efff libdispatch.dylib arm64 <f87efead673b3a09b7ab9c69b55a18a8> /usr/lib/system/libdispatch.dylib
0x18120d000 - 0x18164afff CoreFoundation arm64 <48cd0a807a9234ebb1408c475d135808> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1819e9000 - 0x181e79fff CFNetwork arm64 <f154f6f6f7693743a48fc4828dca4e3c> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x182921000 - 0x182c05fff Foundation arm64 <3cb1645d719b332f9a3a9c33a9bb4b6d> /System/Library/Frameworks/Foundation.framework/Foundation
0x183546000 - 0x184cdffff UIKitCore arm64 <a84e395e0b003162b1fdb861ce41349c> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x18b961000 - 0x18b9dcfff libsystem_c.dylib arm64 <929b8c7cb9523971a688c9c4aaf0f2b6> /usr/lib/system/libsystem_c.dylib
0x197b53000 - 0x197bb2fff libswiftUIKit.dylib arm64 <ade66154967a329d839ca3a65912d3b9> /usr/lib/swift/libswiftUIKit.dylib
0x198a7c000 - 0x198ab3fff libobjc.A.dylib arm64 <57ca31b758ea36d6a442728888f336ec> /usr/lib/libobjc.A.dylib
0x198b78000 - 0x198b8efff libc++abi.dylib arm64 <f886a31d5e493b6aa361a07fedecec59> /usr/lib/libc++abi.dylib
0x1a1d2c000 - 0x1a1d34fff GraphicsServices arm64 <996d6fdae7883abeb6d6ad8e0f4cc881> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1bba89000 - 0x1bbabcfff libsystem_kernel.dylib arm64 <09e1dcdbe2c93f7ebbfc96dec6c161da> /usr/lib/system/libsystem_kernel.dylib
0x1dc4d6000 - 0x1dc4e6fff libsystem_pthread.dylib arm64 <5190be2141d433619249bfdc03b71e36> /usr/lib/system/libsystem_pthread.dylib
EOF

Difference between Device in Xcode Organizer and Hardware Model in symbolicated crash report

I recently released an app update on app store. And there have been some crashes reported which I am able to view in Xcode Organizer window under Crashes section. However, I see there is a discrepancy between Device name mentioned in Xcode Organizer and Hardware Model when I open the locally symoblicated crash report from Finder window.
As seen in the above screenshot, Device in Organizer window is shown as iPhone 4.
Incident Identifier: 5A59A68B-7A0D-491B-865A-C37D5C9BA122
Hardware Model: iPhone12,5
Process: My_App [15568]
Path: /private/var/containers/Bundle/Application/212B5311-CCE3-46F1-9F94-11BB09B4391D/My_App.app/My_App
Identifier: com.MyApp
Version: 4.0.0 (4.0.0.8)
AppStoreTools: 13A1030d
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyApp [3842]
Date/Time: 2022-01-11 10:46:03.1159 -0500
Launch Time: 2022-01-11 10:45:50.4872 -0500
OS Version: iPhone OS 15.2 (19C56)
Release Type: User
Baseband Version: 3.01.02
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 6
Last Exception Backtrace:
0 CoreFoundation 0x1817850fc __exceptionPreprocess + 220 (NSException.m:200)
1 libobjc.A.dylib 0x199fc0d64 objc_exception_throw + 60 (objc-exception.mm:565)
2 AVFCapture 0x1a0171d8c -[AVCaptureSession startRunning] + 308 (AVCaptureSession.m:1935)
3 My_App 0x104d2acc0 closure #1 in closure #1 in CameraScanner.startCapturing() + 592 (CameraScanner.swift:207)
4 My_App 0x104d2a94c closure #1 in CameraScanner.startCapturing() + 172 (VideoPermission.swift:17)
5 My_App 0x104d28ac0 thunk for #escaping #callee_guaranteed () -> () + 20 (<compiler-generated>:0)
6 libdispatch.dylib 0x1813f5924 _dispatch_call_block_and_release + 32 (init.c:1517)
7 libdispatch.dylib 0x1813f7670 _dispatch_client_callout + 20 (object.m:560)
8 libdispatch.dylib 0x1813fedf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
9 libdispatch.dylib 0x1813ff968 _dispatch_lane_invoke + 392 (queue.c:3937)
10 libdispatch.dylib 0x18140a1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
11 libsystem_pthread.dylib 0x1f21570f4 _pthread_wqthread + 288 (pthread.c:2599)
12 libsystem_pthread.dylib 0x1f2156e94 start_wqthread + 8
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 AVFCore 0x000000018ab70d8c -[AVRunLoopCondition _waitInMode:untilDate:] + 412 (AVRunLoopCondition.m:174)
6 AVFCapture 0x00000001a01ea958 -[AVCaptureSession _buildAndRunGraph:] + 1168 (AVCaptureSession.m:3065)
7 AVFCapture 0x00000001a01617d4 -[AVCaptureSession _commitConfiguration] + 148 (AVCaptureSession.m:1012)
8 Foundation 0x0000000182f410dc NSKeyValueNotifyObserver + 292 (NSKeyValueObserving.m:433)
9 Foundation 0x0000000182f2cda0 NSKeyValueDidChange + 356 (NSKeyValueObserving.m:552)
10 Foundation 0x0000000182f66518 NSKeyValueDidChangeWithPerThreadPendingNotifications + 160 (NSKeyValueObserving.m:1209)
11 My_App 0x0000000104d2adc0 closure #1 in CameraScanner.configureWorkItem() + 100 (CameraScanner.swift:192)
12 My_App 0x0000000104d28ac0 thunk for #escaping #callee_guaranteed () -> () + 20 (<compiler-generated>:0)
13 libdispatch.dylib 0x0000000181406454 _dispatch_block_async_invoke2 + 148 (queue.c:548)
14 libdispatch.dylib 0x00000001813f7670 _dispatch_client_callout + 20 (object.m:560)
15 libdispatch.dylib 0x0000000181405b70 _dispatch_main_queue_callback_4CF + 944 (inline_internal.h:2601)
16 CoreFoundation 0x000000018173dd84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
17 CoreFoundation 0x00000001816f7f5c __CFRunLoopRun + 2540 (CFRunLoop.c:3144)
18 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
19 GraphicsServices 0x000000019d29738c GSEventRunModal + 164 (GSEvent.c:2200)
20 UIKitCore 0x00000001840ad088 -[UIApplication _run] + 1100 (UIApplication.m:3493)
21 UIKitCore 0x0000000183e2b958 UIApplicationMain + 2092 (UIApplication.m:5046)
22 My_App 0x0000000104c56034 main + 68 (LAContextExtension.swift:12)
23 dyld 0x0000000104fa5aa4 start + 520 (dyldMain.cpp:879)
Thread 1:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 2 name:
Thread 2:
0 libsqlite3.dylib 0x00000001a0080294 tokenExpr + 268 (sqlite3.c:0)
1 libsqlite3.dylib 0x00000001a0080204 tokenExpr + 124 (sqlite3.c:165844)
2 libsqlite3.dylib 0x000000019ffb5254 yy_reduce + 2448 (sqlite3.c:169951)
3 libsqlite3.dylib 0x000000019ffb38ec sqlite3RunParser + 796 (sqlite3.c:170882)
4 libsqlite3.dylib 0x000000019ffb2f80 sqlite3Prepare + 432 (sqlite3.c:139396)
5 libsqlite3.dylib 0x000000019ffb2c24 sqlite3LockAndPrepare + 244 (sqlite3.c:139474)
6 My_App 0x0000000104db66dc -[APMSqliteStore prepareSQL:error:] + 236
7 My_App 0x0000000104db72e8 -[APMSqliteStore upsertStatementForRecord:inTableWithName:error:] + 572
8 My_App 0x0000000104db4dec -[APMSqliteStore upsertRecord:inTableWithName:error:] + 200
9 My_App 0x0000000104d5464c -[APMDatabase insertDataType:inTableWithName:error:] + 144
10 My_App 0x0000000104d4a050 -[APMDatabase insertRawEvent:metadataFingerprint:isRealtime:error:] + 684
11 My_App 0x0000000104d7bc90 -[APMMeasurement+ 1244304 (Event) writeEvent:isPublicEvent:isRealtime:] + 1944
12 My_App 0x0000000104d78fa8 __49-[APMMeasurement+ 1232808 (Event) writeEventOnWorkerQueue:]_block_invoke + 604
13 My_App 0x0000000104db6110 -[APMSqliteStore performTransactionWithError:block:] + 176
14 My_App 0x0000000104d488d4 -[APMDatabase performTransaction:] + 48
15 My_App 0x0000000104d78c6c -[APMMeasurement+ 1231980 (Event) writeEventOnWorkerQueue:] + 820
16 My_App 0x0000000104d787c8 -[APMMeasurement+ 1230792 (Event) handleEventOnWorkerQueue:] + 540
17 My_App 0x0000000104d86bfc -[APMMeasurement logEventOnWorkerQueue:notifyEventListeners:] + 76
18 My_App 0x0000000104d86bac -[APMMeasurement logEventOnWorkerQueueWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:] + 708
19 My_App 0x0000000104d86840 __151-[APMMeasurement logEventWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:]_block_invoke + 68
20 My_App 0x0000000104dab210 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 44
21 libdispatch.dylib 0x00000001813f5924 _dispatch_call_block_and_release + 32 (init.c:1517)
22 libdispatch.dylib 0x00000001813f7670 _dispatch_client_callout + 20 (object.m:560)
23 libdispatch.dylib 0x00000001813fedf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
24 libdispatch.dylib 0x00000001813ff968 _dispatch_lane_invoke + 392 (queue.c:3937)
25 libdispatch.dylib 0x000000018140a1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
26 libsystem_pthread.dylib 0x00000001f21570f4 _pthread_wqthread + 288 (pthread.c:2599)
27 libsystem_pthread.dylib 0x00000001f2156e94 start_wqthread + 8
Thread 3:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 Foundation 0x0000000182f27c94 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6 Foundation 0x0000000182f68dc8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7 UIKitCore 0x0000000184026230 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8 Foundation 0x0000000182f7740c __NSThread__start__ + 808 (NSThread.m:972)
9 libsystem_pthread.dylib 0x00000001f21579a4 _pthread_start + 148 (pthread.c:891)
10 libsystem_pthread.dylib 0x00000001f2156ea0 thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 6 name:
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x00000001b8cbf964 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f215d378 pthread_kill + 268 (pthread.c:1668)
2 libsystem_c.dylib 0x000000018c648f50 abort + 164 (abort.c:118)
3 libc++abi.dylib 0x000000019a0c8bc4 abort_message + 132 (abort_message.cpp:78)
4 libc++abi.dylib 0x000000019a0b9fd8 demangling_terminate_handler() + 332 (cxa_default_handlers.cpp:71)
5 libobjc.A.dylib 0x0000000199fc6e34 _objc_terminate() + 144 (objc-exception.mm:701)
6 libc++abi.dylib 0x000000019a0c7f58 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7 libc++abi.dylib 0x000000019a0c7ef4 std::terminate() + 64 (cxa_handlers.cpp:88)
8 libdispatch.dylib 0x00000001813f7684 _dispatch_client_callout + 40 (object.m:563)
9 libdispatch.dylib 0x00000001813fedf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
10 libdispatch.dylib 0x00000001813ff968 _dispatch_lane_invoke + 392 (queue.c:3937)
11 libdispatch.dylib 0x000000018140a1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
12 libsystem_pthread.dylib 0x00000001f21570f4 _pthread_wqthread + 288 (pthread.c:2599)
13 libsystem_pthread.dylib 0x00000001f2156e94 start_wqthread + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 CFNetwork 0x000000018217f3f0 +[__CFN_CoreSchedulingSetRunnable _run:] + 464 (CoreSchedulingSet.mm:1372)
6 Foundation 0x0000000182f7740c __NSThread__start__ + 808 (NSThread.m:972)
7 libsystem_pthread.dylib 0x00000001f21579a4 _pthread_start + 148 (pthread.c:891)
8 libsystem_pthread.dylib 0x00000001f2156ea0 thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 AudioSession 0x000000018ab1e308 CADeprecated::GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:95)
6 AudioSession 0x000000018ab27d64 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7 libsystem_pthread.dylib 0x00000001f21579a4 _pthread_start + 148 (pthread.c:891)
8 libsystem_pthread.dylib 0x00000001f2156ea0 thread_start + 8
Thread 6 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000019a0cc0ad x5: 0x000000016b582440 x6: 0x000000000000006e x7: 0x0000000000000800
x8: 0xa0731984927acb78 x9: 0xa0731985f922fb78 x10: 0x0000000000000002 x11: 0x000000000000000b
x12: 0x00000000f381e80f x13: 0x000000007381e800 x14: 0x0000000000000010 x15: 0x0000000000000002
x16: 0x0000000000000148 x17: 0x000000016b583000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000003703 x21: 0x000000016b5830e0 x22: 0x0000000000000000 x23: 0x000000016b5830e0
x24: 0x00000002817abee8 x25: 0x0000000000000000 x26: 0x0000000000000114 x27: 0x0000000000000000
x28: 0x0000000282ccc840 fp: 0x000000016b5823b0 lr: 0x00000001f215d378
sp: 0x000000016b582390 pc: 0x00000001b8cbf964 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x104c4c000 - 0x104e0ffff My_App arm64 <dee02279d86431709c9bd750b7483261> /private/var/containers/Bundle/Application/212B5311-CCE3-46F1-9F94-11BB09B4391D/My_App.app/My_App
0x104f8c000 - 0x104fe3fff dyld arm64e <f94ccc7a6d1a33c7997ff611a6caa7e0> /usr/lib/dyld
0x1813f3000 - 0x181439fff libdispatch.dylib arm64e <edd169e1d0db3808a19e99c1cd5a1c4c> /usr/lib/system/libdispatch.dylib
0x1816ec000 - 0x181b3ffff CoreFoundation arm64e <16faa70c278c3561859ecec407c2dc7c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x181f05000 - 0x1823c9fff CFNetwork arm64e <b63d7160ebc33de7b98bca51e08b72f1> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x182f0f000 - 0x183215fff Foundation arm64e <9618b2f2a4c23e07b7eed8d9e1bdeaec> /System/Library/Frameworks/Foundation.framework/Foundation
0x183b93000 - 0x18541dfff UIKitCore arm64e <cd7f7ba2a2c63727aff69baab60cc6ab> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x18ab18000 - 0x18ab41fff AudioSession arm64e <8fa06a47169f3f56bc5b2ad366ad8f9e> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession
0x18ab42000 - 0x18ad54fff AVFCore arm64e <f013e5685ba83213b017ab4381c03131> /System/Library/PrivateFrameworks/AVFCore.framework/AVFCore
0x18c629000 - 0x18c6a7fff libsystem_c.dylib arm64e <f3afe30409793cba8338bebe9722ecd8> /usr/lib/system/libsystem_c.dylib
0x199fab000 - 0x199fe4fff libobjc.A.dylib arm64e <73e920f0e7ce394197d87a10dd2cd390> /usr/lib/libobjc.A.dylib
0x19a0b5000 - 0x19a0cefff libc++abi.dylib arm64e <71b1e39fb291315daf46a4343e707387> /usr/lib/libc++abi.dylib
0x19d296000 - 0x19d29efff GraphicsServices arm64e <064a1bb60e413ad2a402fb563fc141f5> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x19ffa9000 - 0x1a013bfff libsqlite3.dylib arm64e <adece8478f3b3ba494e3901286e0af41> /usr/lib/libsqlite3.dylib
0x1a013c000 - 0x1a0238fff AVFCapture arm64e <2b0d03c3a03c371e946dc36ef8318451> /System/Library/PrivateFrameworks/AVFCapture.framework/AVFCapture
0x1b8cb8000 - 0x1b8cebfff libsystem_kernel.dylib arm64e <eb3e47f3395335839feefb6cff8a8d7a> /usr/lib/system/libsystem_kernel.dylib
0x1f2156000 - 0x1f2161fff libsystem_pthread.dylib arm64e <c5c27e9d955739c9b9c65f6e7323ee1c> /usr/lib/system/libsystem_pthread.dylib
EOF
In the crash log above, Hardware Model is iPhone12,5.
Why is there this discrepancy between the two? Just to mention, the above crash report was symoblicated using Xcode itself and then I copied it from Finder window. I have not used symoblicatecrash tool in Terminal. But using that too, it is the same.
Also, can someone help with the actual crash in this case? We have a CameraScanner class where we have implemented a feature to scan QRCode using AVCaptureSession. If required, I can copy some code too.

React Native app crashing on TestFlight Release

I'm able to run in release mode on my device and on simulator.
Not getting any issues when running with Zombies inspector tool.
Seems to be null dereference issue but cannot track it down.
How can I find out what location in code is causing this?
What next steps should I take to investigate or try to eliminate issues?
Also curious how I could figure out the function or line number for the log on line 8 for my app.
Incident Identifier: E41CBE15-1FAF-4ACD-88E1-E2A8D339E410
Beta Identifier: A11056FE-EF4C-40D8-B3A8-23E848FF818A
Hardware Model: iPhone14,2
Process: MyAppName [2067]
Path: /private/var/containers/Bundle/Application/78FD1DCF-EE86-4735-A7B7-BA62C038495E/MyAppName.app/MyAppName
Identifier: com.MyAppName.app
Version: 2.0.1 (7)
AppStoreTools: 13A1030d
AppVariant: 1:iPhone14,2:15
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyAppName.app [800]
Date/Time: 2021-11-23 14:20:29.9420 -0500
Launch Time: 2021-11-23 14:20:29.7755 -0500
OS Version: iPhone OS 15.1 (19B74)
Release Type: User
Baseband Version: 1.15.02
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000065
Exception Codes: 0x0000000000000001, 0x0000000000000065
VM Region Info: 0x65 is not in any region. Bytes before following region: 4374609819
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104bf4000-104bf8000 [ 16K] r-x/r-x SM=COW ...t.app/MyAppName
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL; [11]
Terminating Process: exc handler [2067]
Terminating Process: exc handler [2067]
Triggered by Thread: 8
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libobjc.A.dylib 0x1999a564c getMethodNoSuper_nolock(objc_class*, objc_selector*) + 400
1 libobjc.A.dylib 0x1999a54e8 getMethodNoSuper_nolock(objc_class*, objc_selector*) + 44
2 libobjc.A.dylib 0x1999a24a4 lookUpImpOrForward + 376
3 libobjc.A.dylib 0x19999da84 _objc_msgSend_uncached + 68
4 libobjc.A.dylib 0x1999a4d44 objc_alloc_init + 80
5 UIKitCore 0x183a7a948 -[UISheetPresentationController initWithPresentedViewController:presentingViewController:] + 180
6 UIKitCore 0x1837a1fd8 -[_UIRootPresentationController initWithPresentedViewController:presentingWindow:] + 80
7 UIKitCore 0x183a1d798 -[UIWindow setRootViewController:] + 484
8 MyAppName 0x104bf950c 0x104bf4000 + 21772
9 UIKitCore 0x183a73044 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 356
10 UIKitCore 0x183c5ab38 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3524
11 UIKitCore 0x183c434a4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1208
12 UIKitCore 0x183aa0e44 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
13 UIKitCore 0x1838f962c _UIScenePerformActionsWithLifecycleActionMask + 104
14 UIKitCore 0x183a24b7c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224
15 UIKitCore 0x183b45380 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
16 UIKitCore 0x183d85f8c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 760
17 UIKitCore 0x183d11710 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
18 UIKitCore 0x1838fa430 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
19 UIKitCore 0x1839ba350 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
20 UIKitCore 0x1838fc340 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
21 UIKitCore 0x1839e6df4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
22 UIKitCore 0x183e6e260 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.608 + 776
23 UIKitCore 0x18392ac60 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
24 UIKitCore 0x18396e524 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288
25 UIKitCore 0x183aa5d70 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 572
26 UIKitCore 0x1839e50b4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
27 FrontBoardServices 0x192e34e20 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
28 FrontBoardServices 0x192e5acdc __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128
29 FrontBoardServices 0x192e156b4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
30 FrontBoardServices 0x192e16cf4 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
31 libdispatch.dylib 0x180faf660 _dispatch_client_callout + 20
32 libdispatch.dylib 0x180fb3118 _dispatch_block_invoke_direct + 264
33 FrontBoardServices 0x192e16f94 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
34 FrontBoardServices 0x192e163d4 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
35 FrontBoardServices 0x192e1a9e4 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
36 CoreFoundation 0x18135f020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
37 CoreFoundation 0x18136fce0 __CFRunLoopDoSource0 + 208
38 CoreFoundation 0x1812aa054 __CFRunLoopDoSources0 + 376
39 CoreFoundation 0x1812af7f4 __CFRunLoopRun + 820
40 CoreFoundation 0x1812c33b8 CFRunLoopRunSpecific + 600
41 GraphicsServices 0x19cc5338c GSEventRunModal + 164
42 UIKitCore 0x183c636a8 -[UIApplication _run] + 1100
43 UIKitCore 0x1839e27f4 UIApplicationMain + 2092
44 MyAppName 0x104bf96b8 0x104bf4000 + 22200
45 dyld 0x105bc9a24 start + 520
Thread 1 name: Dispatch queue: com.facebook.react.ShadowQueue
Thread 1:
0 libsystem_kernel.dylib 0x1b82dd1a4 __ulock_wait + 8
1 libdispatch.dylib 0x180fb0054 _dlock_wait + 56
2 libdispatch.dylib 0x180fafdf8 _dispatch_thread_event_wait_slow + 56
3 libdispatch.dylib 0x180fbeb9c __DISPATCH_WAIT_FOR_QUEUE__ + 364
4 libdispatch.dylib 0x180fbe744 _dispatch_sync_f_slow + 144
5 MyAppName 0x104da5a54 0x104bf4000 + 1776212
6 MyAppName 0x104d8b0c0 0x104bf4000 + 1667264
7 libdispatch.dylib 0x180faf660 _dispatch_client_callout + 20
8 libdispatch.dylib 0x180fb0f08 _dispatch_once_callout + 32
9 MyAppName 0x104d8b09c 0x104bf4000 + 1667228
10 MyAppName 0x104d8b380 0x104bf4000 + 1667968
11 MyAppName 0x104d8044c 0x104bf4000 + 1623116
12 MyAppName 0x104d9b898 0x104bf4000 + 1734808
13 libdispatch.dylib 0x180fad914 _dispatch_call_block_and_release + 32
14 libdispatch.dylib 0x180faf660 _dispatch_client_callout + 20
15 libdispatch.dylib 0x180fb6de4 _dispatch_lane_serial_drain + 672
16 libdispatch.dylib 0x180fb7958 _dispatch_lane_invoke + 392
17 libdispatch.dylib 0x180fc21a8 _dispatch_workloop_worker_thread + 656
18 libsystem_pthread.dylib 0x1f1ec60f4 _pthread_wqthread + 288
19 libsystem_pthread.dylib 0x1f1ec5e94 start_wqthread + 8
Thread 2:
0 libsystem_pthread.dylib 0x1f1ec5e8c start_wqthread + 0
Thread 3 name: Dispatch queue: com.apple.accessibility.perappprefs.queue
Thread 3:
0 CoreFoundation 0x181369c3c _CFXNotificationRegistrarAddName + 652
1 CoreFoundation 0x181369be8 _CFXNotificationRegistrarAddName + 568
2 CoreFoundation 0x1812e8d9c CFXNotificationRegistrarAdd + 512
3 CoreFoundation 0x18131598c _CFXNotificationRegisterObserver + 248
4 CoreFoundation 0x1812f57d4 CFNotificationCenterAddObserver + 348
5 libdispatch.dylib 0x180fad914 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x180faf660 _dispatch_client_callout + 20
7 libdispatch.dylib 0x180fb6de4 _dispatch_lane_serial_drain + 672
8 libdispatch.dylib 0x180fb7958 _dispatch_lane_invoke + 392
9 libdispatch.dylib 0x180fc21a8 _dispatch_workloop_worker_thread + 656
10 libsystem_pthread.dylib 0x1f1ec60f4 _pthread_wqthread + 288
11 libsystem_pthread.dylib 0x1f1ec5e94 start_wqthread + 8
Thread 4 name: Dispatch queue: com.apple.UIKit.KeyboardManagement
Thread 4:
0 libsystem_kernel.dylib 0x1b82dd1a4 __ulock_wait + 8
1 libdispatch.dylib 0x180fb0054 _dlock_wait + 56
2 libdispatch.dylib 0x180fafdf8 _dispatch_thread_event_wait_slow + 56
3 libdispatch.dylib 0x180fbeb9c __DISPATCH_WAIT_FOR_QUEUE__ + 364
4 libdispatch.dylib 0x180fbe744 _dispatch_sync_f_slow + 144
5 UIKitCore 0x183abc398 __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 136
6 CoreFoundation 0x1812c62f4 __invoking___ + 148
7 CoreFoundation 0x1812e3ac4 -[NSInvocation invoke] + 468
8 Foundation 0x182afaf00 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 24
9 Foundation 0x182b1bda4 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 556
10 Foundation 0x182af6a84 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 212
11 libxpc.dylib 0x1f1efc32c _xpc_connection_reply_callout + 116
12 libxpc.dylib 0x1f1eef85c _xpc_connection_call_reply_async + 88
13 libdispatch.dylib 0x180faf6e0 _dispatch_client_callout3 + 20
14 libdispatch.dylib 0x180fccec8 _dispatch_mach_msg_async_reply_invoke + 348
15 libdispatch.dylib 0x180fb6cbc _dispatch_lane_serial_drain + 376
16 libdispatch.dylib 0x180fb798c _dispatch_lane_invoke + 444
17 libdispatch.dylib 0x180fc21a8 _dispatch_workloop_worker_thread + 656
18 libsystem_pthread.dylib 0x1f1ec60f4 _pthread_wqthread + 288
19 libsystem_pthread.dylib 0x1f1ec5e94 start_wqthread + 8
Thread 5:
0 libsystem_pthread.dylib 0x1f1ec5e8c start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x1f1ec5e8c start_wqthread + 0
Thread 7 name: com.apple.uikit.eventfetch-thread
Thread 7:
0 libsystem_kernel.dylib 0x1b82dc504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b82dcb9c mach_msg + 76
2 CoreFoundation 0x1812ab688 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1812af97c __CFRunLoopRun + 1212
4 CoreFoundation 0x1812c33b8 CFRunLoopRunSpecific + 600
5 Foundation 0x182ade354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x182b1fc28 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x183bdc8a4 -[UIEventFetcher threadMain] + 524
8 Foundation 0x182b2e36c __NSThread__start__ + 808
9 libsystem_pthread.dylib 0x1f1ec69a4 _pthread_start + 148
10 libsystem_pthread.dylib 0x1f1ec5ea0 thread_start + 8
Thread 8 name: com.facebook.react.JavaScript
Thread 8 Crashed:
0 JavaScriptCore 0x18c5a02b4 JSObjectSetProperty + 168
1 JavaScriptCore 0x18c5a029c JSObjectSetProperty + 144
2 MyAppName 0x104e1ad38 0x104bf4000 + 2256184
3 MyAppName 0x104cfdf78 0x104bf4000 + 1089400
4 MyAppName 0x104cfc4d8 0x104bf4000 + 1082584
5 MyAppName 0x104e23540 0x104bf4000 + 2291008
6 MyAppName 0x104e17dd0 0x104bf4000 + 2244048
7 MyAppName 0x104d63b30 0x104bf4000 + 1506096
8 MyAppName 0x104d6fcf4 0x104bf4000 + 1555700
9 MyAppName 0x104d6faa8 0x104bf4000 + 1555112
10 CoreFoundation 0x181316924 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
11 CoreFoundation 0x181317820 __CFRunLoopDoBlocks + 412
12 CoreFoundation 0x1812af808 __CFRunLoopRun + 840
13 CoreFoundation 0x1812c33b8 CFRunLoopRunSpecific + 600
14 MyAppName 0x104d58e44 0x104bf4000 + 1461828
15 Foundation 0x182b2e36c __NSThread__start__ + 808
16 libsystem_pthread.dylib 0x1f1ec69a4 _pthread_start + 148
17 libsystem_pthread.dylib 0x1f1ec5ea0 thread_start + 8
Thread 9 name: JavaScriptCore bmalloc scavenger
Thread 9:
0 libsystem_kernel.dylib 0x1b82dcf90 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1f1ecd254 _pthread_cond_wait + 1228
2 libc++.1.dylib 0x199a4be78 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 JavaScriptCore 0x18d3e8b10 bmalloc::Scavenger::threadRunLoop() + 704
4 JavaScriptCore 0x18d3e8544 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 16
5 JavaScriptCore 0x18d3e9a00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*) + 48
6 libsystem_pthread.dylib 0x1f1ec69a4 _pthread_start + 148
7 libsystem_pthread.dylib 0x1f1ec5ea0 thread_start + 8
Thread 8 crashed with ARM Thread State (64-bit):
x0: 0x0000000109ded980 x1: 0x0000000109ded97d x2: 0x0000000000000000 x3: 0x0000000109ded9ad
x4: 0x0000000000000000 x5: 0x000000016b665c18 x6: 0x0000000000000065 x7: 0x0000000000000000
x8: 0x0000000109e00000 x9: 0x0000000000000004 x10: 0x0000000000000000 x11: 0x0000000109ded97c
x12: 0x00000000669df065 x13: 0x0000000000000074 x14: 0x00000000d1a85000 x15: 0x0000000000085000
x16: 0x00000001f1ebda50 x17: 0x00000001dd3f8260 x18: 0x0000000000000000 x19: 0x0000000109d38068
x20: 0x000000016b665c18 x21: 0x0000000109e00000 x22: 0x0000000109d8d9b8 x23: 0x0000000000000065
x24: 0x0000000000000000 x25: 0x0000000109dce808 x26: 0x0000000106828040 x27: 0x0000000000000000
x28: 0x000000028265e7c0 fp: 0x000000016b665c00 lr: 0x894c9b818c5a029c
sp: 0x000000016b665b90 pc: 0x000000018c5a02b4 cpsr: 0x40001000
far: 0x0000000000000065 esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x19999c000 - 0x1999d5fff libobjc.A.dylib arm64e <10fa90c6dfe538aeb3dc2251181cc272> /usr/lib/libobjc.A.dylib
0x18374a000 - 0x184fcefff UIKitCore arm64e <8388eb03002b3b35a78a6a022894292e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x104bf4000 - 0x1055e3fff MyAppName arm64 <88e3b5ce9df93ebcb845ba7abd349e08> /private/var/containers/Bundle/Application/78FD1DCF-EE86-4735-A7B7-BA62C038495E/MyAppName.app/MyAppName
0x192e0b000 - 0x192eb6fff FrontBoardServices arm64e <6fdec0c3e5003e06948ee34bda520801> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x180fab000 - 0x180ff1fff libdispatch.dylib arm64e <a5cbaab3e3893548baacfab18411b94a> /usr/lib/system/libdispatch.dylib
0x1812a4000 - 0x1816f7fff CoreFoundation arm64e <b2d21cfd378c36d5baf73f70599cfefc> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x19cc52000 - 0x19cc5afff GraphicsServices arm64e <44e4515eb18737f18fe028e7b087daf5> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x105bb0000 - 0x105c07fff dyld arm64e <c21dba379df93fc7b286734030e18bb1> /usr/lib/dyld
0x1b82db000 - 0x1b830efff libsystem_kernel.dylib arm64e <b1b942de75903c61980a19d80ed4da37> /usr/lib/system/libsystem_kernel.dylib
0x1f1ec5000 - 0x1f1ed0fff libsystem_pthread.dylib arm64e <1a4a45fd1bb639df84140590ce103717> /usr/lib/system/libsystem_pthread.dylib
0x182ac6000 - 0x182dcbfff Foundation arm64e <d59c69755af237bc93be43b80b4293a5> /System/Library/Frameworks/Foundation.framework/Foundation
0x1f1ee0000 - 0x1f1f17fff libxpc.dylib arm64e <c4b164ee546f365786ee230d897ef6a0> /usr/lib/system/libxpc.dylib
0x18c232000 - 0x18d4f2fff JavaScriptCore arm64e <488fd070baee3b55ac28cee0d299f2b2> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
0x199a42000 - 0x199aa5fff libc++.1.dylib arm64e <255864c483d93bac8c7aad1b2d8a60cc> /usr/lib/libc++.1.dylib
0x0 - 0xffffffffffffffff ??? unknown-arch <00000000000000000000000000000000> ???
EOF
You can use sentry to see the logs for production app :
https://docs.sentry.io/platforms/react-native/

EXC_BAD_ACCESS, Using NSZombies to track down

I have got a EXC_BAD_ACCESS error while dismissing a view controller on device.
But strangely this does not happen in simulator.
The Question: I am using the Instruments and NSZombies enabled and here is the report at the error. I am not getting heads and tails out of it. I understand that this shows the ref Count +es and -es. But where is my code that generated this error? All I see is that the responsible caller are UIVIews, CATransactions, where is my code?
THE CRASH LOG
Thread 0:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e9c __CFRunLoopRun + 932
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 itunesstored 0x00000001000bfe14 0x1000b0000 + 65044
5 libdyld.dylib 0x00000001922f3a9c start + 0
Thread 1:
0 libsystem_kernel.dylib 0x00000001923d5ac8 kevent64 + 8
1 libdispatch.dylib 0x00000001922d9d74 _dispatch_mgr_thread + 48
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e38 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 Foundation 0x00000001864be7f8 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018654c76c __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x00000001924701ac _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000192470104 _pthread_start + 136
8 libsystem_pthread.dylib 0x000000019246d7ac thread_start + 0
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x00000001923ee76c select$DARWIN_EXTSN + 8
1 libsystem_pthread.dylib 0x00000001924701ac _pthread_body + 164
2 libsystem_pthread.dylib 0x0000000192470104 _pthread_start + 136
3 libsystem_pthread.dylib 0x000000019246d7ac thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x00000001923ee394 __psynch_cvwait + 8
1 MobileSystemServices 0x000000018bc8d53c MOXPCTransportReceiveMessage + 268 2 MobileInstallation 0x000000018bc48900 perform_command + 280
3 MobileInstallation 0x000000018bc491e8 MobileInstallationLookup + 388
4 itunesstored 0x00000001000e985c 0x1000b0000 + 235612
5 libdispatch.dylib 0x00000001922d841c _dispatch_call_block_and_release + 20
6 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
7 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
8 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
9 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
10 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e38 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 iTunesStore 0x00000001903c2a58 -[ISOperation runRunLoopUntilStopped] + 200
5 iTunesStore 0x00000001903c9f84 -[ISURLOperation _runRequestWithURL:] + 1256
6 iTunesStore 0x00000001903c9a30 -[ISURLOperation _run] + 428
7 iTunesStore 0x00000001903c5588 -[ISURLOperation run] + 328
8 iTunesStore 0x00000001903d2324 -[ISStoreURLOperation _runURLOperation] + 696
9 iTunesStore 0x00000001903d0b68 -[ISStoreURLOperation run] + 568
10 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
11 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
12 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
13 iTunesStore 0x00000001903ce928 -[ISLoadURLBagOperation run] + 884
14 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
15 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
16 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
17 iTunesStore 0x00000001903d1f74 -[ISStoreURLOperation _resolvedURLInBagContext:URLBag:] + 104
18 iTunesStore 0x00000001903d20e4 -[ISStoreURLOperation _runURLOperation] + 120
19 iTunesStore 0x00000001903d0b68 -[ISStoreURLOperation run] + 568
20 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
21 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
22 Foundation 0x0000000186474d34 -[__NSOperationInternal _start:] + 640
23 Foundation 0x0000000186536d78 __NSOQSchedule_f + 72
24 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
25 libdispatch.dylib 0x00000001922dd92c _dispatch_async_redirect_invoke + 148
26 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
27 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
28 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
29 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
30 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 7 name: Data corruption: Malformed Mach message or kernel bug.
Thread 7 Crashed:
0 libxpc.dylib 0x0000000192488f9c _xpc_connection_mach_event + 1992
1 libdispatch.dylib 0x00000001922d84b0 _dispatch_client_callout4 + 12
2 libdispatch.dylib 0x00000001922dabdc _dispatch_mach_msg_invoke + 148
3 libdispatch.dylib 0x00000001922de698 _dispatch_queue_drain + 456
4 libdispatch.dylib 0x00000001922da620 _dispatch_mach_invoke + 104
5 libdispatch.dylib 0x00000001922dd8d0 _dispatch_async_redirect_invoke + 56
6 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
7 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
8 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
9 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
10 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x00000001923ee3dc __psynch_mutexwait + 8
1 Foundation 0x000000018645b958 -[NSLock lock] + 152
2 iTunesStore 0x00000001903e7760 ISUniqueOperationLock + 228
3 iTunesStore 0x00000001903c3408 -[ISOperation main] + 96
4 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
5 iTunesStore 0x00000001903cf438 -[ISOperation(ISLoadURLBagAdditions) loadURLBagWithContext:returningError:] + 112
6 itunesstored 0x00000001001046e0 0x1000b0000 + 345824
7 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
8 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
9 Foundation 0x0000000186474d34 -[__NSOperationInternal _start:] + 640
10 Foundation 0x0000000186536d78 __NSOQSchedule_f + 72
11 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
12 libdispatch.dylib 0x00000001922dd92c _dispatch_async_redirect_invoke + 148
13 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
14 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
15 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
16 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
17 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 9:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 7 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000036 x1: 0x0000000000000037 x2: 0x00000001924a516e x3: 0x0000000000000037
x4: 0x0000000102263bc8 x5: 0x0000000000000036 x6: 0x0000000000000000 x7: 0x0000000000000110
x8: 0x7300ae44061c0155 x9: 0x7300ae44061c0155 x10: 0x0000000102263bc8 x11: 0x0000000000000000
x12: 0x000000000000006f x13: 0x000000019239e3d1 x14: 0x000000000000005f x15: 0x000000019239be4b
x16: 0x0000000192468e90 x17: 0x0021c35bf1cc0111 x18: 0x0000000000000000 x19: 0x0000000147db6140
x20: 0x0000000147e999f0 x21: 0x0000000147e34d80 x22: 0x000000001000000c x23: 0x0000000147d8aa00
x24: 0x00000001022640e0 x25: 0x0000000147d436d0 x26: 0x0000000000020001 x27: 0x000000000000000a
x28: 0x00000001022640e0 fp: 0x0000000102263d50 lr: 0x0000000192488f9c sp: 0x0000000102263c80
pc: 0x0000000192488f9c cpsr: 0x60000000
Your application is crashing with the message “Data corruption: Malformed Mach message or kernel bug”. Either that means what it says (in which case the bug is most likely not yours), or (more likely IMO) you’re tramping on memory you don’t own. Finding memory overwrites is hard, but Apple provides tools to help you — see TN2124.
I’d try enabling MallocGuardEdges et al in the simulator and see if you crash (you can do this from Xcode in the Scheme configuration.) Alternatively, you could try enabling Guard Malloc and that might also help.

Resources