Closed ahocevar closed 1 year ago
Looking at the debug output when run in a browser, I see errors like "There are too many active WebGL contexts on this page, the oldest context will be lost." and "WebGL: INVALID_OPERATION: loseContext: context already lost".
So it looks like some of the WebGL tests might not clean up after themselves properly. Any thoughts on this, @jahow?
This looks like a hairy bug. I can't reproduce it locally so it is likely system dependant.
There is a similar issue in mapbox-gl-js from 3 years ago: https://github.com/mapbox/mapbox-gl-js/issues/9691, but without resolution unfortunately...
I will try running the tests in an emulator to find other systems where it can be reproduced.
@jahow Thanks for looking into this! Maybe this helps: I'm on a Macbook with M2 CPU and plenty of GPU power and memory.
@jahow #14928 fixes this problem, and I think #14929 would also be an improvement.
I cannot run the browser tests (
npm run karma
) locally any more. I always get many failing WebGL tests. @jahow, any idea what might be causing this or how it can be fixed? I tried this even with a fresh clone of the repository, and with different node versions.: