iphone - 崩溃日志中我的应用名称旁边的 "jettisoned"表示什么?

标签 iphone ios xcode ipad memory

我的应用程序崩溃了几次,在我的控制台上没有任何错误或堆栈跟踪。那么剩下的唯一方法就是去查看Apple的崩溃报告器。我在我的应用名称旁边发现“抛弃”,这反过来意味着 iOS 杀死了我的应用,但我如何弄清楚它为什么会发生?为什么 iOS 会杀死我的应用程序?最初,我认为这是一个内存溢出问题,但后来,使用 Instruments,我发现我的应用程序几乎没有占用 4-5 MB 内存,所以我放弃了这些问题。 Apple 的文档对此并没有提及太多。任何帮助或建议将不胜感激。

Crash Report

最佳答案

表示进程因iOS需要内存而终止:

Memory usage of each process is reported in terms of number of memory pages, which as of this writing are 4KB each. You will see "(jettisoned)" next to the name of any process terminated by iOS to free up memory. If you see it next to your application's name, that confirms the application was terminated for using too much memory.

Documentation

我会查看该技术说明以获得更多帮助。该文档还指出 Instruments 不测量图形内存使用情况,这需要特殊处理。

关于iphone - 崩溃日志中我的应用名称旁边的 "jettisoned"表示什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11087424/

相关文章:

ios - 如何根据 ios 中的按钮组合访问数组中的项目

ios - 如何在 objective-c 中创建动态 SOAP 信封

ios - IDEFoundation.IDETemplateParseError 错误 1

objective-c - 一般 XCode UI 问题

ios - 从 subview Controller 呈现模态视图 Controller

ios - 如何处理 iOS 11 Navigation BarButtonItems 错误?

iphone - 我如何在 UITableView 上添加 UIActivityIndi​​cator

iPhone CATransition 在任何动画的开始和结束处添加淡入淡出?

javascript - IOS:如何检测用户在内容可编辑的 div 中更改 UIWebView 上的文本

c# - Unity - 加载错误时脚本化对象具有不同的序列化布局