transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.63k stars 426 forks source link

iOS crashes when start the app #1704

Closed socheatleang closed 1 year ago

socheatleang commented 1 year ago

Your Environment


## Expected Behavior
Should start the iOS app without crashing.

## Actual Behavior
The android works as expected.  Only iOS crash when start the application.

## Steps to Reproduce
<!--- reproduce this issue; include code to reproduce, if relevant -->
1. expo start --dev-client => Make the app crash when start the app
2. expo start (Run expo-go)=> get the log trace below

## Context
<!--- What were you trying to do? -->

## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat -s TSLocationManager
-->
<details><summary>Logs</summary>

``` <!-- Syntax highlighting:  DO NOT REMOVE -->
Invariant Violation: Your JavaScript code tried to access a native module that doesn't exist. 

If you're trying to use a module that is not supported in Expo Go, you need to create a development build of your app. See https://docs.expo.dev/development/introduction/ for more info.
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:17 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:39 in handleError
at node_modules/expo/build/errors/ExpoErrorManager.js:25:19 in errorHandler
at node_modules/expo/build/errors/ExpoErrorManager.js:30:24 in <anonymous>
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:203:40 in guardedLoadModule
at http://192.168.1.58:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:null in global code

Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:17 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:39 in handleError
at node_modules/expo/build/errors/ExpoErrorManager.js:25:19 in errorHandler
at node_modules/expo/build/errors/ExpoErrorManager.js:30:24 in <anonymous>
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError

christocracy commented 1 year ago

You did not Re-build your app after configuring the Expo Setup.

See the last portion of the Expo Setup: "Re-build": https://github.com/transistorsoft/react-native-background-geolocation/blob/master/help/INSTALL-EXPO.md#re-build

socheatleang commented 1 year ago

I am sure, I did it @christocracy . I have tried few times.

christocracy commented 1 year ago

I have tried few times.

Show me your logs of that.

socheatleang commented 1 year ago

What kind of log do you prefer?

christocracy commented 1 year ago

The logs in terminal of you “trying a few times”.

socheatleang commented 1 year ago

I am using Expo EAS.

socheatleang commented 1 year ago

Here is the log. Hope that this is the log that you asked for. https://files-360wellness-dev.s3.ap-southeast-1.amazonaws.com/xcode-build-90f1673e-2517-4203-a7ef-2079e5e09578.log

christocracy commented 1 year ago

At the end of your log files:

** ARCHIVE SUCCEEDED **

iOS crashes when start the app

Now post the iOS stacktrace when your app crashes. This is easily done by launching your app in XCode or viewing the crash log in XCode via Window -> Devices and Simulators -> [View Device Logs].

Screenshot 2023-06-12 at 10 52 05 AM
christocracy commented 1 year ago

btw, are you sure you fully implemented the required iOS Expo Setup for Usage Descriptions?

socheatleang commented 1 year ago

Here is the crash log. @christocracy . I am using xcode 14.1 to build it.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: 7353DC65-84BD-4F22-81B9-F75C5063EEE7
CrashReporter Key:   F66A6A2F-1253-B31D-D83E-B4BE854C0945
Hardware Model:      MacBookPro18,3
Process:             DEFITDEV [40746]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/EF7E52AF-2B85-4860-A215-F6DD90EC1189/data/Containers/Bundle/Application/CF7C9998-37BF-46D9-83CE-D9160E6C7C37/DEFITDEV.app/DEFITDEV
Identifier:          com.defit.app.uat
Version:             0.4.0 (5)
Code Type:           X86-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [38250]
Coalition:           com.apple.CoreSimulator.SimDevice.EF7E52AF-2B85-4860-A215-F6DD90EC1189 [40587]
Responsible Process: SimulatorTrampoline [38158]

Date/Time:           2023-06-13 13:43:13.5219 +0700
Launch Time:         2023-06-13 13:43:11.5647 +0700
OS Version:          macOS 13.0 (22A380)
Release Type:        User
Report Version:      104

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

Last Exception Backtrace:
0   CoreFoundation                         0x115fe389b __exceptionPreprocess + 226
1   libobjc.A.dylib                        0x1117c5ba3 objc_exception_throw + 48
2   CoreFoundation                         0x115ff2ab8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3   CoreFoundation                         0x115fe7d71 ___forwarding___ + 1431
4   CoreFoundation                         0x115fea068 _CF_forwarding_prep_0 + 120
5   DEFITDEV                               0x105a02c31 -[TSBackgroundFetch didFinishLaunching] + 209
6   DEFITDEV                               0x104861deb -[AppDelegate application:didFinishLaunchingWithOptions:] + 1259
7   UIKitCore                              0x128a5c663 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 271
8   UIKitCore                              0x128a5e507 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4257
9   UIKitCore                              0x128a642e3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1236
10  UIKitCore                              0x127e908ac -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
11  UIKitCore                              0x1285051e1 _UIScenePerformActionsWithLifecycleActionMask + 88
12  UIKitCore                              0x127e913a6 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
13  UIKitCore                              0x127e90de3 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 252
14  UIKitCore                              0x127e911dc -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 831
15  UIKitCore                              0x127e90a89 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 354
16  UIKitCore                              0x127e9f8f5 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 178
17  UIKitCore                              0x1283d5947 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 833
18  UIKitCore                              0x1285232a3 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 257
19  UIKitCore                              0x127e9f575 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 348
20  UIKitCore                              0x127c825ae __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.594 + 815
21  UIKitCore                              0x127c80fc4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 245
22  UIKitCore                              0x127c8215b -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 255
23  UIKitCore                              0x128a62ae9 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 733
24  UIKitCore                              0x12840836b -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 350
25  FrontBoardServices                     0x11f41ab3b -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 415
26  FrontBoardServices                     0x11f4497ba __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.187 + 102
27  FrontBoardServices                     0x11f428b8a -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
28  FrontBoardServices                     0x11f4493af __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 344
29  libdispatch.dylib                      0x118f23a3a _dispatch_client_callout + 8
30  libdispatch.dylib                      0x118f274bf _dispatch_block_invoke_direct + 484
31  FrontBoardServices                     0x11f46fbb8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
32  FrontBoardServices                     0x11f46faae -[FBSSerialQueue _targetQueue_performNextIfPossible] + 174
33  FrontBoardServices                     0x11f46fbe0 -[FBSSerialQueue _performNextFromRunLoopSource] + 19
34  CoreFoundation                         0x115f42fe5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
35  CoreFoundation                         0x115f42f24 __CFRunLoopDoSource0 + 157
36  CoreFoundation                         0x115f42721 __CFRunLoopDoSources0 + 212
37  CoreFoundation                         0x115f3ce23 __CFRunLoopRun + 927
38  CoreFoundation                         0x115f3c6a7 CFRunLoopRunSpecific + 560
39  GraphicsServices                       0x11e6d628a GSEventRunModal + 139
40  UIKitCore                              0x128a60ad3 -[UIApplication _run] + 994
41  UIKitCore                              0x128a659ef UIApplicationMain + 123
42  DEFITDEV                               0x104862800 main + 96
43  dyld_sim                               0x1111b42bf start_sim + 10
44  dyld                                   0x208f2b310 start + 2432

Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   ???                                    0x108b7b9a8 ???
1   <translation info unavailable>         0x109a05e3c ???
2   libsystem_pthread.dylib                0x119da7f7b pthread_kill + 263
3   libsystem_c.dylib                      0x11ad84fe0 abort + 130
4   libc++abi.dylib                        0x1112d2742 abort_message + 241
5   libc++abi.dylib                        0x1112c395d demangling_terminate_handler() + 266
6   libobjc.A.dylib                        0x1117aa082 _objc_terminate() + 96
7   libc++abi.dylib                        0x1112d1b65 std::__terminate(void (*)()) + 8
8   libc++abi.dylib                        0x1112d1b16 std::terminate() + 54
9   libdispatch.dylib                      0x118f23a4e _dispatch_client_callout + 28
10  libdispatch.dylib                      0x118f274bf _dispatch_block_invoke_direct + 484
11  FrontBoardServices                     0x11f46fbb8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
12  FrontBoardServices                     0x11f46faae -[FBSSerialQueue _targetQueue_performNextIfPossible] + 174
13  FrontBoardServices                     0x11f46fbe0 -[FBSSerialQueue _performNextFromRunLoopSource] + 19
14  CoreFoundation                         0x115f42fe5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
15  CoreFoundation                         0x115f42f24 __CFRunLoopDoSource0 + 157
16  CoreFoundation                         0x115f42721 __CFRunLoopDoSources0 + 212
17  CoreFoundation                         0x115f3ce23 __CFRunLoopRun + 927
18  CoreFoundation                         0x115f3c6a7 CFRunLoopRunSpecific + 560
19  GraphicsServices                       0x11e6d628a GSEventRunModal + 139
20  UIKitCore                              0x128a60ad3 -[UIApplication _run] + 994
21  UIKitCore                              0x128a659ef UIApplicationMain + 123
22  DEFITDEV                               0x104862800 main + 96
23  dyld_sim                               0x1111b42bf start_sim + 10
24  dyld                                   0x208f2b310 start + 2432

Thread 1:: com.apple.rosetta.exceptionserver
0   ???                                 0x7ff7ffeed750 ???
1   ???                                 0x7ff7fff05b94 ???

Thread 2:
0   ???                                 0x7ff7fff0b87c ???

Thread 3:
0   ???                                 0x7ff7fff0b87c ???

Thread 4:
0   ???                                 0x7ff7fff0b87c ???

Thread 5:: com.apple.uikit.eventfetch-thread
0   ???                                    0x108b7b9a8 ???
1   <translation info unavailable>         0x108c7186c ???
2   libsystem_kernel.dylib                 0x11adc967d mach_msg2_internal + 82
3   libsystem_kernel.dylib                 0x11adc271a mach_msg_overwrite + 723
4   libsystem_kernel.dylib                 0x11adbb989 mach_msg + 19
5   CoreFoundation                         0x115f4288e __CFRunLoopServiceMachPort + 145
6   CoreFoundation                         0x115f3cfdf __CFRunLoopRun + 1371
7   CoreFoundation                         0x115f3c6a7 CFRunLoopRunSpecific + 560
8   Foundation                             0x1175458b4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
9   Foundation                             0x117545b2d -[NSRunLoop(NSRunLoop) runUntilDate:] + 72
10  UIKitCore                              0x128b36286 -[UIEventFetcher threadMain] + 535
11  Foundation                             0x11756f11b __NSThread__start__ + 1009
12  libsystem_pthread.dylib                0x119da8259 _pthread_start + 125
13  libsystem_pthread.dylib                0x119da3c7b thread_start + 15

Thread 6:
0   ???                                 0x7ff7fff0b87c ???

Thread 7::  Dispatch queue: com.apple.UIKit.KeyboardManagement
0   ???                                    0x108b7b9a8 ???
1   <translation info unavailable>         0x108fbd9ac ???
2   libdispatch.dylib                      0x118f241cb _dlock_wait + 45
3   libdispatch.dylib                      0x118f2402d _dispatch_thread_event_wait_slow + 40
4   libdispatch.dylib                      0x118f3442c __DISPATCH_WAIT_FOR_QUEUE__ + 358
5   libdispatch.dylib                      0x118f33f8b _dispatch_sync_f_slow + 202
6   UIKitCore                              0x128877415 __37-[_UIRemoteKeyboards startConnection]_block_invoke_2 + 118
7   CoreFoundation                         0x115fea2fc __invoking___ + 140
8   CoreFoundation                         0x115fe7529 -[NSInvocation invoke] + 305
9   Foundation                             0x1176420be __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 17
10  Foundation                             0x117641c95 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 629
11  Foundation                             0x11764690b __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 205
12  libxpc.dylib                           0x11aebad0b _xpc_connection_reply_callout + 36
13  libxpc.dylib                           0x11aeafbbd _xpc_connection_call_reply_async + 69
14  libdispatch.dylib                      0x118f23aa0 _dispatch_client_callout3 + 8
15  libdispatch.dylib                      0x118f4375e _dispatch_mach_msg_async_reply_invoke + 630
16  libdispatch.dylib                      0x118f2b0fb _dispatch_lane_serial_drain + 362
17  libdispatch.dylib                      0x118f2c01a _dispatch_lane_invoke + 455
18  libdispatch.dylib                      0x118f38b46 _dispatch_workloop_worker_thread + 870
19  libsystem_pthread.dylib                0x119da4ce3 _pthread_wqthread + 326
20  libsystem_pthread.dylib                0x119da3c67 start_wqthread + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x000000011ad903d0  rsi: 0x0000000000000003  rbp: 0x0000000311876b30  rsp: 0x00000003118768d0
   r8: 0x0000000208fc92c0   r9: 0x0000000311876b30  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000103  r13: 0x0000003000000008  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: <unavailable>       rfl: 0x0000000000000283
 tmp0: 0xffffffffffffffff tmp1: 0x0000000108b7b97c tmp2: 0x000000014f502410

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x119da2000 -        0x119dadfff libsystem_pthread.dylib (*) <13b5e252-77d1-31e1-888d-1c5f4426ea87> /usr/lib/system/libsystem_pthread.dylib
       0x11ad07000 -        0x11ad8bfff libsystem_c.dylib (*) <8a60f5c1-ea1f-352b-b778-967be44e3677> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib
       0x1112c2000 -        0x1112d7fff libc++abi.dylib (*) <ae8cbd53-0926-3251-b648-6f32d9330a50> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++abi.dylib
       0x1117a4000 -        0x1117d7fff libobjc.A.dylib (*) <2a7a213a-fdb2-311c-81d7-efdfd9ddf25a> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib
       0x118f21000 -        0x118f6cfff libdispatch.dylib (*) <59be51c1-e9f3-3a60-8108-cd70ae082897> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib
       0x11f412000 -        0x11f4b5fff com.apple.FrontBoardServices (812.12) <6968144a-2ef3-3bce-a99a-d52e343b87ca> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
       0x115ebe000 -        0x116246fff com.apple.CoreFoundation (6.9) <2be0f79f-8b25-3614-9e7e-dbac565f72dd> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x11e6d3000 -        0x11e6dafff com.apple.GraphicsServices (1.0) <16365e42-1d5c-363d-84d1-3bb290a43253> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x127c1f000 -        0x1296eafff com.apple.UIKitCore (1.0) <adb282b1-2fb2-38e0-8492-47f9443eb1ef> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x10485d000 -        0x105e30fff com.defit.app.uat (0.4.0) <3310cfd2-c752-3864-b738-6e0398976346> /Users/USER/Library/Developer/CoreSimulator/Devices/EF7E52AF-2B85-4860-A215-F6DD90EC1189/data/Containers/Bundle/Application/CF7C9998-37BF-46D9-83CE-D9160E6C7C37/DEFITDEV.app/DEFITDEV
       0x1111b2000 -        0x111211fff dyld_sim (*) <6fb74554-3370-3677-93d4-7f7a01ea6a80> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
       0x208f25000 -        0x208fbcfff dyld (*) <0f050705-2258-3d40-b7bc-f3b35a44bbea> /usr/lib/dyld
       0x11adba000 -        0x11adf5fff libsystem_kernel.dylib (*) <0c2fd2c9-777c-3355-b70f-7b1b6e9d1b0b> /usr/lib/system/libsystem_kernel.dylib
       0x116fed000 -        0x11791dfff com.apple.Foundation (6.9) <86cd050d-44fc-3045-a1f3-8ad5047b329e> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation
       0x11aea3000 -        0x11aedbfff libxpc.dylib (*) <81ae956f-2354-36fa-b9f2-0c4e39462edd> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libxpc.dylib

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF

-----------
Full Report
-----------

{"app_name":"DEFITDEV","timestamp":"2023-06-13 13:43:21.00 +0700","app_version":"0.4.0","slice_uuid":"3310cfd2-c752-3864-b738-6e0398976346","build_version":"5","platform":7,"bundleID":"com.defit.app.uat","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.0 (22A380)","roots_installed":0,"name":"DEFITDEV","incident_id":"7353DC65-84BD-4F22-81B9-F75C5063EEE7"}
{
  "uptime" : 200000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 40587,
  "osVersion" : {
    "train" : "macOS 13.0",
    "build" : "22A380",
    "releaseType" : "User"
  },
  "captureTime" : "2023-06-13 13:43:13.5219 +0700",
  "incident" : "7353DC65-84BD-4F22-81B9-F75C5063EEE7",
  "pid" : 40746,
  "translated" : true,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-06-13 13:43:11.5647 +0700",
  "procStartAbsTime" : 4979325011726,
  "procExitAbsTime" : 4979371949604,
  "procName" : "DEFITDEV",
  "procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/EF7E52AF-2B85-4860-A215-F6DD90EC1189\/data\/Containers\/Bundle\/Application\/CF7C9998-37BF-46D9-83CE-D9160E6C7C37\/DEFITDEV.app\/DEFITDEV",
  "bundleInfo" : {"CFBundleShortVersionString":"0.4.0","CFBundleVersion":"5","CFBundleIdentifier":"com.defit.app.uat"},
  "storeInfo" : {"deviceIdentifierForVendor":"59686A58-2A4D-57E1-93D8-994021E1EF27","thirdParty":true},
  "parentProc" : "launchd_sim",
  "parentPid" : 38250,
  "coalitionName" : "com.apple.CoreSimulator.SimDevice.EF7E52AF-2B85-4860-A215-F6DD90EC1189",
  "crashReporterKey" : "F66A6A2F-1253-B31D-D83E-B4BE854C0945",
  "responsiblePid" : 38158,
  "responsibleProc" : "SimulatorTrampoline",
  "wakeTime" : 287,
  "sleepWakeUUID" : "63484A17-7165-420E-B0BA-2D1E3AE2290B",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
  "asiBacktraces" : ["0   CoreFoundation                      0x0000000115fe38ab __exceptionPreprocess + 242\n1   libobjc.A.dylib                     0x00000001117c5ba3 objc_exception_throw + 48\n2   CoreFoundation                      0x0000000115ff2ab8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0\n3   CoreFoundation                      0x0000000115fe7d71 ___forwarding___ + 1431\n4   CoreFoundation                      0x0000000115fea068 _CF_forwarding_prep_0 + 120\n5   DEFITDEV                            0x0000000105a02c31 -[TSBackgroundFetch didFinishLaunching] + 209\n6   DEFITDEV                            0x0000000104861deb -[AppDelegate application:didFinishLaunchingWithOptions:] + 1259\n7   UIKitCore                           0x0000000128a5c663 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 271\n8   UIKitCore                           0x0000000128a5e507 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4257\n9   UIKitCore                           0x0000000128a642e3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1236\n10  UIKitCore                           0x0000000127e908ac -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122\n11  UIKitCore                           0x00000001285051e1 _UIScenePerformActionsWithLifecycleActionMask + 88\n12  UIKitCore                           0x0000000127e913a6 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198\n13  UIKitCore                           0x0000000127e90de3 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 252\n14  UIKitCore                           0x0000000127e911dc -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 831\n15  UIKitCore                           0x0000000127e90a89 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 354\n16  UIKitCore                           0x0000000127e9f8f5 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 178\n17  UIKitCore                           0x00000001283d5947 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 833\n18  UIKitCore                           0x00000001285232a3 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 257\n19  UIKitCore                           0x0000000127e9f575 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 348\n20  UIKitCore                           0x0000000127c825ae __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.594 + 815\n21  UIKitCore                           0x0000000127c80fc4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 245\n22  UIKitCore                           0x0000000127c8215b -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 255\n23  UIKitCore                           0x0000000128a62ae9 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 733\n24  UIKitCore                           0x000000012840836b -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 350\n25  FrontBoardServices                  0x000000011f41ab3b -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 415\n26  FrontBoardServices                  0x000000011f4497ba __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.187 + 102\n27  FrontBoardServices                  0x000000011f428b8a -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209\n28  FrontBoardServices                  0x000000011f4493af __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 344\n29  libdispatch.dylib                   0x0000000118f23a3a _dispatch_client_callout + 8\n30  libdispatch.dylib                   0x0000000118f274bf _dispatch_block_invoke_direct + 484\n31  FrontBoardServices                  0x000000011f46fbb8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30\n32  FrontBoardServices                  0x000000011f46faae -[FBSSerialQueue _targetQueue_performNextIfPossible] + 174\n33  FrontBoardServices                  0x000000011f46fbe0 -[FBSSerialQueue _performNextFromRunLoopSource] + 19\n34  CoreFoundation                      0x0000000115f42fe5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\n35  CoreFoundation                      0x0000000115f42f24 __CFRunLoopDoSource0 + 157\n36  CoreFoundation                      0x0000000115f42721 __CFRunLoopDoSources0 + 212\n37  CoreFoundation                      0x0000000115f3ce23 __CFRunLoopRun + 927\n38  CoreFoundation                      0x0000000115f3c6a7 CFRunLoopRunSpecific + 560\n39  GraphicsServices                    0x000000011e6d628a GSEventRunModal + 139\n40  UIKitCore                           0x0000000128a60ad3 -[UIApplication _run] + 994\n41  UIKitCore                           0x0000000128a659ef UIApplicationMain + 123\n42  DEFITDEV                            0x0000000104862800 main + 96\n43  dyld                                0x00000001111b42bf start_sim + 10\n44  ???                                 0x0000000208f2b310 0x0 + 8740057872"],
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "lastExceptionBacktrace" : [{"imageOffset":1202331,"symbol":"__exceptionPreprocess","symbolLocation":226,"imageIndex":7},{"imageOffset":138147,"symbol":"objc_exception_throw","symbolLocation":48,"imageIndex":4},{"imageOffset":1264312,"symbol":"+[NSObject(NSObject) instanceMethodSignatureForSelector:]","symbolLocation":0,"imageIndex":7},{"imageOffset":1219953,"symbol":"___forwarding___","symbolLocation":1431,"imageIndex":7},{"imageOffset":1228904,"symbol":"_CF_forwarding_prep_0","symbolLocation":120,"imageIndex":7},{"imageOffset":18504753,"symbol":"-[TSBackgroundFetch didFinishLaunching]","symbolLocation":209,"imageIndex":10},{"imageOffset":19947,"symbol":"-[AppDelegate application:didFinishLaunchingWithOptions:]","symbolLocation":1259,"imageIndex":10},{"imageOffset":14931555,"symbol":"-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]","symbolLocation":271,"imageIndex":9},{"imageOffset":14939399,"symbol":"-[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:]","symbolLocation":4257,"imageIndex":9},{"imageOffset":14963427,"symbol":"-[UIApplication _runWithMainScene:transitionContext:completion:]","symbolLocation":1236,"imageIndex":9},{"imageOffset":2562220,"symbol":"-[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:]","symbolLocation":122,"imageIndex":9},{"imageOffset":9331169,"symbol":"_UIScenePerformActionsWithLifecycleActionMask","symbolLocation":88,"imageIndex":9},{"imageOffset":2565030,"symbol":"__101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke","symbolLocation":198,"imageIndex":9},{"imageOffset":2563555,"symbol":"-[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]","symbolLocation":252,"imageIndex":9},{"imageOffset":2564572,"symbol":"-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]","symbolLocation":831,"imageIndex":9},{"imageOffset":2562697,"symbol":"-[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]","symbolLocation":354,"imageIndex":9},{"imageOffset":2623733,"symbol":"__186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke","symbolLocation":178,"imageIndex":9},{"imageOffset":8087879,"symbol":"+[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:]","symbolLocation":833,"imageIndex":9},{"imageOffset":9454243,"symbol":"_UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion","symbolLocation":257,"imageIndex":9},{"imageOffset":2622837,"symbol":"-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]","symbolLocation":348,"imageIndex":9},{"imageOffset":406958,"symbol":"__64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.594","symbolLocation":815,"imageIndex":9},{"imageOffset":401348,"symbol":"-[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]","symbolLocation":245,"imageIndex":9},{"imageOffset":405851,"symbol":"-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]","symbolLocation":255,"imageIndex":9},{"imageOffset":14957289,"symbol":"-[UIApplication workspace:didCreateScene:withTransitionContext:completion:]","symbolLocation":733,"imageIndex":9},{"imageOffset":8295275,"symbol":"-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]","symbolLocation":350,"imageIndex":9},{"imageOffset":35643,"symbol":"-[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:]","symbolLocation":415,"imageIndex":6},{"imageOffset":227258,"symbol":"__92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.187","symbolLocation":102,"imageIndex":6},{"imageOffset":93066,"symbol":"-[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]","symbolLocation":209,"imageIndex":6},{"imageOffset":226223,"symbol":"__92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke","symbolLocation":344,"imageIndex":6},{"imageOffset":10810,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":5},{"imageOffset":25791,"symbol":"_dispatch_block_invoke_direct","symbolLocation":484,"imageIndex":5},{"imageOffset":383928,"symbol":"__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":30,"imageIndex":6},{"imageOffset":383662,"symbol":"-[FBSSerialQueue _targetQueue_performNextIfPossible]","symbolLocation":174,"imageIndex":6},{"imageOffset":383968,"symbol":"-[FBSSerialQueue _performNextFromRunLoopSource]","symbolLocation":19,"imageIndex":6},{"imageOffset":544741,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":17,"imageIndex":7},{"imageOffset":544548,"symbol":"__CFRunLoopDoSource0","symbolLocation":157,"imageIndex":7},{"imageOffset":542497,"symbol":"__CFRunLoopDoSources0","symbolLocation":212,"imageIndex":7},{"imageOffset":519715,"symbol":"__CFRunLoopRun","symbolLocation":927,"imageIndex":7},{"imageOffset":517799,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":7},{"imageOffset":12938,"symbol":"GSEventRunModal","symbolLocation":139,"imageIndex":8},{"imageOffset":14949075,"symbol":"-[UIApplication _run]","symbolLocation":994,"imageIndex":9},{"imageOffset":14969327,"symbol":"UIApplicationMain","symbolLocation":123,"imageIndex":9},{"imageOffset":22528,"symbol":"main","symbolLocation":96,"imageIndex":10},{"imageOffset":8895,"symbol":"start_sim","symbolLocation":10,"imageIndex":11},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":12}],
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":3390844,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":13178989360},"r12":{"value":259},"rosetta":{"tmp2":{"value":5625619472},"tmp1":{"value":4441225596},"tmp0":{"value":18446744073709551615}},"rbx":{"value":0},"r8":{"value":8740704960,"symbolLocation":0,"symbol":"_main_thread"},"r15":{"value":22},"r10":{"value":0},"rdx":{"value":0},"rdi":{"value":4745397200,"symbolLocation":0,"symbol":"__stderrp"},"r9":{"value":13178989360},"r13":{"value":206158430216},"rflags":{"value":643},"rax":{"value":0},"rsp":{"value":13178988752},"r11":{"value":0},"rcx":{"value":0},"r14":{"value":6},"rsi":{"value":3}},"queue":"com.apple.main-thread","frames":[{"imageOffset":4441225640,"imageIndex":0},{"imageOffset":4456472124,"region":"<translation info unavailable>","imageIndex":0},{"imageOffset":24443,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":516064,"symbol":"abort","symbolLocation":130,"imageIndex":2},{"imageOffset":67394,"symbol":"abort_message","symbolLocation":241,"imageIndex":3},{"imageOffset":6493,"symbol":"demangling_terminate_handler()","symbolLocation":266,"imageIndex":3},{"imageOffset":24706,"symbol":"_objc_terminate()","symbolLocation":96,"imageIndex":4},{"imageOffset":64357,"symbol":"std::__terminate(void (*)())","symbolLocation":8,"imageIndex":3},{"imageOffset":64278,"symbol":"std::terminate()","symbolLocation":54,"imageIndex":3},{"imageOffset":10830,"symbol":"_dispatch_client_callout","symbolLocation":28,"imageIndex":5},{"imageOffset":25791,"symbol":"_dispatch_block_invoke_direct","symbolLocation":484,"imageIndex":5},{"imageOffset":383928,"symbol":"__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":30,"imageIndex":6},{"imageOffset":383662,"symbol":"-[FBSSerialQueue _targetQueue_performNextIfPossible]","symbolLocation":174,"imageIndex":6},{"imageOffset":383968,"symbol":"-[FBSSerialQueue _performNextFromRunLoopSource]","symbolLocation":19,"imageIndex":6},{"imageOffset":544741,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":17,"imageIndex":7},{"imageOffset":544548,"symbol":"__CFRunLoopDoSource0","symbolLocation":157,"imageIndex":7},{"imageOffset":542497,"symbol":"__CFRunLoopDoSources0","symbolLocation":212,"imageIndex":7},{"imageOffset":519715,"symbol":"__CFRunLoopRun","symbolLocation":927,"imageIndex":7},{"imageOffset":517799,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":7},{"imageOffset":12938,"symbol":"GSEventRunModal","symbolLocation":139,"imageIndex":8},{"imageOffset":14949075,"symbol":"-[UIApplication _run]","symbolLocation":994,"imageIndex":9},{"imageOffset":14969327,"symbol":"UIApplicationMain","symbolLocation":123,"imageIndex":9},{"imageOffset":22528,"symbol":"main","symbolLocation":96,"imageIndex":10},{"imageOffset":8895,"symbol":"start_sim","symbolLocation":10,"imageIndex":11},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":12}]},{"id":3390845,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":140703127492432,"imageIndex":0},{"imageOffset":140703127591828,"imageIndex":0}]},{"id":3390872,"frames":[{"imageOffset":140703127615612,"imageIndex":0}]},{"id":3390873,"frames":[{"imageOffset":140703127615612,"imageIndex":0}]},{"id":3390874,"frames":[{"imageOffset":140703127615612,"imageIndex":0}]},{"id":3390875,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":4441225640,"imageIndex":0},{"imageOffset":4442232940,"region":"<translation info unavailable>","imageIndex":0},{"imageOffset":63101,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":13},{"imageOffset":34586,"symbol":"mach_msg_overwrite","symbolLocation":723,"imageIndex":13},{"imageOffset":6537,"symbol":"mach_msg","symbolLocation":19,"imageIndex":13},{"imageOffset":542862,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":7},{"imageOffset":520159,"symbol":"__CFRunLoopRun","symbolLocation":1371,"imageIndex":7},{"imageOffset":517799,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":7},{"imageOffset":5605556,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":213,"imageIndex":14},{"imageOffset":5606189,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":72,"imageIndex":14},{"imageOffset":15823494,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":535,"imageIndex":9},{"imageOffset":5775643,"symbol":"__NSThread__start__","symbolLocation":1009,"imageIndex":14},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":3390876,"frames":[{"imageOffset":140703127615612,"imageIndex":0}]},{"id":3390879,"queue":"com.apple.UIKit.KeyboardManagement","frames":[{"imageOffset":4441225640,"imageIndex":0},{"imageOffset":4445690284,"region":"<translation info unavailable>","imageIndex":0},{"imageOffset":12747,"symbol":"_dlock_wait","symbolLocation":45,"imageIndex":5},{"imageOffset":12333,"symbol":"_dispatch_thread_event_wait_slow","symbolLocation":40,"imageIndex":5},{"imageOffset":78892,"symbol":"__DISPATCH_WAIT_FOR_QUEUE__","symbolLocation":358,"imageIndex":5},{"imageOffset":77707,"symbol":"_dispatch_sync_f_slow","symbolLocation":202,"imageIndex":5},{"imageOffset":12944405,"symbol":"__37-[_UIRemoteKeyboards startConnection]_block_invoke_2","symbolLocation":118,"imageIndex":9},{"imageOffset":1229564,"symbol":"__invoking___","symbolLocation":140,"imageIndex":7},{"imageOffset":1217833,"symbol":"-[NSInvocation invoke]","symbolLocation":305,"imageIndex":7},{"imageOffset":6639806,"symbol":"__NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__","symbolLocation":17,"imageIndex":14},{"imageOffset":6638741,"symbol":"-[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:]","symbolLocation":629,"imageIndex":14},{"imageOffset":6658315,"symbol":"__88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3","symbolLocation":205,"imageIndex":14},{"imageOffset":97547,"symbol":"_xpc_connection_reply_callout","symbolLocation":36,"imageIndex":15},{"imageOffset":52157,"symbol":"_xpc_connection_call_reply_async","symbolLocation":69,"imageIndex":15},{"imageOffset":10912,"symbol":"_dispatch_client_callout3","symbolLocation":8,"imageIndex":5},{"imageOffset":141150,"symbol":"_dispatch_mach_msg_async_reply_invoke","symbolLocation":630,"imageIndex":5},{"imageOffset":41211,"symbol":"_dispatch_lane_serial_drain","symbolLocation":362,"imageIndex":5},{"imageOffset":45082,"symbol":"_dispatch_lane_invoke","symbolLocation":455,"imageIndex":5},{"imageOffset":97094,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":870,"imageIndex":5},{"imageOffset":11491,"symbol":"_pthread_wqthread","symbolLocation":326,"imageIndex":1},{"imageOffset":7271,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":1}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4728692736,
    "size" : 49152,
    "uuid" : "13b5e252-77d1-31e1-888d-1c5f4426ea87",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4744835072,
    "size" : 544768,
    "uuid" : "8a60f5c1-ea1f-352b-b778-967be44e3677",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4583071744,
    "size" : 90112,
    "uuid" : "ae8cbd53-0926-3251-b648-6f32d9330a50",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4588191744,
    "size" : 212992,
    "uuid" : "2a7a213a-fdb2-311c-81d7-efdfd9ddf25a",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4713484288,
    "size" : 311296,
    "uuid" : "59be51c1-e9f3-3a60-8108-cd70ae082897",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4819329024,
    "CFBundleShortVersionString" : "812.12",
    "CFBundleIdentifier" : "com.apple.FrontBoardServices",
    "size" : 671744,
    "uuid" : "6968144a-2ef3-3bce-a99a-d52e343b87ca",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/FrontBoardServices.framework\/FrontBoardServices",
    "name" : "FrontBoardServices",
    "CFBundleVersion" : "812.12"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4662747136,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 3706880,
    "uuid" : "2be0f79f-8b25-3614-9e7e-dbac565f72dd",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4805439488,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.GraphicsServices",
    "size" : 32768,
    "uuid" : "16365e42-1d5c-363d-84d1-3bb290a43253",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices",
    "name" : "GraphicsServices",
    "CFBundleVersion" : "1.0"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4961988608,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.UIKitCore",
    "size" : 28098560,
    "uuid" : "adb282b1-2fb2-38e0-8492-47f9443eb1ef",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore",
    "name" : "UIKitCore",
    "CFBundleVersion" : "6209"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4370845696,
    "CFBundleShortVersionString" : "0.4.0",
    "CFBundleIdentifier" : "com.defit.app.uat",
    "size" : 22888448,
    "uuid" : "3310cfd2-c752-3864-b738-6e0398976346",
    "path" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/EF7E52AF-2B85-4860-A215-F6DD90EC1189\/data\/Containers\/Bundle\/Application\/CF7C9998-37BF-46D9-83CE-D9160E6C7C37\/DEFITDEV.app\/DEFITDEV",
    "name" : "DEFITDEV",
    "CFBundleVersion" : "5"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4581957632,
    "size" : 393216,
    "uuid" : "6fb74554-3370-3677-93d4-7f7a01ea6a80",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim",
    "name" : "dyld_sim"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8740032512,
    "size" : 622592,
    "uuid" : "0f050705-2258-3d40-b7bc-f3b35a44bbea",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4745568256,
    "size" : 245760,
    "uuid" : "0c2fd2c9-777c-3355-b70f-7b1b6e9d1b0b",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4680765440,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 9637888,
    "uuid" : "86cd050d-44fc-3045-a1f3-8ad5047b329e",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/Foundation.framework\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4746522624,
    "size" : 233472,
    "uuid" : "81ae956f-2354-36fa-b9f2-0c4e39462edd",
    "path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libxpc.dylib",
    "name" : "libxpc.dylib"
  }
],
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)\nWritable regions: Total=732.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=732.7M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nColorSync                           24K        3 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           192.6M       32 \nMALLOC guard page                   32K        7 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nRosetta Arena                     4096K        2 \nRosetta Generic                   5732K     1430 \nRosetta IndirectBranch            1024K        1 \nRosetta JIT                      128.0M        1 \nRosetta Return Stack               140K       14 \nRosetta Thread Context             140K       14 \nSTACK GUARD                         16K        4 \nStack                             11.1M        7 \nStack Guard                       56.0M        3 \nVM_ALLOCATE                         84K        3 \nVM_ALLOCATE (reserved)              20K        2         reserved VM address space (unallocated)\n__DATA                            20.7M      753 \n__DATA_CONST                      57.1M      591 \n__DATA_DIRTY                       108K       14 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       384.4M      602 \n__TEXT                           637.3M      600 \ndyld private memory               32.0G        8 \nmapped file                       37.7M       12 \nshared memory                       16K        1 \n===========                     =======  ======= \nTOTAL                             33.8G     4109 \nTOTAL, minus reserved VM space    33.5G     4109 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000281
    },
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
      "experimentId" : "6317d2003d24842ff850182a",
      "deploymentId" : 400000012
    },
    {
      "treatmentId" : "6dd670af-0633-45e4-ae5f-122ae4df02be",
      "experimentId" : "64406ba83deb637ac8a04419",
      "deploymentId" : 900000005
    }
  ]
},
  "reportNotes" : [
  "dyld_process_snapshot_get_shared_cache failed"
]
}

Model: MacBookPro18,3, BootROM 8419.41.10, proc 8:6:2 processors, 16 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Sep  3 2022 02:35:52 version 20.10.965.9.8.7.129 FWID 01-b0e84a9b
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: Laptop, Apple Inc.
Thunderbolt Bus: Laptop, Apple Inc.
Thunderbolt Bus: Laptop, Apple Inc.
christocracy commented 1 year ago

I am using xcode 14.1 to build it.

The latest version of the plug-in was built with XCode 14.3. I suggest you update.

Also, you’ll get much better debugging info if you launch your app directly from XCode.

christocracy commented 1 year ago

(There is nothing in your stacktrace referencing the plug-in code TSLocationManager)

socheatleang commented 1 year ago

@christocracy Do I miss some part? Anyway after I block the react-native-background-fetch inside the the plugin: [], It's runnable.

christocracy commented 1 year ago

Look at your infoPList Config and compare with the Setup Guide.

This is NOT the first time you've messed up following the Setup Docs.

infoPlist: {
      NSLocationAlwaysAndWhenInUseUsageDescription:
        'The DEFIT App requires location in the background',
      NSMotionUsageDescription:
        'The DEFIT App uses motion-detection to determine the motion-activity of the device (walking, vehicle, bicycle, etc)',
      UIBackgroundModes: ['location', 'fetch', 'processing', 'audio'],
      BGTaskSchedulerPermittedIdentifiers: [
        'com.transistorsoft.fetch',
        'com.transistorsoft.customtask',
      ],
    },

I do not see NSLocationWhenInUseUsageDescription in your Config. Do you think these items are optional?

Screenshot 2023-06-13 at 8 53 04 AM
socheatleang commented 1 year ago

@christocracy Actually we already have it. It's just on the top. You can see the full of our infoPlist:

infoPlist: {
      NSLocationWhenInUseUsageDescription:
        'We need to access your location to locate you on the map if you need to',
      LSApplicationQueriesSchemes: [
        'huobiwallet',
        'bitkeep',
        'ledgerlive',
        'cryptowallet',
        'metamask',
        'trust',
      ],
      NSLocationAlwaysAndWhenInUseUsageDescription:
        'The DEFIT App requires location in the background',
      NSMotionUsageDescription:
        'The DEFIT App uses motion-detection to determine the motion-activity of the device (walking, vehicle, bicycle, etc)',
      UIBackgroundModes: ['location', 'fetch', 'processing', 'audio'],
      BGTaskSchedulerPermittedIdentifiers: [
        'com.transistorsoft.fetch',
        'com.transistorsoft.customtask',
      ],
    },
christocracy commented 1 year ago

Boot your app directly in XCode for better debugging info.

socheatleang commented 1 year ago

I uninstalled the react-native-background-fetch, then the iOS could run as expected. I will close this issue now. Thanks :)