应用程序关闭与EXC_RESOURCE,WAKEUPS异常在iOS 8 GM [英] App shutdown with EXC_RESOURCE, WAKEUPS exception on iOS 8 GM

查看:2551
本文介绍了应用程序关闭与EXC_RESOURCE,WAKEUPS异常在iOS 8 GM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道这种类型的异常在iOS 8上?



===从崩溃报告===



异常类型:EXC_RESOURCE
异常子类型:WAKEUPS
异常消息:(限制150 /秒)观察到206 /秒超过300秒
触发的线程:14

似乎只发生在iOS 8 ...我们的应用程序被关闭随机以任意间隔随此异常..



欢迎任何线索。感谢!

解决方案

您的应用程序正在向应用程序中的特定主题发送唤醒命令 - 显然平均206次一秒。 iOS 8中的后台线程对每秒可以在每个线程上运行休眠/唤醒周期的次数有一个严格的限制,这里的高计数通常表示线程管理中出错/低效。 p>

没有看到你的代码,我的建议是你检查你的C ++算法睡眠/唤醒调用,或多线程的后台进程每个周期启动新线程。



Ray Wenderlich有一个关于苹果系统多线程的神奇教程,Grand Central Dispactch,它也可能是一个很好的资源给你:http://www.raywenderlich.com/60749/grand-central-dispatch-in-depth-part-1


Does anyone know what this kind of exception is on iOS 8?

=== from crash report ===

Exception Type: EXC_RESOURCE
Exception Subtype: WAKEUPS
Exception Message: (Limit 150/sec) Observed 206/sec over 300 secs
Triggered by Thread: 14

Seems to only happen on iOS 8... Our app is shut down quite randomly at arbitrary intervals with this exception..

Any clues are welcome. Thanks!

解决方案

Your app is sending a wakeup command to a particular thread in the app quite often - apparently an average of 206 times a second. Background threads in iOS 8 have a hard limit on how many times you can run a sleep/wake cycle on each thread per second, and having a high count here is usually an indication that something is wrong / inefficient in your thread management.

Without seeing your code, my recommendation is that you check your C++ algorithms for sleep/wake calls, or multithread the background process to start new threads each cycle.

Ray Wenderlich has a fantastic tutorial on Apple's system for multithreading, Grand Central Dispactch, which might also be a good resource for you: http://www.raywenderlich.com/60749/grand-central-dispatch-in-depth-part-1

这篇关于应用程序关闭与EXC_RESOURCE,WAKEUPS异常在iOS 8 GM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆