问题:In IOS8 wakeups limit
2015-09-07 20:37
369 查看
in iOS8, a new limit is came.
Exception Type: EXC_RESOURCE
Exception Subtype: WAKEUPS
Exception Message: (Limit 150/sec)
so, don't create many threads and sleep.
all resource need a same way to asyn_load, please keep less thread
App shutdown with EXC_RESOURCE, WAKEUPS exception on iOS 8 GM
up vote 32 down vote favorite 10 | 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! |
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
demo例子中,写sleep时间短,并未复现该问题
相关文章推荐
- iOS应用性能调优的25个建议和技巧
- IOS 技术进阶 —— RunLoop 原理和核心机制
- iOS中简单的KVC
- iOS开发系列课程(05) --- 导航视图控制器
- iOS学习篇章2--Category类别
- 小胖说事39-----iOS 获取通讯录中联系人的所有属性
- ios开发,javascript直接调用oc代码而非通过改变url回调方式
- iOS开发 - GCD
- IOS界面跳转的两种方法
- iOS开发中Touch ID的使用
- iOS中tableView上实现搜索功能
- 蓝懿iOS培训日志5 正反向传值及学习心得
- 正反方向传值及打地鼠游戏的实现
- iOS如何把所有页面状态栏的字体颜色都设置为白色
- iOS7自定义视图控制器过渡2-手势交互过渡
- CoreMotion框架-iOS设备的核心运动
- ios-获取当前正在显示的ViewController
- ios学习笔记(3)
- 复杂版计算器的实现
- IOS学习笔记 ---- 15/09/07