Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL - WebAssembely not supporte #8220

Open
bargmy opened this issue Sep 27, 2024 · 6 comments
Open

WebGL - WebAssembely not supporte #8220

bargmy opened this issue Sep 27, 2024 · 6 comments
Labels

Comments

@bargmy
Copy link

bargmy commented Sep 27, 2024

i have the 0.50.4 version of NW.JS Arm build on my raspberry pi.
the problem is when i redirect to a html game ( url ) that requires web assembely or webGL... it just errors ; Webgl is not supported update your browser;
but when i run the game from package.nw it work fine without error...

"chromium-args": "--enable-webgl --enable-webgl2 --enable-webgl2-compute-context --ignore-gpu-blacklist --enable-experimental-canvas-features --disable-plugins --disable-internal-flash --disable-popup-blocking --enable-gamepad --enable-html5-camera --allow-file-access-from-files"

Device : Raspberry PI 5 4gB ram -- Raspbian Lite 32bit -- xfce

@ayushmanchhabra
Copy link
Contributor

ayushmanchhabra commented Nov 13, 2024

You have a HTML game deployed on a website. You also have the source code with you. When you run the game as a website in NW.js, it gives a WebGL is not supported error. When you place the game's source inside the package.nw and run in with NW.js, it works fine. Is this correct?

@bargmy
Copy link
Author

bargmy commented Jan 15, 2025

You have a HTML game deployed on a website. You also have the source code with you. When you run the game as a website in NW.js, it gives a WebGL is not supported error. When you place the game's source inside the package.nw and run in with NW.js, it works fine. Is this correct?

Yes exactly. sorry for responding lately.. also the game im deploying its on localhost.
oh btw nwjs wont even run on x64 version of raspbian with error Segmentation Fault.

@ayushmanchhabra
Copy link
Contributor

If you want to run the game as a website in NW.js, then you need to pass the same flags you have defined in chromium-args to the nw executable. For example:

nw --flag=value --another-flag=another_value

@bargmy
Copy link
Author

bargmy commented Jan 15, 2025

If you want to run the game as a website in NW.js, then you need to pass the same flags you have defined in chromium-args to the nw executable. For example:

nw --flag=value --another-flag=another_value

okay so i did but i still had the issue..
but intresting thing is chrome://gpu says webgl2 & webgl is enabled!

image
but any unity game or 3D game wont run
image

i tried some emulators but only Sega Genesis & GameBoy didnt crash because of any webgl or something errors

@ayushmanchhabra
Copy link
Contributor

This sounds like a bug..

@bargmy
Copy link
Author

bargmy commented Jan 16, 2025

This sounds like a bug..

should i use opengl mesa or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants