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

Fail to start (can't initialise Qt platform) after upgrading to last version. #1149

Closed
maxime-rey opened this issue Jan 1, 2023 · 19 comments
Assignees

Comments

@maxime-rey
Copy link

Description
On Ubuntu 22.04.
When logging in, software updater told me I could update albert, which I did. Since then, I cannot launch it.
I tried to reinstall it (sudo apt remove, then install), same result. Ran apt update to check if dependences were missing, but nope. However, I could further apt upgrade albert from 0.18.0-0 to 0.18.1-0.
It seems like a silly error, I tried to look it up and found different things like "revert to Xorg" or running it with options (like -platform=wayland) but same result.

Expected behavior
Launch normally when I run it.

Steps to reproduce
Run albert.

Output of `albert --report ` Same as below, can't even check the version.
Output of `albert` when started in a terminal (stdout/stderr)
[warn:albert] Application has not been terminated graciously
 [info:default] Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "wayland" in ""
[fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  --  [(null)]
Segmentation fault
@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented Jan 1, 2023

does QT_QPA_PLATFORM=wayland albert work?

@maxime-rey
Copy link
Author

maxime-rey commented Jan 1, 2023

Oh, it actually removed the line [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in "". However, the rest stays the same.

@ManuelSchneid3r
Copy link
Member

Maybe some of the tips in #958 may help. I sense that the hotkey/xlib makes problems again.

@ManuelSchneid3r
Copy link
Member

Does QT_QPA_PLATFORM=xcb albert help?

@tchiotludo
Copy link

same here on Linux Mint 21.1

$ QT_QPA_PLATFORM=wayland albert
08:21:16 [warn:albert] Application has not been terminated graciously
08:21:16 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "wayland" in ""
08:21:16 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  --  [(null)]
Segmentation fault (core dumped)

$ QT_QPA_PLATFORM=xcb albert
08:21:35 [warn:albert] Application has not been terminated graciously
08:21:35 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
08:21:35 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  --  [(null)]
Segmentation fault (core dumped)

@marekruzicka
Copy link

Happening to me as well, on a completely different system, also after upgrading packages.

marek.ruzicka@HYHSP73:~$ albert --report
08:18:58 [warn:albert] Application has not been terminated graciously
08:18:58 [info:default] Systems icon theme is: "gnome"
        Albert version: 0.18.1
            Build date: Oct 29 2017 00:00:00
            Qt version: 6.3.1
  QT_QPA_PLATFORMTHEME: 
       Binary location: /usr/bin/albert
                   PWD: /home/marek.ruzicka
                 SHELL: /bin/bash
                  LANG: en_US.UTF-8
      XDG_SESSION_TYPE: x11
   XDG_CURRENT_DESKTOP: X-Cinnamon
       DESKTOP_SESSION: cinnamon
   XDG_SESSION_DESKTOP: cinnamon
                    OS: Debian GNU/Linux bookworm/sid
     OS (type/version): debian/unknown
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/6.0.0-6-amd64

marek.ruzicka@HYHSP73:~$ albert
08:19:11 [warn:albert] Application has not been terminated graciously
08:19:11 [info:default] Systems icon theme is: "gnome"
08:19:11 [info:albert] Hotkey set to Ctrl+Space
08:19:11 [warn:albert] Loading configured frontend failed. Try any other.
08:19:11 [fatal:default] Could not load any frontend.  --  [(null)]
QHotkeyPrivate destroyed with registered shortcuts!
Segmentation fault
marek.ruzicka@HYHSP73:~$ 

@arekko
Copy link

arekko commented Jan 2, 2023

Same after upgrading using apt upgrade.

        Albert version: 0.18.1
            Build date: Oct 29 2017 00:00:00
            Qt version: 6.2.4
  QT_QPA_PLATFORMTHEME: 
       Binary location: /usr/bin/albert
                   PWD: /home/{$USER}
                 SHELL: /bin/bash
                  LANG: en_US.UTF-8
      XDG_SESSION_TYPE: wayland
   XDG_CURRENT_DESKTOP: ubuntu:GNOME
       DESKTOP_SESSION: ubuntu
   XDG_SESSION_DESKTOP: ubuntu
                    OS: Ubuntu 22.04.1 LTS
     OS (type/version): ubuntu/22.04
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/5.15.0-56-generic
$ QT_QPA_PLATFORM=xcb albert
09:35:45 [warn:albert] Application has not been terminated graciously
09:35:45 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
09:35:45 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland.
  --  [(null)]
Segmentation fault (core dumped)

@ManuelSchneid3r
Copy link
Member

#1148

@ManuelSchneid3r
Copy link
Member

https://packages.debian.org/bookworm/qt6-gtk-platformtheme

Does installing this package help?

@albertlauncher albertlauncher unlocked this conversation Jan 2, 2023
@marekruzicka
Copy link

No, I have that installed already. (reinstalling does not help either).

@ManuelSchneid3r
Copy link
Member

Installing qt6-wayland solved this issue for me in a vm. Please confirm dudes, because I installed a lot of other packages. I changed this dep in the repo. I hope this fixes this one. Unforunately this still ends up in #1148

@ManuelSchneid3r
Copy link
Member

The new packages containing the qt6-wayland dependencies are build and published. I am not sure if OBS gives packages a revision. Maybe you have to reinstall it.

@tchiotludo
Copy link

I did apt-get upgrade that install a new version and install the qt6-wayland the output changed but still don't work :

$ albert -d 
16:13:14 [warn:albert] Application has not been terminated graciously
16:13:14 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
16:13:14 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland.
  --  [(null)]
Segmentation fault (core dumped)
$ albert --report 
16:13:49 [warn:albert] Application has not been terminated graciously
16:13:49 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
16:13:49 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland.
  --  [(null)]
Segmentation fault (core dumped)
$ QT_QPA_PLATFORM=wayland albert
16:14:18 [warn:albert] Application has not been terminated graciously
16:14:18 [crit:(null)] Failed to create wl_display (No such file or directory)
16:14:18 [info:qt.qpa.plugin] Could not load the Qt platform plugin "wayland" in "" even though it was found.
16:14:18 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland.
  --  [(null)]
Segmentation fault (core dumped)
$ QT_QPA_PLATFORM=xcb albert
16:14:25 [warn:albert] Application has not been terminated graciously
16:14:25 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
16:14:25 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland.
  --  [(null)]
Segmentation fault (core dumped)

@kerbrek
Copy link

kerbrek commented Jan 2, 2023

Ubuntu 22.04 Xorg
albert 0.18.1:

17:34:22 [warn:albert] Application has not been terminated graciously
17:34:22 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
17:34:22 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  --  [(null)]
Segmentation fault (core dumped)

After installing qt6-qpa-plugins it ends up in #1148 now:

17:42:13 [warn:albert] Application has not been terminated graciously
17:42:13 [info:default] Systems icon theme is: "Yaru"
17:42:13 [info:albert] Hotkey set to Ctrl+Space
17:42:13 [warn:albert] Loading configured frontend failed. Try any other.
17:42:13 [fatal:default] Could not load any frontend.  --  [(null)]
QHotkeyPrivate destroyed with registered shortcuts!
Segmentation fault (core dumped)

@maxime-rey
Copy link
Author

I tried to sudo apt install qt6-gtk-platformtheme and got qt6-gtk-platformtheme is already the newest version (6.2.4+dfsg-2ubuntu1)., which doesn't seem to be the latest version from your link to qt6-wayland (6.3.1+dfsg-10 and others) .

I was prepared to try to install it manually, but before that, I once again tried to sudo update and there was a new update available for albert albert/unknown 0.18.1-0 amd64 [upgradable from: 0.18.1-0].. This seemed to do the trick by installing the following packages:

The following NEW packages will be installed
  libqt6opengl6 libqt6qml6 libqt6qmlmodels6 libqt6quick6 libqt6waylandclient6
  libqt6waylandcompositor6 libqt6waylandeglclienthwintegration6
  libqt6waylandeglcompositorhwintegration6 libqt6wlshellintegration6
  qt6-wayland
The following packages will be upgraded:
  albert

The error is now the same as 1148.

@ManuelSchneid3r
Copy link
Member

Yes I changed the dependencies. The package is different. Unfortunately OBS does not increase the version suffix. Obviously you have to reinstall it

@ManuelSchneid3r
Copy link
Member

This issue should be solved with the recent updates right?

@tchiotludo
Copy link

tchiotludo commented Jan 2, 2023

I failed now to #1148 with latest package.

I find that I observe after the installation:

The following packages were automatically installed and are no longer required:
  libts0 qt6-qpa-plugins

So I deleted the package, then I start albert

$ albert 
21:06:54 [warn:albert] Application has not been terminated graciously
21:06:54 [warn:qt.qpa.plugin] Could not find the Qt platform plugin "xcb" in ""
21:06:54 [fatal:default] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland.
  --  [(null)]
Segmentation fault (core dumped)

I've the feeling that one of the 2 packages are mandatory.

Now going to #1148 😄

@ManuelSchneid3r
Copy link
Member

Oh my ... [debg:albert] No theme files found. getting closer

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

No branches or pull requests

6 participants