Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify the cause of a Safari crash on iOS?

We have a webapp that is very javascript intensive - a lot of activity with custom markers on google maps and potentially a lot of items on the page.

Intermittently and unpredictably, Safari on iOS will give the 'A problem occurred with this webpage so it was reloaded' error.

The majority of the time, this happens after a photo has been input and resized by the broswer - an upload hasn't happened yet.

In researching potential issues, I've found the following links

  1. https://discussions.apple.com/thread/6707626?tstart=0
  2. https://www.quora.com/When-Safari-says-A-problem-occurred-with-this-webpage-so-it-was-reloaded-what-sort-of-problem-has-likely-occurred

The real question is how do I identify the cause of the crash? This never occurs on desktop so working out if it's an iOS limitation, a memory issue, a resizing problem or another cause is incredibly difficult.

I've connected an iPhone to a Mac to run the web inspector on the phone but this crash just terminates the whole process without logging any errors so there is no help there either.

Also, there is no reliable way to reproduce the issue - it just happens 'sometimes' with no consistent feature as to what the cause may be.

Thanks in advance.

like image 268
Britic Avatar asked Jun 07 '17 14:06

Britic


People also ask

Why does my Safari keep crashing on iPhone?

Clear Out History & Web Data in Safari Safari accumulates caches, browsing history, cookies, and other data in the iPhone or iPad. Sometimes that data can interfere with app functionality, so clearing it out can be a remedy to problems with the app crashing or stalling on some web sites.

Why does Safari randomly crash?

You have too many tabs open, and they're putting a strain on the CPU. Although Safari indeed uses less memory than Chrome and other browsers, opening too many tabs will still cause it to crash sometimes, especially if you have other resource-intensive applications running simultaneously.


1 Answers

You've tried this? :

  1. connect your Phone to your Mac and
  2. start xcode
  3. open Window->Organizer->Devices tab->Console and see if there are Errors while reproducing the issue.
like image 120
suther Avatar answered Oct 16 '22 17:10

suther