Bug 241478 - Huge or many textures can crash Safari
Summary: Huge or many textures can crash Safari
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-09 11:26 PDT by Takahiro Aoyagi
Modified: 2022-06-16 11:27 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takahiro Aoyagi 2022-06-09 11:26:48 PDT
iOS Safari can crash or a web page can be unexpectedly refreshed if huge or many textures are uploaded in a web page.

This is a simple test reproducing the problem. The test just loads image(s) and uploads texture(s) with gl.texImage2D().

https://takahirox.github.io/ios-render-test/simple.html

How to test
* Access the test page
* Select texture num (Safari can crash more easily with larger number)
* Click Run button

In our tests, we confirmed that iOS Safari crashed or the web page was unexpectedly refreshed on

iPhoneX Safari iOS 15.5: 3 or 4 textures
iPhone 11 iOS 15.5: 1 texture

Refer to https://github.com/mozilla/hubs/issues/4669#issuecomment-1150543088 for more results.

This problem is not reproducible on Windows Chrome or Android Chrome. So it may be an iOS Safari specific problem.

iOS Chrome may seem to have a same problem. So more precisely, the problem might be iOS specific rather than iOS Safari specific.
Comment 1 Radar WebKit Bug Importer 2022-06-16 11:27:13 PDT
<rdar://problem/95316524>