Repository navigation
Description
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 in configuration.nix.
- Start the vm (
./build.sh) - Login as alice, password is
foobar. - Open
konsole(type it in the app menu if you can't find it). - Try starting
heimdall-frontend. It should fail with:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. - Use the
break-envscript to install it "properly" (nix-env -iA) - The script will tell you that
heimdall-frontendshould work, test it. - Logout, (
loginctl terminate-user alice) - Try logging back in.
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
- An IRC user faced the issue.
- if Loads qt plugin paths as registered... #44047 doesn't fix this, care should be taken so it does.
- Can't run qt applications after lastest upgrade #47168 is a user facing a similar issue (but with less dire consequences.)
Activity
jcrben commentedon Jan 31, 2019
fyi, followed your steps and it went down exactly as you described - I saw a message
The optionvirtualisation.memorySize' defined in/home/ben/repro-kde-plugins/configuration.nix' does not existbut it didn't seem to affect the build.rileyinman commentedon May 23, 2019
Any updates on this? Facing the issue in a new (19.03) install and I'm not sure what to do other than give up on Plasma for now.
stale commentedon Jun 2, 2020
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
samueldr commentedon Jun 2, 2020
Closing as it should be fixed by the new wrapping, but I haven't verified if it is actually fixed with the new wrapping.