JavaScriptCore crash

There is something wrong with WKWebView. it crash. that:

- (void)viewDidLoad {

[super viewDidLoad];

[self.wkwebView evaluateJavaScript:@"navigator.userAgent" completionHandler:^(id _Nullable result, NSError * _Nullable error) {

}];

}

crash info

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

Incident Identifier: 2430792E-CF51-4EF1-94CF-EC72AC601B2C
CrashReporter Key:   50bcb858d8f2af8c94fc75188b8a740c78e148ff
Hardware Model:      iPhone11,6
Process:             Youkui4Phone [956]
Path:                /private/var/containers/Bundle/Application/198201AE-A0DE-4E8F-B84A-2209122A5783/Youkui4Phone.app/Youkui4Phone
Identifier:          com.youku.YouKu.InHouse
Version:             11.1.13.8339 (2042174090)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.youku.YouKu.InHouse [600]

Date/Time:           2024-12-17 16:11:51.5863 +0800
Launch Time:         2024-12-17 15:47:19.4488 +0800
OS Version:          iPhone OS 18.1.1 (22B91)
Release Type:        User
Baseband Version:    7.00.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: FRONTBOARD 2343432205 
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: app<com.youku.YouKu.InHouse(EEEC9FA9-AFA2-4648-B178-EFFB7C9FE91D)>:956 exhausted real (wall clock) time allowance of 10.00 seconds
ProcessVisibility: Foreground
ProcessState: Running
WatchdogEvent: scene-update
WatchdogVisibility: Foreground
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 13.120 (user 13.120, system 0.000), 22% CPU",
"Elapsed application CPU time (seconds): 2.732, 4% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>

Triggered by Thread:  0

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	       0x1e503ff90 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x21d17aa50 _pthread_cond_wait + 1204
2   JavaScriptCore                	       0x1ab495ce8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1900
3   JavaScriptCore                	       0x1ab4852e4 WTF::LockAlgorithm<unsigned char, (unsigned char)1, (unsigned char)2, WTF::EmptyLockHooks<unsigned char>>::lockSlow(WTF::Atomic<unsigned char>&) + 216
4   JavaScriptCore                	       0x1ac413cc0 JSC::JSLock::lock() + 568
5   JavaScriptCore                	       0x1ac45d0f0 JSC::JSRunLoopTimer::Manager::timerDidFireCallback() + 808
6   JavaScriptCore                	       0x1ab49e218 WTF::RunLoop::TimerBase::start(WTF::Seconds, bool)::$_0::__invoke(__CFRunLoopTimer*, void*) + 96
7   CoreFoundation                	       0x194cda894 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
8   CoreFoundation                	       0x194cda538 __CFRunLoopDoTimer + 1012
9   CoreFoundation                	       0x194cda08c __CFRunLoopDoTimers + 288
10  CoreFoundation                	       0x194c793b4 __CFRunLoopRun + 1856
11  CoreFoundation                	       0x194c78830 CFRunLoopRunSpecific + 588
12  GraphicsServices              	       0x1e0c581c4 GSEventRunModal + 164
13  UIKitCore                     	       0x1977deeb0 -[UIApplication _run] + 816
14  UIKitCore                     	       0x19788d5b4 UIApplicationMain + 340
15  Youkui4Phone                  	       0x105160fcc main + 56
16  dyld                          	       0x1ba666ec8 start + 2724

The script seems incomplete... Are you trying to log or send the information somewhere?

As for the crash itself, you can learn about the exception types, codes and meanings here.

JavaScriptCore crash
 
 
Q