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

Cannot launch under wayland : Qt platform problem #3967

Open
yrogge opened this issue Nov 3, 2024 · 18 comments
Open

Cannot launch under wayland : Qt platform problem #3967

yrogge opened this issue Nov 3, 2024 · 18 comments
Labels
os: linux Specific issues for Linux-family OS qt Issues, related to Qt framework

Comments

@yrogge
Copy link

yrogge commented Nov 3, 2024

Expected Behaviour

Normal application launch, as worked "before" last system update.

Actual Behaviour

Freeze when launching (see log attached)

Steps to reproduce

Simply type "Stellarium" in terminal

System

  • Stellarium version: 24.3.0-upstream1.1~ubuntu24.10.1
  • Operating system: Ubuntu 24.10 (oracular) - Wayland display server (but same under XWayland)
  • Graphics Card: Intel UHD Graphics (integrated)
  • Screen type (if applicable): Lenovo Thinkbook Integrated (1920*1200, 60Hz)

Logfile

See attachments
Terminal output: Stellarium Log.txt
Log file: log.txt

@yrogge yrogge changed the title Cannot lauch : libEGL warning: did not find extension DRI_IMAGE_DRIVER version 1 Cannot launch : libEGL warning: did not find extension DRI_IMAGE_DRIVER version 1 Nov 3, 2024
@gzotti
Copy link
Member

gzotti commented Nov 3, 2024

Reads like a driver setup problem to me.

@10110111
Copy link
Contributor

10110111 commented Nov 3, 2024

Does any other Qt6-based app work? The following hints that the problem may be quite general:

QEGLPlatformContext: Failed to create context: 3009

Also, do you have a discrete GPU installed, possibly in an NVIDIA Optimus-like way?

@alex-w alex-w added the os: linux Specific issues for Linux-family OS label Nov 3, 2024
@yrogge yrogge changed the title Cannot launch : libEGL warning: did not find extension DRI_IMAGE_DRIVER version 1 Cannot launch under wayland : Qt platform problem Nov 4, 2024
@yrogge
Copy link
Author

yrogge commented Nov 4, 2024

I'm not using any NVIDIA driver.
I tried to resintall avery Qt6 stuff, but still same behavior.
The way to bypass is

  • either define QT_QPA_PLATFORM=xcb
  • or to launch with "stellarium -platform xcb"
    Clearly, the problem is related to Wayland

@alex-w alex-w added the qt Issues, related to Qt framework label Nov 4, 2024
@10110111
Copy link
Contributor

10110111 commented Nov 4, 2024

You should report this to your distro maintainers, because this looks like a breakage of Wayland OpenGL support for all Qt6 apps.

@yrogge
Copy link
Author

yrogge commented Nov 4, 2024

OK. I'll do.
Thank you.

@alex-w
Copy link
Member

alex-w commented Nov 4, 2024

You should report this to your distro maintainers, because this looks like a breakage of Wayland OpenGL support for all Qt6 apps.

The package is from our PPA and standard package may have differences

@alex-w
Copy link
Member

alex-w commented Nov 4, 2024

Yep, standard packages in Ubuntu are Qt5-based

@10110111
Copy link
Contributor

10110111 commented Nov 4, 2024

The package is from our PPA and standard package may have differences

In any case, the messages from Qt indicate a serious problem with OpenGL support. Or is Qt6 also provided by the PPA?

@alex-w
Copy link
Member

alex-w commented Nov 4, 2024

The package is from our PPA and standard package may have differences

In any case, the messages from Qt indicate a serious problem with OpenGL support. Or is Qt6 also provided by the PPA?

No, we’re using qt packages from standard repository

@10110111
Copy link
Contributor

10110111 commented Nov 4, 2024

No, we’re using qt packages from standard repository

So then indeed, it looks like the standard Qt6 packages are broken.

@gzotti
Copy link
Member

gzotti commented Nov 4, 2024

Can we just add that environment variable to the startup? Or detect the necessity to do so first? (Is there a system configuration where you won't set xcb?)

@10110111
Copy link
Contributor

10110111 commented Nov 4, 2024

Can we just add that environment variable to the startup?

We shouldn't try to work around all possible broken setups.

@yrogge
Copy link
Author

yrogge commented Nov 5, 2024

I agree.
Ubuntu does not even initialize the QT_QPA_PLATFORM variable (to value "wayland" normally) for Qt environments.
If needed, it can be done in the .profile fille at session startup, but selecting "xcb" for all apps would be incoherent.
Hopefully, "Open with QPA platform XCB" is one of the predefined option of the .desktop file used to launch Stellarium.

@gzotti
Copy link
Member

gzotti commented Nov 5, 2024

I did not mean to set xcb globally. But just as we can set some OpenGL variable to ANGLE or SOFTWARE(?) for Windows, we could set another envvar to xcb on Linux, if needed. Is there a way to automatically detect if it's needed?

@10110111
Copy link
Contributor

10110111 commented Nov 5, 2024

It seems to me that you are rushing to insert kludges for issues that may well be solved relatively soon by Ubuntu maintainers (assuming the OP has reported it there).

Such things should work out of the box, whether on X11 or on Wayland, and I suppose they used to work before the upgrade. It's just the upgrade that broke them, and, if I understood the OP correctly, it was a system upgrade, not a Stellarium upgrade. If Qt can't figure out that it's on Wayland, or that it should use EGL, or whatever else, there's something broken, and it should be sorted out in the distro, rather than getting worked around by the apps.

@gzotti
Copy link
Member

gzotti commented Nov 5, 2024

I happily leave the actual 5-minute fix to those affected.

@alex-w
Copy link
Member

alex-w commented Nov 5, 2024

The kludge for choosing XCB is included already in desktop file (it was added a long time ago) ;)

@yrogge
Copy link
Author

yrogge commented Nov 5, 2024

Bug has been reported to Ubuntu/Debian Qt6 developpers
https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/2086676

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: linux Specific issues for Linux-family OS qt Issues, related to Qt framework
Development

No branches or pull requests

4 participants