inspectdev / inspect-issues

Issue tracker for Inspect
23 stars 2 forks source link

iOS: Better support for when Safari is crashing #140

Open jcblancomartinez opened 2 years ago

jcblancomartinez commented 2 years ago

Steps to Reproduce:

  1. I've enabled Network's "Preserve log" and Console's "Preserve log upon navigation"
  2. I've enabled Sources' "Pause on exceptions" with "Paused on caught exceptions" ticked.
  3. I access a website from my iPhone's Safari
  4. I don't
  5. I end up getting "A problem repeatedly occurred on http..." in Safari
  6. No logs in Console and Network are preserved.

I'm only able to reproduce this issue on a iPhone device with iOS 14.2. To add more context, if I load the same page after having changed Safari's "Page zoom" from 100% to 75%, the page loads correctly.

These are my preferences:

Screenshot from 2022-03-30 09-21-19

I have 13 days left of my trial and I doubt I will buy it considering it is not serving my purpose.

Thanks.

Best Regards.

jcblancomartinez commented 2 years ago

I've managed to reproduce the issue on iOS' Chrome and no relevant logs gets recorded. "Can't open this page" message shows and when clicking on "Send feedback" and view System logs, only a Session identifier and the current url show.

Any tip on how to detect the issue happening here?

Thanks.

auchenberg commented 2 years ago

@jcblancomartinez I assume the error ` "A problem repeatedly occurred on http..." you are seeing in Safari, is the built on one? Based on this it sounds like your website/app is crashing Safari on your device. If this is the case, this would also crash the webinspector service on your device, which Inspect connects to in order to get debugging information out of Safari.

If Safari crashes, there's not much Inspect or Safari DevTools can do. Inspect can't debug Chrome on iOS. See https://github.com/inspectdev/inspect-issues/issues/24 for details

Do you have a screenshot?

jcblancomartinez commented 2 years ago

Hi @auchenberg Thanks for the details. Fortunately, I found the root cause but it would be cool to have a way to debug web page crashes for the future.

Here you have the screenshot. Screenshot from 2022-03-30 09-27-57

How come this issue is related to this? That one is related to debug Chrome and my issue is about a webpage crash on iOS' Safari.

Thanks.

mixtur commented 2 years ago

It would be nice to have some debug information upon crashes.

The very reason we turned to Inspect is because we do webgl, webgl crashes a lot on apple devices, and we would like to see some debug information after crashes. It shouldn't necessarily be something related to devtools. Maybe some more low level logs or crash reports or something?

At least don't kill the inspector window when the correspondent tab on the device crashes. Allow users to see the state just before the crash, and allow them to kill the window manually.

Pretty please?