Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL blacklisted in some Qt versions #305

Open
astrofrog opened this issue Jul 21, 2021 · 5 comments
Open

WebGL blacklisted in some Qt versions #305

astrofrog opened this issue Jul 21, 2021 · 5 comments

Comments

@astrofrog
Copy link
Member

astrofrog commented Jul 21, 2021

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
Copy link
Member Author

astrofrog commented Jul 21, 2021

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

@pkgw
Copy link
Contributor

pkgw commented Jul 21, 2021

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.

@astrofrog
Copy link
Member Author

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.

@pkgw
Copy link
Contributor

pkgw commented Jul 21, 2021

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.

@oddasee
Copy link

oddasee commented Feb 5, 2024

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants