我的应用程序在一定的时间间隔后随机崩溃,没有任何错误日志或堆栈跟踪.我怀疑这是一个记忆问题.我有以下问题:
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”.
总结以上是内存溢出为你收集整理的iPhone应用程序随机崩溃,没有任何错误或堆栈跟踪全部内容,希望文章能够帮你解决iPhone应用程序随机崩溃,没有任何错误或堆栈跟踪所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)