简体   繁体   English

移动safari崩溃日志 - 低内存

[英]Mobile safari crash log - low memory

I have a web app that occasionally falls over on start up on Mobile Safari (only for an iPhone4s, however, bizarrely it's fine with an iPhone4). 我有一个网络应用程序,偶尔会在Mobile Safari上启动(仅适用于iPhone4s,但奇怪的是它适用于iPhone4)。

I know it's a low memory issue but I am new to deciphering crash logs. 我知道这是一个内存不足的问题,但我是解密崩溃日志的新手。

I am getting the following in the log: 我在日志中得到以下内容:

 Name                    <UUID>                       rpages       recent_max   fds      [reason]          (state)
MobileSafari <6668023ea0673cda85a45ba6eea56202>        77461            77461  100   [vm-pageshortage]  (audio) (frontmost) (resume)

Does the (audio) reference under the (state) section mean that the crash is occuring when it's try to play / download / do something with a sound file, or is it not possible to tell the exact cause of the crash? (状态)部分下的(音频)引用是否意味着当它试图播放/下载/用声音文件做某事时发生崩溃,或者是否无法确定崩溃的确切原因?

Also any ideas why this would only happen on a 4s? 还有任何想法为什么这只会发生在4s?

I recently had a similar problem with a website that was crushing mobile safari. 我最近有一个类似的问题,一个破坏移动野生动物园的网站。 tested it on IOS6 and IOS7. 在IOS6和IOS7上进行了测试。

In my case it was CSS3 transform (-webkit-transform) property. 在我的例子中,它是CSS3转换(-webkit-transform)属性。

It seems like i had too much elements that i needed them to be hardware accelerated. 看起来我有太多的元素,我需要他们硬件加速。

i wrote a post about it in my blog: http://www.dimshik.com/ios-7-runs-out-of-memory-when-using-webkit-transform/ 我在我的博客上写了一篇关于它的帖子: http//www.dimshik.com/ios-7-runs-out-of-memory-when-using-webkit-transform/

also there is an example i have created that makes the mobile safari crash: http://jsfiddle.net/dimshik/dJLhh/8/ 还有一个我创建的例子让移动游侠崩溃: http//jsfiddle.net/dimshik/dJLhh/8/

    -webkit-transform: translate3d(0,0,0);

It turns out it was the download of the game's .mp3 file that was causing the crash. 事实证明这是导致崩溃的游戏.mp3文件的下载。 The original file was 1.3mb and once reduced to 0.3mb, the game no longer crashed. 原始文件为130mb,一旦减少到0.3mb,游戏不再崩溃。

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

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