You are not logged in.

#1 2019-05-28 14:24:09

Tunez
Member
Registered: 2019-05-28
Posts: 2

Could not load QT platform plugin xcb

Hi,

I did an upgrade on my system(arch 4.19.46-1-lts) and I'm stuck at boot after entering the passphrase for decryption with no errors message. In a terminal it appears that the QT platforms plugin xcb is the source of the problem.
See error log when launching Dolphin or plasma-desktop or anything that use qt : https://pastebin.com/tM094WEW
Short :

qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

There is a bunch of questions about this issue but I couldn't find one that fixed my problem.

I looked for potential missing dependencies of /usr/lib/qt/plugins/platforms/libqxcb.so but none seem's to miss :
https://pastebin.com/7euJU8pk

I tried reinstalling libxcb, qt5-base and every other qt5 on my system. Some fixed their issue by installing libqt5x11extras5 so for Arch I assumed it is "qt5-x11extras" but nope. Same with "libxkbcommon-x11".
Tried linking this as I saw in a solution too but nothing worked : sudo ln -sf /usr/lib/qt/plugins/platforms/ /usr/bin/platforms

I have another PC that run Arch with the same version and same update(not all same program though) where qt5 apps works fine but I couldn't find any differences.
Some solutions mentioned setting "LD_LIBRARY_PATH" in your env, I tried but nope, and it's not set on my working pc so.

strace on dolphin process : https://pastebin.com/tdcEL6EG

If any of you have any ideas...
Thanks

Offline

#2 2019-05-28 17:04:17

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: Could not load QT platform plugin xcb

Tunez wrote:

qt.qpa.xcb: could not connect to display

Your X connection is broken.

Offline

#3 2019-05-28 20:04:30

Tunez
Member
Registered: 2019-05-28
Posts: 2

Re: Could not load QT platform plugin xcb

Well, I was so obsessed with other solutions from people with the same problem that I didn't paid attention to Xorg and only on libxcb.

Following your answer I started looking at Xorg and his logs which was saying that he couldn't load nvidia driver. Looking at kernel logs and a bunch of lines saying "disagrees about version of ..." and I got there : https://bbs.archlinux.org/viewtopic.php?id=240520

So if I understood all correctly my nvidia graphics driver was compiled with a 4.19.45-1 kernel version (linux-lts) and my kernel version was 4.19.46-1. So I downgraded the kernel(linux-lts linux-headers) to the version 4.19.45-1(don't forget other modules if you have some), verified that /boot as mentioned in the above link was correctly mounted, which was the case, and did the upgrade of the kernel .

Now it's working, thank you very much Arojas for your help !

Offline

Board footer

Powered by FluxBB