Bug 226536

Summary: Crash while interacting with sketchfab.com webgl content
Product: WebKit Reporter: paul
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Major CC: bfulgham, dino, james, kbr, kkinnunen, simon.fraser, thorton, webkit-bug-importer
Priority: P1 Keywords: InRadar, Regression
Version: Safari 14   
Hardware: Unspecified   
OS: iOS 14   
URL: https://sketchfab.com/3d-models/cube-test-442c548d94744641ba279ae94b5f45ec
Attachments:
Description Flags
video of crash
none
crash log none

Description paul 2021-06-02 07:50:41 PDT
on 14.5.1

- goto https://sketchfab.com/3d-models/cube-test-442c548d94744641ba279ae94b5f45ec
- ping zoom - uzoom a few time
- browser crash "a problem occured on https://sketchfab.com/3d-models/cube-test-442c548d94744641ba279ae94b5f45ec"
Comment 1 Kimmo Kinnunen 2021-06-03 00:08:56 PDT
Thanks for the report.
I could not immediately repro the issue.

My steps using iPhone 11 and 12:
- navigated to the site
- pinch zoomed around, doubletap zoomed around

If you have time, please specify:
- The device used?
- Frequency: deterministic or sometimes?

If you have more time and a Mac, you could see if you can obtain the crash log from ~/Library/Logs/CrashReporter/MobileDevice/ . It can be populated by syncing the device through Finder.
Comment 2 James 2021-06-03 09:45:11 PDT
Created attachment 430477 [details]
video of crash
Comment 3 James 2021-06-03 09:57:29 PDT
Created attachment 430479 [details]
crash log
Comment 4 James 2021-06-03 09:58:18 PDT
Hello,

I'm using an iPhone 8 Plus, running iOS 14.5.1.

I can reproduce the crash very consistently. In my experiencing, pinch/zooming on any website with a Sketchfab iframe embedded (with the render running) will cause the crash. It doesn't seem related to the complexity of the render or the website where it's embedded. That cube sample is about as simple as it gets ( https://sketchfab.com/3d-models/cube-test-442c548d94744641ba279ae94b5f45ec ).

I've attached a video showing the issue. It took several zooms to happen, but sometimes less.

I've also attached the crash log. Let me know if that's not the right file.
Comment 5 Kenneth Russell 2021-06-03 12:43:40 PDT
Sketchfab's a major WebGL site so raising this to P1, Major priority. Could one of the Apple engineers please try to reproduce this on a device?

If there's a way for developers external to Apple to deploy and test WebKit builds on-device that would be fantastic.
Comment 6 Alexey Proskuryakov 2021-06-06 13:10:29 PDT
I can easily reproduce on iPhone 12 Pro with a recent WebKit.

Couldn't find the applicable report on my device for some reason, but given the repro steps (it's pinch zooming the whole webpage, not inside the WebGL canvas), this can only be a generic case of running out of memory. The attached log also looks like a low memory event.
Comment 7 Radar WebKit Bug Importer 2021-06-09 07:51:18 PDT
<rdar://problem/79076476>
Comment 8 Brent Fulgham 2022-02-12 19:27:37 PST
QA indicates this is now progressed from other GL work this cycle.