Clear reproduction of Qt versions mismatch causing plasma failure #47552
Labels
0.kind: bug
Something is broken
0.kind: regression
Something that worked before working no longer
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: qt/kde
First of all: ♥ nixos and the ability to create a self-contained configuration of a system which one can easily use to see a full system failure.
What is this all about?
Users may face issues when upgrading their system, if a Qt dependency was installed in their profile. Their user profile may be at a stale revision, which has a previous Qt version, and the system a newer, but at the same major version.
If the user uses
plasma
as their desktop, it could cause serious headaches, where their session decisively doesn't want to work anymore.But why?
This is because of how Qt loads its plugins. See #44047 where there is details about how Qt loads plugins.
Reproducing
See this gist which has a script (
./build.sh
) which can be used to build the VM represented inconfiguration.nix
../build.sh
)foobar
.konsole
(type it in the app menu if you can't find it).heimdall-frontend
. It should fail with:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
break-env
script to install it "properly" (nix-env -iA
)heimdall-frontend
should work, test it.loginctl terminate-user alice
)If the environment was broken as expected, it will restart sddm on login.
What to do?
Ideally, fix this. See #44047 for an attempt at reviewing how nixpkgs-built Qt apps load their plugins.
Additionally, and for the current release, note in the release notes why plasma could be failing on upgrade, and how to resolve (update user environment OR uninstall Qt apps from there).
What's left to check
Whether 17.09 -> 18.03 faced the same issue or if this is a regression. (Where a stale older minor version of Qt-latest would break plasma.)
Related
The text was updated successfully, but these errors were encountered: