pywwt icon indicating copy to clipboard operation
pywwt copied to clipboard

WebGL blacklisted in some Qt versions

Open astrofrog opened this issue 3 years ago • 5 comments

If I use PyWWT with PyQt5 5.14 and PyQtWebEngine 5.14, the following example:

from pywwt.qt import WWTQtClient
wwt = WWTQtClient(block_until_ready=True)
wwt.wait()

raises the following warnings/errors:

[11741:48899:0721/165650.545296:ERROR:context_group.cc(151)] ContextResult::kFatalFailure: WebGL2 blacklisted
This browser does not support WebGL 2.0. Some features will work suboptimally. To get the full AAS WWT experience, consider using the latest version of Chrome, Firefox or Edge. In case you would like to use Safari, we recommend that you enable WebGL 2.0 (level=1, line_number=35419, source_id=https://web.wwtassets.org/engine/7/wwtsdk.js)
[11741:48899:0721/165650.549528:ERROR:context_group.cc(143)] ContextResult::kFatalFailure: WebGL1 blacklisted
[11741:48899:0721/165650.550852:ERROR:context_group.cc(143)] ContextResult::kFatalFailure: WebGL1 blacklisted

It would be good to figure out why this is happening and what users can do to fix this (maybe even mention this in the PyWWT Qt docs section)

astrofrog avatar Jul 21 '21 15:07 astrofrog

In case it is related: https://bugreports.qt.io/browse/QTBUG-75262 (it looks like I even commented on that issue! 😆 )

astrofrog avatar Jul 21 '21 15:07 astrofrog

Agreed. Some help here would be very appreciated seeing as I don't own Mac hardware! In the CI, I need to set

QTWEBENGINE_CHROMIUM_FLAGS=--ignore-gpu-blacklist

in order to get the tests to run.

pkgw avatar Jul 21 '21 16:07 pkgw

Yes setting that fixes the issue I think. I am still left with a warning mentioning ES3 in case you have any ideas for that, but maybe not critical:

[12199:51459:0721/201656.500021:ERROR:context_group.cc(179)] ContextResult::kFatalFailure: ES3 is blacklisted/disabled/unsupported by driver.

astrofrog avatar Jul 21 '21 19:07 astrofrog

I haven't seen that one before. This is all probably related to the fact that the latest version of the engine now tries to use WebGL 2.0 (basically needed for accelerated FITS rendering), although it is intended to still work with WebGL 1.0 if 2.0 isn't available.

pkgw avatar Jul 21 '21 19:07 pkgw

PKGW Thank you so much for the answer in Linux.

Astrofrog , perhaps, might check out Astro-Robbie, sometimes known as April @ https://www.youtube.com/@SatansAstrologyAndroid/streams. A work in progress ...

oddasee avatar Feb 05 '24 23:02 oddasee