[英]my app crash when it return from background because of watchdog
Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d Termination Description: SPRINGBOARD, scene-update watchdog transgression: application< cbundlename >:354 exhausted real (wall clock) time allowance of 10.00 seconds |
异常类型:EXC_CRASH (SIGKILL) 异常代码:0x0000000000000000, 0x0000000000000000 异常说明:EXC_CORPSE_NOTIFY 终止原因:命名空间 SPRINGBOARD,代码 0x8badf00d 终止说明:SPRINGBOARD,场景更新看门狗越界:应用程序< cbundlename时间耗尽>:354 10.00 秒 | ProcessVisibility: Foreground |
ProcessVisibility:前景 | ProcessState: Running |
进程状态:正在运行 | WatchdogEvent: scene-update |
WatchdogEvent: 场景更新 | WatchdogVisibility: Background |
WatchdogVisibility: 背景 | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 9.630 (user 9.630, system 0.000), 6% CPU", | "Elapsed application CPU time (seconds): 1.088, 1% CPU" | ) Triggered by Thread: 0
WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 9.630 (user 9.630, system 0.000), 6% CPU", | "Elapsed application CPU time (seconds): 1.088, 1% CPU" | ) Triggered by Thread: 0
this is happening sometime to CLIENT, I almost can't reproduce this and I do not get any crashes neither in Xcode organiser nor in Crashlytics这有时会发生在客户身上,我几乎无法重现这一点,而且我在 Xcode 组织者和 Crashlytics 中都没有遇到任何崩溃
I can just get the logs from the device -> setting-> privacy-> analytics I have worked very hard to remove all memory leaks and to clean the main thread as I can move the task to DispatchQueue.background
also, I have cleaned logic from AppDelegate
functions and it still happens.我可以从设备获取日志-> 设置-> 隐私-> 分析我已经非常努力地删除所有 memory 泄漏并清理主线程,因为我也可以将任务移动到
DispatchQueue.background
,我已经清理了逻辑来自AppDelegate
函数,它仍然会发生。
Please advise!请指教!
Code 0x8badf00d is the error code that the watchdog raises when an application takes too long to launch or terminate.代码 0x8badf00d 是当应用程序启动或终止时间过长时看门狗引发的错误代码。
Usually, it means you either have an infinite loop somewhere, or you are waiting for network IO on the main thread.通常,这意味着您在某处有一个无限循环,或者您正在主线程上等待网络 IO。 There's also the possibility that the user is force-quitting the application.
用户也有可能强制退出应用程序。
You can refer https://developer.apple.com/library/archive/qa/qa1693/_index.html apple's reference document for more details and the possible ways to handle this scenario in your project.您可以参考https://developer.apple.com/library/archive/qa/qa1693/_index.html Apple 的参考文档以获取更多详细信息以及在您的项目中处理此场景的可能方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.