The error code led me to Addressing watchdog terminations
It only happens when debug mode enabled, so I guess something happens in debug server may block the main thread to update screen for more than 10s. But still can't figure it out where the problem is.
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: FRONTBOARD 2343432205
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: application<com.mycompany.ios.myapp>:904 exhausted real (wall clock) time allowance of 10.00 seconds
ProcessVisibility: Foregrounda
ProcessState: Running
WatchdogEvent: scene-update
WatchdogVisibility: Background
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 4.030 (user 2.220, system 1.810), 6% CPU",
"Elapsed application CPU time (seconds): 0.002, 0% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Thread 0 name: tid_103 Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1c7dc4da8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1c7dd7a1c mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x1c7dd7c5c mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x1c7dc52ec mach_msg + 24
4 CoreFoundation 0x18a321ac4 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x18a322d08 __CFRunLoopRun + 1232
6 CoreFoundation 0x18a327eb0 CFRunLoopRunSpecific + 612
7 GraphicsServices 0x1c451d368 GSEventRunModal + 164
8 UIKitCore 0x18c81d668 -[UIApplication _run] + 888
9 UIKitCore 0x18c81d2cc UIApplicationMain + 340
10 MyApp.iOS 0x105fb41b8 xamarin_UIApplicationMain + 60
11 MyApp.iOS 0x103dfe62c wrapper_managed_to_native_UIKit_UIApplication_xamarin_UIApplicationMain_int_string___intptr_intptr_intptr_ + 380
12 MyApp.iOS 0x103d721e4 UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 21242340 (UIApplication.cs:57)
13 MyApp.iOS 0x103d72360 UIKit_UIApplication_Main_string___System_Type_System_Type + 21242720 (UIApplication.cs:92)
14 MyApp.iOS 0x1029af210 MyApp_iOS_Application_Main_string__ + 520720 (Main.cs:154)
15 MyApp.iOS 0x102f86e80 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 272
16 MyApp.iOS 0x105e7cdcc mono_jit_runtime_invoke + 55889356 (mini-runtime.c:3191)
17 MyApp.iOS 0x105f14d5c mono_runtime_invoke_checked + 56511836 (object.c:3220)
18 MyApp.iOS 0x105f19fd0 mono_runtime_exec_main_checked + 56532944 (object.c:5288)
19 MyApp.iOS 0x105e6201c mono_jit_exec + 55779356 (driver.c:1328)
20 MyApp.iOS 0x105fc7cfc xamarin_main + 57244924 (monotouch-main.m:490)
21 MyApp.iOS 0x1029a9224 main + 496164 (main.m:148)
22 dyld 0x1a8c20960 start + 2528