Page MenuHomePhabricator

Safari on iPad crashes when viewing large articles?
Closed, DeclinedPublic

Description

When viewing an article as large as https://en.m.wikipedia.org/wiki/Fukushima_Daiichi_nuclear_disaster, when I click one of the table of contents links, the screen turns white and my Safari crashes. It may also crash my iPad as well. Is MobileFrontend using way too much memory for large pages? It seems to be scrolling through the long page by setting scrollTop to something else that is causing the crash. The iPad, I think, is using a lot of memory when I view such a long page. I do not think it is MobileFrontend's issue. It might just be providing safari some awful lot of content that tells safari to use a hell of a lot of memory. It could also be the images, have you set any custom fonts? You could also split the page into sections so the user reads one section, clicks on a link that goes to the next section to continue reading the article, if you guys cannot reproduce this. You could also improve performance by loading content when the user scrolls down to them, and removing content from the page when is not viewed for some time. Can you check if this memory issue happens on the iPhone as well?


Version: unspecified
Severity: normal
Platform: Tablet PC

Details

Reference
bz68845

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:35 AM
bzimport set Reference to bz68845.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

Which Safari version is this about and which iPad version?
(For general information, see https://www.mediawiki.org/wiki/How_to_report_a_bug )

No luck so far reproducing the crash, but following the TOC links is definitely slow on en.wiki on iPad. The links are just plain anchor links, although they do have an eventLogging action bound to them.

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/qc5BQmBq

jgonera wrote:

Reproduced on iPad retina.

jgonera wrote:

Does not happen every time though...

jgonera wrote:

My guess is that this is a iOS Safari bug. It seems to crash only now and then (actually I haven't been able to reproduce more than once) and scrolling through the page seems to always work. It might be related to Safari rendering the content only when the user scrolls to it. Possibly there is a bug that causes it to crash if we suddenly scroll by a huge distance.

I couldn't reproduce that on a simple page with a lot of lorem ipsum and a link scrolling all the way to the bottom. It's possible that it's a combination of scrolling and CSS or JS that triggers the bug. http://stackoverflow.com/questions/11831429/mobile-safari-on-ios-crashes-on-big-pages suggests that transitions might cause it.

I'd watch this bug and see if it happens more often. If it does, we should find a workaround.

It's in stable now so changing component.
Anymore instances of this?

Please reopen if this is still being experienced.