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

Data layers don't show up when running Qt with --disable-gpu #282

Open
astrofrog opened this issue Dec 2, 2020 · 2 comments
Open

Data layers don't show up when running Qt with --disable-gpu #282

astrofrog opened this issue Dec 2, 2020 · 2 comments

Comments

@astrofrog
Copy link
Member

I'm not 100% sure if we want to support this but to get WWT to work correctly in glue under Big Sur I had to pass --disable-gpu to QtWebEngine. As an example, using the following and putting it in a file called test.py:

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

from astropy.table import Table
OEC = 'https://worldwidetelescope.github.io/pywwt/data/open_exoplanet_catalogue.csv'
table = Table.read(OEC, delimiter=',', format='ascii.basic')

layer = wwt.layers.add_table_layer(table=table, frame='Sky',
                           lon_att='ra', lat_att='dec', size_scale=100, lon_unit='degree')

print(layer.lon_unit)

wwt.wait()

I ran:

QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu"  python test.py

WWT then runs slowly (as expected) but the points don't show up at all. I normally wouldn't really care about this but I've seen this behavior in other contexts before so I wonder if this is just highlighting a real issue that needs fixing.

@astrofrog
Copy link
Member Author

Ah here we go, I think it must be related to WorldWideTelescope/wwt-webgl-engine#32 - it's just a more deterministic way of reproducing that issue.

@pkgw
Copy link
Contributor

pkgw commented Dec 2, 2020

Weird. This feels like something that, like you imply, may not be worth the effort to fix, but I would definitely like to understand what's going on here. Please update with anything that you figure out!

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

2 participants