简体   繁体   English

崩溃日志中我的应用名称旁边的“放弃”是什么意思?

[英]What does “jettisoned” next to my app name in a crash log signify?

My app crashes several times without any error or stack trace on my console. 我的应用程序崩溃了几次,没有任何错误或堆栈跟踪在我的控制台上。 Then the only way left is to go and check Apple's crash reporter. 那么剩下的唯一方法就是去检查Apple的崩溃记者。 I found "jettisoned" next to my app name, which in turn implies iOS killed my app, but how do I figure out why did it happened? 我发现我的应用名称旁边有“抛弃”,这反过来暗示iOS杀了我的应用程序,但我怎么弄清楚它为什么会发生? Why is iOS killing my app? 为什么iOS会杀死我的应用? Initially, I thought it was a memory overflow issue, but then, using Instruments, I figured out that my app was taking hardly 4-5 MB of memory, so I discarded those issues. 最初,我认为这是一个内存溢出问题,然后,使用Instruments,我发现我的应用程序几乎没有4-5 MB的内存,所以我放弃了这些问题。 Apple's doc does not mention much about this. Apple的文档没有提及太多。 Any help or suggestions would be highly appreciated. 任何帮助或建议将受到高度赞赏。

崩溃报告

It means the process was terminated because iOS needed memory: 这意味着该进程已终止,因为iOS需要内存:

Memory usage of each process is reported in terms of number of memory pages, which as of this writing are 4KB each. 每个进程的内存使用量按内存页数报告,每次写入时内存页数为4KB。 You will see "(jettisoned)" next to the name of any process terminated by iOS to free up memory . 您将在iOS终止的任何进程名称旁边看到“(jettisoned)”以释放内存 If you see it next to your application's name, that confirms the application was terminated for using too much memory. 如果您在应用程序名称旁边看到它,则确认应用程序因使用太多内存而终止。

Documentation 文档

I would take a look at that technical note for some additional help. 我会看一下技术说明,以获得一些额外的帮助。 The documentation also points out the Instruments does not measure graphics memory use, and that requires special handling. 文档还指出仪器不测量图形内存使用,这需要特殊处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM