iphone – iOS低内存崩溃,但非常低的内存使用

iphone – iOS低内存崩溃,但非常低的内存使用,第1张

概述这已经恼火了我很长时间。我的应用程序运行占用大约2.74MB的内存。没关系。但是,当它创建一个UIWebView它上升到5.87MB左右,并继续崩溃。这些是在运行在我的第一代iPad上的Live Bytes in Instruments中给出的值。 没有崩溃日志,我可以找到。以下是从控制台: MyApp[1205] <Warning>: Received memory warning. Level 这已经恼火了我很长时间。我的应用程序运行占用大约2.74MB的内存。没关系。但是,当它创建一个UIWebVIEw它上升到5.87MB左右,并继续崩溃。这些是在运行在我的第一代iPad上的live Bytes in Instruments中给出的值。

没有崩溃日志,我可以找到。以下是从控制台:

MyApp[1205] <Warning>: Received memory warning. Level=1MyApp[1205] <Warning>: applicationDIDReceiveMemoryWarningSpringBoard[30] <Warning>: Received memory warning. Level=1MobileMail[1199] <Warning>: Received memory warning. Level=1configd[26] <Notice>: jetsam: kernel memory event (95),free: 428,active: 1853,inactive: 1011,purgeable: 338,wired: 15122configd[26] <Notice>: jetsam: kernel termination snapshot being createdcom.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x8966]) Exited: Killed: 9com.apple.launchd[1] <Notice>: (UIKitApplication:com.MyApp.MyApp[0xdd4f]) Exited: Killed: 9SpringBoard[30] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed: 9kernel[0] <DeBUG>: launchd[1207] Builtin profile: MobileMail (sandBox)SpringBoard[30] <Warning>: Application 'MyApp' exited abnormally with signal 9: Killed: 9configd[26] <DeBUG>: captivenetworkSupport:UIAllowednotifyCallback:70 uiallowed: falseReportCrash[1206] <Error>: libmobileGestalt loadBasebandMobileEquipmentInfo: CommCenter error: 1:45ReportCrash[1206] <Error>: libmobileGestalt copyInternationalMobileEquipmentIDentity: Could not get mobile equipment info dictionaryReportCrash[1206] <Error>: Saved crashreport to /library/Logs/CrashReporter/LowMemory-2011-05-12-160645.pList using uID: 0 gID: 0,synthetic_euID: 0 egID: 0

我已删除对image@R_419_6889@d的所有调用,将自动释放的内容更改为alloc / release。但我不能解决为什么这是发生,它正在驱使我疯了。

感谢任何帮助!

解决方法 你几乎肯定使用了比你想象的更多的记忆。

你不知道你要做什么,看看你的应用程序是真正使用,但一旦你做了几次,你会记住。

>使用分配性能工具运行。
>单击“分配”下的VM跟踪器“行”(在截图中)
>单击“自动快照”

然后你会看到你的脏内存(目前在我的截图中20.34MB)。

这应该给你一个更好的图片为什么你的应用程序正在退出。你可能有一些大泄漏发生。

祝你好运!

总结

以上是内存溢出为你收集整理的iphone – iOS低内存崩溃,但非常低的内存使用全部内容,希望文章能够帮你解决iphone – iOS低内存崩溃,但非常低的内存使用所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1087691.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存