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

Crash occurs when building WebGL2 (GLES3) with Mesh in 3D scene On Chromium100.0(MAC) #75054

Open
sakurasoooo opened this issue Mar 18, 2023 · 1 comment

Comments

@sakurasoooo
Copy link

sakurasoooo commented Mar 18, 2023

Godot version

3.5.2, 3.5.1

System information

Apple M1 Max, macOS Ventura(Version 13.1), Chrome 111, GLES3

Issue description

There is no Crash problem on Mac with 99.0 and older versions of Chromium.

When adding any CSG node containing a mesh in a 3D scene and building the project for WebGL (GLES3), it causes Chrome on Metal Mac to freeze for 1 minute, then displays a "WebGL context lost, please reload the page" alert. Then the canvas turns black, but the scene still runs. There are thousands of "at: _get_uniform (drivers/gles3/shader_gles3.h:433) - Condition "!version" is true. Returned: -1" errors in the developer console.

After testing on Metal Mac Safari 16, iOS 16, and Android 13 devices, there are no freezes or crashes; however, the models appear black.

On Windows 10, there are no issues.

When using WebGL(GLES2), there are no issues.

Intel Mac has not been tested.

image

After multiple crashes in Chrome, WebGL becomes unavailable. The crashes may have led the browser to consider WebGL unstable and subsequently disable it.

Steps to reproduce

  1. Create a new 3D project in Godot.
  2. Add a CSG node (e.g., CSGBox, CSGSphere, etc.) to the scene.
  3. Export the project as WebGL (GLES3).
  4. Run the exported project in Chrome on a Metal-supported Mac.
  5. Observe that the browser freezes for 1 minute, then displays a "WebGL context lost, please reload the page" alert, and the canvas turns black.

Minimal reproduction project

3dtest.zip

@sakurasoooo sakurasoooo changed the title Crash occurs when building WebGL (GLES3) with Mesh in 3D scene Crash occurs when building WebGL2 (GLES3) with Mesh in 3D scene On Chromium100.0(MAC) Mar 18, 2023
@Calinou
Copy link
Member

Calinou commented Mar 19, 2023

Related to #56670. We recommend sticking to GLES2 when targeting HTML5.

My guess is that this occurs due to the same reason as #70691 (see #70691 (comment)).

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

No branches or pull requests

2 participants