使用telephonymanager真机调试 闪退_watchOS 上的一次 SKView 内存泄露调试
生活随笔
收集整理的這篇文章主要介紹了
使用telephonymanager真机调试 闪退_watchOS 上的一次 SKView 内存泄露调试
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前幾個版本,在 YaoYao watch 端加了點 SpriteKit 的動畫優化了一下效果,后來被證明是一次失敗的負優化。
現象
- 用戶反饋YaoYao HIIT模式下偶爾程序閃退,線上并未收集到 crash Log
- 閃退的過程是在使用了 10幾組 HIIT 的時候(過了一段時間)
調試過程
使用模擬器測試了半天,并沒有內存泄露和崩潰。這讓人很頭疼,我又用真機開始調試,用instrument看前面 30組也并無內存泄露,直到我將手表戴在手上,后來終于出現了奇跡,內存開始漲,最終crash。
SKView: ignoreRenderSyncInLayoutSubviews is NO. Call _renderSynchronouslyForTime without handler 2020-05-14 22:33:13.440151+0800 YaoYao WatchKit Extension[249:11942] Execution of the command buffer was aborted due to an error during execution. Insufficient Permission (to submit GPU work from background) (IOAF code 6) 2020-05-14 22:33:13.440474+0800 YaoYao WatchKit Extension[249:11942] Execution of the command buffer was aborted due to an error during execution. Insufficient Permission (to submit GPU work from background) (IOAF code 6) 2020-05-14 22:33:13.440660+0800 YaoYao WatchKit Extension[249:11942] Execution of the command buffer was aborted due to an error during execution. Insufficient Permission (to submit GPU work from background) (IOAF code 6) 2020-05-14 22:33:13.440806+0800 YaoYao WatchKit Extension[249:11942] Execution of the command buffer was aborted due to an error during execution. Insufficient Permission (to submit GPU work from background) (IOAF code 6)Thread 1: EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=50 MB, unused=0x0)結論
總結
以上是生活随笔為你收集整理的使用telephonymanager真机调试 闪退_watchOS 上的一次 SKView 内存泄露调试的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【图像】双边滤波
- 下一篇: thinkphp 模板 php函数调用,