Bug 227117 - Type Error: Argument 2 (data) to WEBGLRenderingContext.bufferdata must be an instance of ArrayBufferView
Summary: Type Error: Argument 2 (data) to WEBGLRenderingContext.bufferdata must be an ...
Status: RESOLVED DUPLICATE of bug 223167
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 14
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2021-06-17 04:38 PDT by Mehdi Sabwat
Modified: 2021-06-21 17:42 PDT (History)
4 users (show)

See Also:

screenshot of the crash (173.25 KB, image/png)
2021-06-17 04:38 PDT, Mehdi Sabwat
no flags Details
files for local build (6.32 MB, application/zip)
2021-06-17 04:39 PDT, Mehdi Sabwat
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mehdi Sabwat 2021-06-17 04:38:00 PDT
Created attachment 431653 [details]
screenshot of the crash


I think I found a bug in safari 14.1, that is related to webkit.

Steps to reproduce:

1. https://faac72d6-27e4-4421-8928-bdab305868ef.pub.instances.scw.cloud:8000/demo/build-test-no-video/vlc.html

2. open the terminal and run (on safari 14.1) __XPC_JSC_useWebAssemblyThreading=1 __XPC_JSC_useSharedArrayBuffer=1 __XPC_JSC_useWebAssemblyReferences=1 /Applications/Safari.app/Contents/MacOS/Safari

3. activate webgl 2.0 in Develop->Experimental Features

4. Click on the play icon (or on the canvas if the page finished loading)

This is working fine in other browsers (chrome 91, firefox 89) on the main desktop OSes (Macos, linux, windows)

At your disposal for more information/tests if needed.

Thank you
Comment 1 Mehdi Sabwat 2021-06-17 04:39:06 PDT
Created attachment 431654 [details]
files for local build
Comment 2 Kenneth Russell 2021-06-21 17:42:19 PDT
I'm pretty sure this was fixed by ysuzuki@ in Bug 223167. The fix should be in the Safari 15 beta, and presumably also in Safari Technology Preview. Could you please try 

It's difficult to run the test case. It hangs with Safari Technology Preview Release 125 (Safari 14.2, WebKit 15612. Could you please debug it further? Feel free to reopen this if it seems there is still a bug.

*** This bug has been marked as a duplicate of bug 223167 ***