iOS app scene-update watchdog transgression by the watchdog unexpectedly, code:0x8BADF00D

We received many crash reports like the below attachment. When the app state switch from background to foreground.

As the document https://developer.apple.com/documentation/xcode/addressing-watchdog-terminations suggest, We checked all thread's call stacks and have no idea why the app is force killed. We also make sure that the main thread is not blocked by the log of our app.

It may be the issue of apple's watchdog as the main thread is not busy. The app is killed by the watchdog unexpectedly.

Does anyone have ideas on how to solve the system issue?

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.eeeeeeeeeee.tttt>:8829 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.430 (user 13.430, system 0.000), 20% CPU",
"Elapsed application CPU time (seconds): 0.660, 1% 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        	       0x21e3624a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	       0x21e362ae4 mach_msg + 76
2   CoreFoundation                	       0x1e6832d30 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                	       0x1e68371bc __CFRunLoopRun + 1180
4   CoreFoundation                	       0x1e684abc8 CFRunLoopRunSpecific + 600
5   GraphicsServices              	       0x2029b6374 GSEventRunModal + 164
6   UIKitCore                     	       0x1e91beb58 -[UIApplication _run] + 1100
7   UIKitCore                     	       0x1e8f40090 UIApplicationMain + 364
8   Tttt                          	       0x1049ba8cc 0x1049b4000 + 26828 // main main.m:23
9   dyld                          	       0x106fa5da4 start + 520

For the full crash report from apple please refer to

Answered by codefei in 726386022

 Ignoring the SIGPIPE signal seems to lead the app to meet the app killed by the watchdog.

signal(SIGPIPE, SIG_IGN);

Accepted Answer

 Ignoring the SIGPIPE signal seems to lead the app to meet the app killed by the watchdog.

signal(SIGPIPE, SIG_IGN);

iOS app scene-update watchdog transgression by the watchdog unexpectedly, code:0x8BADF00D
 
 
Q