加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

iPhone应用程序随机崩溃,没有任何错误或堆栈跟踪

发布时间:2020-12-14 18:55:55 所属栏目:百科 来源:网络整理
导读:我是新来的 .对不起,如果我正在重复这个问题,但我的问题与其他问题略有不同. 我的应用程序在一定的时间间隔后随机崩溃,没有任何错误日志或堆栈跟踪.我怀疑这是一个记忆问题.我有以下问题: 1.) How to get stack trace (I have tried NSZombie enabled and N
我是新来的 .对不起,如果我正在重复这个问题,但我的问题与其他问题略有不同.

我的应用程序在一定的时间间隔后随机崩溃,没有任何错误日志或堆栈跟踪.我怀疑这是一个记忆问题.我有以下问题:

1.) How to get stack trace (I have tried NSZombie enabled and NSUnacughtExcpetion handler) but didn’t worked

2.) I get Memory warning frequently in my app. How do I confirm whether it’s the prime suspect for the above issue? (I have used Leaks,my app crashes when it has just 4Mb usage so I am not quite sure whether memory leak is causing it my app to crash. I know certain application which take heap memory more than 4MB .)

3.) What is the upper limit for Memory leak for an application in iOS before app crashes ?

4.) Would ARC help me in this situation ?

此外,我尝试使用NSLog语句调试问题,但由于它随机崩溃,我很难用这种技术检测根本原因.

任何想法将是或帮助将非常感激

解决方法

My app crashes randomly after certain amount of time interval without any error logs or stack trace. I suspect it’s an memory issue.

要确认这是一个内存问题,请将您的设备与iTunes同步,并在?/ Library / Logs / CrashReporter / MobileDevice /中查找名称中包含LowMemory的文件.如果您在应用名称旁边看到(被抛弃),则表明它已被iOS杀死,因为它占用了太多内存.

应用程序退出而不留下崩溃报告的另一种方式是它是否为erroneously called exit().

有关详细信息,请参阅“Debugging Deployed iOS Apps”和“Understanding and Analyzing iOS Application Crash Reports”.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读