New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 899690 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
OOO until 2019-01-24
Closed: Oct 29
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug


Previous locations:
v8:8306


Sign in to add a comment

ArrayBuffer created from external buffer can't be used in WebGL

Reported by orange4g...@gmail.com, Oct 14

Issue description

Version: Chromium 69.0.3497.106
OS: Windows 10
Architecture: x64

steps will reproduce the problem?
1. create ArrayBuffer from external data (For me, I wrote a N-API native module to do this)
2. WebGL: create Texture and bind texImage2D with external ArrayBuffer
3. You got an error

What is the expected output?
No crash

What do you see instead?
Crash

Please use labels and text to provide additional information.

webgl webgl2 arraybuffer extenral-arraybuffer

 
Project: chromium
Moved issue v8:8306 to now be  issue chromium:899690 .
Components: Blink>WebGL
Additional information to reproduce :

1. Download the files from link below
https://drive.google.com/file/d/1iQJyylkXJI1_Wwbu699vbxTExXfhgtzz/view?usp=sharing
2. $ npm install (install electron)
3. $ ./build.sh (build N-API module)
4. $ npm start (start electron)

You can get a expected output with grey color wavy image rendered on a canvas with UNCOMMENT line 20 at 'index.html'

What index.html does do is simply renders a Texture2D which of code is mostly came from here (https://developer.mozilla.org/ko/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL)
Owner: kbr@chromium.org
Status: WontFix (was: Untriaged)
I'm sorry, but our team doesn't support Electron or adding native Node modules into the Electron environment. Looking at your test case, I'm not sure whether the sandbox properly allows loading of the Node module; whether the native Node module is properly being loaded into the renderer process; whether the external ArrayBuffer that's being allocated is compatible with the ArrayBuffers that V8 typically allocates, so they can be passed into WebGL's C++ code; etc. Again, I'm sorry but we can't support you. Please reach out to the Electron community for help.

Sign in to add a comment