iOS simulator crashes Termination Reason: FRONTBOARD 2343432205 0x8BADF00D
Hello,
My app often crashes when I use iOS simulators. I would like some help with reading the crash report that is generated. Especially with the part below Thread 0 Crashed. Based on other posts I understand that the 0x8BADF00D in the crash report is a WatchDog crash that basically says that WatchDog terminated the app because the main thread was blocked for a significant time. Many processes can block the main thread so it's hard to find out what it is in our specific case. Can someone help me reading through the crash report?
Background information The application is Xamarin Native and I use Rider as an IDE. When I use Visual Studio, the simulators run just fine. No crash occurs while using my app on a device.
The crash happens on multiple simulators with different OS versions. I already deleted XCode cache, erased content and settings of several simulators and deleted iOS DeviceSupport files.
Crash report
-------------------------------------Translated Report (Full Report Below)-------------------------------------
Incident Identifier: 24DBB87B-F450-49C2-8F1B-CCCC974EF42ACrashReporter Key: B8EF2F41-EF9C-6D5A-7C3B-07BAA6A9971DHardware Model: MacBookPro16,1Process: ###.iOS [27855]Path: /Users/USER/Library/Developer/CoreSimulator/Devices/#####/data/Containers/Bundle/Application/###/XXX.iOS.app/XXX.iOSIdentifier: #######Version: 5.1.1 (5962)Code Type: X86-64 (Native)Role: ForegroundParent Process: launchd_sim [25534]Coalition: com.apple.CoreSimulator.SimDevice.A5D0C88E-0242-4F59-A41A-C2996FABCCF7 [14325]Responsible Process: SimulatorTrampoline [6434]
Date/Time: 2024-07-15 15:53:08.7859 +0200Launch Time: 2024-07-15 15:49:17.5017 +0200OS Version: macOS 14.5 (23F79)Release Type: UserReport Version: 104
Exception Type: EXC_CRASH (SIGKILL)Exception Codes: 0x0000000000000000, 0x0000000000000000Termination Reason: FRONTBOARD 2343432205 <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:[application<com.#####>:27855] failed to terminate gracefully after 5.0sProcessVisibility: UnknownProcessState: RunningWatchdogEvent: process-exit WatchdogVisibility: BackgroundWatchdogCPUStatistics: ("Elapsed total CPU time (seconds): 4.450 (user 2.690, system 1.760), 5% CPU","Elapsed application CPU time (seconds): 0.001, 0% CPU") reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Kernel Triage:VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enterVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enterVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enterVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enterVM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread0 libsystem_kernel.dylib 0x7fff7016f44a writev + 101 libsystem_trace.dylib 0x7fff200525db _os_trace_writev + 842 libsystem_trace.dylib 0x7fff20050493 _os_log_impl_mirror_to_stderr + 6223 libsystem_trace.dylib 0x7fff2004fba3 _os_log_impl_flatten_and_send + 85884 libsystem_trace.dylib 0x7fff20051252 _os_log_with_args_impl + 4665 CoreFoundation 0x7fff203e2a7e _CFLogvEx3 + 1986 Foundation 0x7fff207fd328 _NSLogv + 977 Foundation 0x7fff207fd3c6 NSLog + 1388 libSystem.Native.dylib 0x10dff56db SystemNative_Log + 2199 libmonosgen-2.0.dylib 0x10fd6d282 do_icall + 14610 libmonosgen-2.0.dylib 0x10fd6bad7 do_icall_wrapper + 29511 libmonosgen-2.0.dylib 0x10fd5c7f6 mono_interp_exec_method + 399012 libmonosgen-2.0.dylib 0x10fd59f63 interp_runtime_invoke + 25913 libmonosgen-2.0.dylib 0x10fe413bd mono_runtime_try_invoke + 15714 libmonosgen-2.0.dylib 0x10fe4478e mono_runtime_invoke + 47815 libxamarin-dotnet-debug.dylib 0x10efdd42f xamarin_invoke_trampoline + 630316 libxamarin-dotnet-debug.dylib 0x10efe4d39 xamarin_arch_trampoline + 10517 libxamarin-dotnet-debug.dylib 0x10efe5f1a xamarin_x86_64_common_trampoline + 11818 UIKitCore 0x7fff248dfeff -[UIViewController _setViewAppearState:isAnimating:] + 91219 UIKitCore 0x7fff248e0967 -[UIViewController __viewDidAppear:] + 14620 UIKitCore 0x7fff248e2545 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 4221 UIKitCore 0x7fff248e12e2 -[UIViewController _executeAfterAppearanceBlock] + 7522 UIKitCore 0x7fff256001a9 -[_UIAfterCACommitBlock run] + 5423 UIKitCore 0x7fff256006a1 -[_UIAfterCACommitQueue flush] + 19024 libdispatch.dylib 0x7fff201148e4 _dispatch_call_block_and_release + 1225 libdispatch.dylib 0x7fff20115b25 _dispatch_client_callout + 826 libdispatch.dylib 0x7fff20123043 _dispatch_main_queue_drain + 105027 libdispatch.dylib 0x7fff20122c1b _dispatch_main_queue_callback_4CF + 3128 CoreFoundation 0x7fff20371ed5 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 929 CoreFoundation 0x7fff2036c6ca __CFRunLoopRun + 276130 CoreFoundation 0x7fff2036b704 CFRunLoopRunSpecific + 56231 GraphicsServices 0x7fff2cba9c8e GSEventRunModal + 13932 UIKitCore 0x7fff2509e65a -[UIApplication _run] + 92833 UIKitCore 0x7fff250a32b5 UIApplicationMain + 10134 libxamarin-dotnet-debug.dylib 0x10efa04ca xamarin_UIApplicationMain + 5835 libmonosgen-2.0.dylib 0x10fd6d345 do_icall + 34136 libmonosgen-2.0.dylib 0x10fd6bad7 do_icall_wrapper + 29537 libmonosgen-2.0.dylib 0x10fd5c7f6 mono_interp_exec_method + 399038 libmonosgen-2.0.dylib 0x10fd59f63 interp_runtime_invoke + 25939 libmonosgen-2.0.dylib 0x10fe402d8 mono_runtime_invoke_checked + 13640 libmonosgen-2.0.dylib 0x10fe47c1b mono_runtime_exec_main_checked + 10741 libmonosgen-2.0.dylib 0x10fcac742 mono_jit_exec + 35442 libxamarin-dotnet-debug.dylib 0x10efe4bea xamarin_main + 189843 xxx.iOS 0x10cc8acf4 main + 52 (main.x86_64.mm:77)44 dyld_sim 0x10d802f21 start_sim + 1045 dyld
;;;;
Please sign in to leave a comment.
Hello Nynke Van Der Heide ,
Thank you for reaching Rider Forum.
From the crash dump provided, it might be only concluded that possibly the debugger could not connect after the application started.
Could you please share more details:
Thank you in advance. Have a nice day.
Hi Anna,
Thank you for your reply.
1. When I run the app in debug mode (app connected to Rider) the freeze doesn't occur. It also doesn't occur when I just click the run button and test the app with the simulator. When I run the app without a connection between Rider and the simulator, the freeze happens. I tried to reproduce the issue by doing the same thing via Visual Studio, but the freeze doesn't occur.
2. The applications starts but while using it, it freezes and I can't use the app anymore. I have to close the app by swiping up from the bottom of the screen, opening the multitasking view and swipe the app up.
3. I don't have the debug output because the freeze only happens when I build and install the app with Rider debug mode, quit the app and start the app again by tapping the app icon in the simulator.
4. 2024_07_26_iuddsXdt9pFMTkABWTLJHg
I just reproduced the issue again without doing anything special. It happened instantly.
Thank you.
Hello Nynke Van Der Heide ,
Thank you for the detailed explanation.
At the moment, the behavior is still not very clear and cannot be reproduced. Could you please reproduce the issue with the new 2024.2.5 version and collect logs from Help > Collect Logs and Diagnostic Data with tracing this time on Multiplatform? Also, once you meet a freeze, could you please collect the dumps using the following instruction and attach all the resulting information to our server (https://uploads.jetbrains.com/) and share the ID?
Thank you in advance!