molstar icon indicating copy to clipboard operation
molstar copied to clipboard

Chrome webgl issue

Open lcsthom opened this issue 2 years ago • 9 comments

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.

image

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)

lcsthom avatar Jun 27 '23 09:06 lcsthom

In fact we have this console error : image

lcsthom avatar Jun 27 '23 09:06 lcsthom

I have just tested Chrome 114 on PC and MacOS and both work for me.

dsehnal avatar Jun 27 '23 16:06 dsehnal

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.

lcsthom avatar Jun 28 '23 07:06 lcsthom

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: image

qubit-nathan avatar Jun 28 '23 07:06 qubit-nathan

@arose any ideas?

dsehnal avatar Jun 28 '23 11:06 dsehnal

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?

arose avatar Jun 29 '23 05:06 arose

It works now

lcsthom avatar Jul 12 '23 11:07 lcsthom

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.

sbittrich avatar Jun 28 '24 18:06 sbittrich

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/

arose avatar Jun 30 '24 05:06 arose

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.

about-gpu.txt

sbittrich avatar Jul 08 '24 14:07 sbittrich

*   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!

arose avatar Jul 14 '24 01:07 arose

Got it, thanks. Will try to remember this if the issue comes up again.

sbittrich avatar Jul 18 '24 16:07 sbittrich