Chrome webgl issue
Hello guys, did you see that there is an issue with chrome ?
We have a webgl issue, the same issue was there during a few hours I think a few months back. Each occurrence seems to be linked to a chrome update but I'm not entirely sure of it. Modifying "Use hardware acceleration when available" chrome option does fix the issue.
I'm copying the issue I created in the website repo here as it seems more lively (https://github.com/molstar/molstar.github.io/issues/10)
In fact we have this console error :
I have just tested Chrome 114 on PC and MacOS and both work for me.
Ok, I'm running it on ubuntu but the chrome is the 114 too (Version 114.0.5735.198 (Official Build) (64-bit)) what is even more weird is when we test webgl it works => https://get.webgl.org/ can see the spinning cube.
I have also the same problem. I use ubuntu 22.04.2, I have chrome version 114.0.5735.198. The same console error if I use the website: https://molstar.org/viewer/.
- If I use this site: https://get.webgl.org/, webgl seems to works just fine.
- If I use breakpoints in https://molstar.org/viewer/ and remove the option: [powerPreference: "high-performance"] from the powerPreference in the file molstar.js, the error doesn't show anymore but I have those warnings:
@arose any ideas?
Hmm, is this recent or have seen it with Chrome version before 114? There was a Chrome bug in 2022 but it is marked as fixed, see https://bugs.chromium.org/p/chromium/issues/detail?id=1283929.
Does https://codepen.io/arose/pen/qBQrQjz show an error?
It works now
Hi,
one of our team members experiences this issue since February. Only in Chrome (current version). WebGL itself works on https://get.webgl.org/. Mol* itself works in Safari. Unclear if there's a console error for https://codepen.io/arose/pen/qBQrQjz, can double-check if needed.
Are you by any chance aware of issues in Chrome that might cause this? More of an FYI, she's using Safari as fallback for now.
I am not aware of any issue. Would be good to have some more info.
- what Browser version exactly
- are GPU drivers up-to-date?
- any errors in the Browser console?
- output of
chrome://gpu/
Hi, here's all the gathered info:
what Browser version exactly
Chrome 126.0.6478.127 (x86_64)
are GPU drivers up-to-date?
Yes, it's a MacBook Pro with Intel Iris Plus Graphics. OS and drivers are up-to-date.
any errors in the Browser console?
Yes, same error and stack trace as above.
output of chrome://gpu/
Please find the corresponding output attached. Output was obtained before the OS/driver update.
Unclear if there's a console error for https://codepen.io/arose/pen/qBQrQjz, can double-check if needed.
No error message here.
* WebGL: Software only, hardware acceleration unavailable
* WebGL2: Software only, hardware acceleration unavailable
* WebGPU: Software only, hardware acceleration unavailable
To allow molstar without hardware acceleration you need to add a GET param ?allow-major-performance-caveat=1. But note that it will be slow to render anything not small or at a normal resolution/fullscreen!
Got it, thanks. Will try to remember this if the issue comes up again.