javascript - How to identify the cause of a Safari crash on iOS? - Stack Overflow

We have a webapp that is very javascript intensive - a lot of activity with custom markers on google ma

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

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.

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./thread/6707626?tstart=0
  2. https://www.quora./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.

Share Improve this question asked Jun 7, 2017 at 14:33 BriticBritic 5335 silver badges11 bronze badges 6
  • 1 Without any context I can tell you to check few things (if it is a web application): check if you are exceeding some number of connections, memory leak (RAM), GPU crash from memory leak or bug in transformations. – Martin Chaov Commented Dec 13, 2017 at 17:47
  • As Wallace suggested you can try sentry.io. It's free for the first month i think. Otherwise i would suggest optimizing execution times and inspect your functions inside the Chrome's performance tab and record a profile. – Robin Commented Dec 16, 2017 at 8:03
  • 3 Possible duplicate of How can I determine what crashed Mobile Safari? – ColorCodin Commented Jan 3, 2018 at 15:54
  • Does it work on another browser? If yes, what's different between that browser and Safari that is relevant to your project? – Simon Hyll Commented Jan 26, 2018 at 16:04
  • Try inverting your question - e.g why does my code work on desktop? You have much more scope for profiling and tracing your code on desktop. You may be unlucky and tripping on a mobile specific bug in the browser, but looking for resource usage and errant behaviour on the desktop might help you identify areas that would stress the constrained resources on mobile. Just because it appears to 'work' on desktop, doesn't mean you're not leaking resources like a sieve ;-) – Dave Meehan Commented Mar 10, 2018 at 10:00
 |  Show 1 more ment

1 Answer 1

Reset to default 1

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744178081a4561850.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信