google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.09k stars 299 forks source link

Browser unit test failures on Mac #627

Open allison-truhlar opened 3 months ago

allison-truhlar commented 3 months ago

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 commented 3 months ago

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.