简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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