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
PySide6 backend causes application to flash on creation of opengl context #2489
Comments
Can you try creating the app instance like this in the main function:
That would obviously be the vispy version of the app which I think is a wrapper around the native Qt/PySide app. I see you keep a handle on it in the |
sorry for my very late reply. def main():
from vispy.app import use_app
app = use_app('pyside6')
app.create()
main_window = MainWin(app)
main_window.show()
return app.run() Whether or not I keep a reference of the Screencast.from.2023-06-17.09-43-44.webm |
Tracking things with |
also seems to happen on windows. |
OS: Ubuntu 23.04
Desktop Backend: Wayland
Qt6 backend: X11
Upon creation of a scene, it seems that the main window gets destroyed before getting recreated with the scene.
Maybe I'm passing in the wrong object?
Screencast.from.2023-05-21.21-17-36.webm
mamba list
After installing:
qt6-wayland adwaita-qt6 qgnomeplatform6
for better integration with wayland, the problem still persists:Screencast from 2023-05-21 21-21-39.webm
I guess the problem "goes away" if you create the scene as part of the
__init__
for the main window.I haven't done an exhaustive search, but I'm pretty sure the problem doesn't appear if PySide2 is used mostly because I observed this when trying to see if we were ready for pyside6.
The text was updated successfully, but these errors were encountered: