iOS App crashing with stack trace Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001af7f37f4

our iOS app facing this repetitive crashing

CDVCommandDelegateImpl.m line 73
__40-[CDVCommandDelegateImpl evalJsHelper2:]_block_invoke

I tried to reproduce the error from my side but no avail. the main problem is this crash event is fairly high for 5 users. mostly FirebaseCrashlytics logs are empty but some logs contain screen parameter that is my Home Screen, can anyone assist me to fix this crash from occurring

crash event details

Devices
100% iPhone

Operating system 

81% iOS 15
13% iOS 14
6% iOS 16

Device state 
0% in background 
Device
Model:iPhone 8 Plus
Orientation: Portrait
RAM free: 422.25 MB
Disk free: 1.97 GB
Operating System
Version:15.6.1
Orientation: Portrait
Jailbroken:No
Crash
Date:Feb 7, 2023, 9:42:51 AM
App version:6.3.2 (6.3.2)

crash staktrace

Do you have an Apple crash report for this? If so, please post it here. See Posting a Crash Report for advice on that.

It’s hard for me to do anything useful with a third-party crash report, not least because I don’t trust them. See Implementing Your Own Crash Reporter for an explanation as to why.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi eskimo i have collected my Apple crash report from Xcode and attaching with this thanks

Thanks for the crash report.

Consider the backtrace of the crashing thread:

Thread 0 Crashed:
0 JavaScriptCore … pas_panic_on_out_of_memory_error + 0 (pas_utils.c:170)
1 JavaScriptCore … bmalloc_allocate_impl_impl_slow + 64 (pas_allocation_result.h:106)
2 JavaScriptCore … bmalloc_allocate_impl_casual_case + 272 (pas_try_allocate_intrinsic.h:173)
3 JavaScriptCore … ***::String::String(__CFString const*) + 284 (FastMalloc.h:219)
4 WebKit         … -[WKWebView _evaluateJavaScript:asAsyncFunction:withSourceURL:withArguments:forceUserGesture…
5 WebKit         … -[WKWebView evaluateJavaScript:completionHandler:] + 124 (WKWebView.mm:896)
6 Cordova        … __40-[CDVCommandDelegateImpl evalJsHelper2:]_block_invoke + 56 (CDVCommandDelegateImpl.m:73)

I’m not a WebKit expert [1] but it seems pretty clear that you’ve run WebKit out of memory as a direct result of calling -evaluateJavaScript:completionHandler: in frame 5.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] I’ve retagged your question to see if someone who is might chime in.

iOS App crashing with stack trace Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001af7f37f4
 
 
Q