Bug 227117

Summary: Type Error: Argument 2 (data) to WEBGLRenderingContext.bufferdata must be an instance of ArrayBufferView
Product: WebKit Reporter: Mehdi Sabwat <mehdisabwat>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: dino, kbr, kkinnunen, ysuzuki
Priority: P2    
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screenshot of the crash
none
files for local build none

Description Mehdi Sabwat 2021-06-17 04:38:00 PDT
Created attachment 431653 [details]
screenshot of the crash

Hi,

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.1.15.1.12). 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 ***