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

Browser unit test failures on Mac #627

Open
allison-truhlar opened this issue Jul 31, 2024 · 1 comment
Open

Browser unit test failures on Mac #627

allison-truhlar opened this issue Jul 31, 2024 · 1 comment

Comments

@allison-truhlar
Copy link

When using npm run test on a Mac running Sonoma 14.5, 61/269 tests fail. I receive the same error message for all: Error: WebGL not supported. I have confirmed through visiting chrome://gpu/ in the Chrome browser that WebGL is enabled; in addition, the local server started through npm dev-server works to visualize files. I am working on resolving the issue and plan to open a pull request.

@hubbardp
Copy link
Contributor

I get the same failure on macOS 12.1 and 14.0 beta, with error messages like this:

FAIL |browser| src/single_mesh/frontend.browser_test.ts [ src/single_mesh/frontend.browser_test.ts ]
Error: WebGL not supported.
❯ initializeWebGL src/webgl/context.ts:41:10
39| const gl = canvas.getContext("webgl2", options);
40| if (gl == null) {
41| throw new Error("WebGL not supported.");
| ^
42| }
43| gl.memoize = new Memoize<any, RefCounted>();
❯ webglTest src/webgl/testing.ts:25:9
❯ fragmentShaderTest src/webgl/shader_testing.ts:367:2
❯ src/single_mesh/frontend.browser_test.ts:43:4

Interestingly, I do not get failures on Windows 11 Enterprise.

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

No branches or pull requests

2 participants