LAContext has an occasional Crash problem

Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: FRONTBOARD 2343432205 <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: application<com.blurams.ipc>:17044 exhausted real (wall clock) time allowance of 10.00 seconds ProcessVisibility: Foreground ProcessState: Running WatchdogEvent: scene-update WatchdogVisibility: Background WatchdogCPUStatistics: ( "Elapsed total CPU time (seconds): 9.590 (user 9.590, system 0.000), 15% CPU", "Elapsed application CPU time (seconds): 0.228, 0% CPU" ) reportType:CrashLog maxTerminationResistance:Interactive>

Triggered by Thread: 0

Kernel Triage: VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage

Thread 0 name: Main Thread Dispatch queue: la_client Thread 0 Crashed: 0 libsystem_kernel.dylib 0x1e6a964e0 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x1e6a96b24 mach_msg + 76 2 libdispatch.dylib 0x1aedc7678 _dispatch_mach_send_and_wait_for_reply + 540 3 libdispatch.dylib 0x1aedc7a00 dispatch_mach_send_with_result_and_wait_for_reply + 60 4 libxpc.dylib 0x2200d5f0c xpc_connection_send_message_with_reply_sync + 240 5 Foundation 0x1b08d9c1c NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY + 16 6 Foundation 0x1b08dfcec -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2540 7 CoreFoundation 0x1af0da70c forwarding + 1128 8 CoreFoundation 0x1af0d9a60 _CF_forwarding_prep_0 + 96 9 LocalAuthentication 0x1e5fa36b4 __64-[LAClient evaluatePolicy:options:uiDelegate:synchronous:reply:]_block_invoke + 240 10 LocalAuthentication 0x1e5fa2c80 __47-[LAClient _performSynchronous:callId:finally:]_block_invoke + 584 11 libdispatch.dylib 0x1aedaca2c _dispatch_client_callout + 20 12 libdispatch.dylib 0x1aedbc2d4 _dispatch_sync_invoke_and_complete + 56 13 LocalAuthentication 0x1e5fa29e8 -[LAClient _performSynchronous:callId:finally:] + 220 14 LocalAuthentication 0x1e5fa357c -[LAClient evaluatePolicy:options:uiDelegate:synchronous:reply:] + 392 15 LocalAuthentication 0x1e5fa9d48 -[LAContext _evaluatePolicy:options:log:cid:synchronous:reply:] + 472 16 LocalAuthentication 0x1e5f9f364 -[LAContext _evaluatePolicy:options:log:cid:error:] + 284 17 LocalAuthentication 0x1e5f9f090 -[LAContext canEvaluatePolicy:error:] + 304 18 Blurams 0x102c3265c -[CLDeviceListViewController viewDidLoad] + 2952 19 UIKitCore 0x1b16ca750 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 108 20 UIKitCore 0x1b16cd2a0 -[UIViewController loadViewIfRequired] + 1048 21 UIKitCore 0x1b17cc8e0 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 176 22 UIKitCore 0x1b17c8fc0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 196 23 UIKitCore 0x1b19f3a4c -[UINavigationController _startDeferredTransitionIfNeeded:] + 868 24 UIKitCore 0x1b18c9164 -[UINavigationController __viewWillLayoutSubviews] + 168 25 UIKitCore 0x1b17f0bc4 -[UILayoutContainerView layoutSubviews] + 228 26 UIKitCore 0x1b16aa8d0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592 27 QuartzCore 0x1b2e20180 CA::Layer::layout_if_needed(CA::Transaction*) + 532 28 QuartzCore 0x1b2e125bc CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136 29 QuartzCore 0x1b2e26f30 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452 30 QuartzCore 0x1b2e2fe38 CA::Transaction::commit() + 704 31 QuartzCore 0x1b2e11d14 CA::Transaction::flush_as_runloop_observer(bool) + 88 32 CoreFoundation 0x1af0edbb4 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 36 33 CoreFoundation 0x1af0bcb70 __CFRunLoopDoObservers + 592 34 CoreFoundation 0x1af0b7c2c __CFRunLoopRun + 1052 35 CoreFoundation 0x1af0cb6b8 CFRunLoopRunSpecific + 600 36 GraphicsServices 0x1cb167374 GSEventRunModal + 164 37 UIKitCore 0x1b1a32eac -[UIApplication _run] + 1100 38 UIKitCore 0x1b17b4678 UIApplicationMain + 364 39 Blurams 0x102c9f2ec main + 212 40 dyld 0x105da9ce4 start + 520

The following is the code block where the deadlock occurs

        [CLAPILoginManager shareInstance].isPasswordLogin = NO;         self.laContext = [[LAContext alloc] init];         NSError *authError = nil;         BOOL isCanEvaluatePolicy = [self.laContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError];

I am using LAContext(), canEvaluatePolicy, and evaluatePolicy in my project, and I've encountered a crash under a specific scenario. When the permission prompt appears asking, "Do you want to allow [App Name] to use biometrics in your app?" and the user locks the device without selecting "Allow" or "Don't Allow," the app crashes at that point.

Has anyone else experienced this issue or tested this scenario? Unfortunately, I couldn't retrieve the crash report, but I was notified that the app crashed.

LAContext has an occasional Crash problem
 
 
Q