Troubleshooting: Kde/Qt issues. using hm and pm

Hi!

For a while, on my nixos installation there seem to be invalid Qt versions after booting, but only until I’ve done nixos-rebuild switch again. That is, I’m not sure if something is wrong with the boot or… whatever, actually.

Please give me some pointers what I should look out for, because I’m totally at a loss how to even diagnose what’s going on.


Symptoms

  • before switching: kate config looks off (weird defaults?) until after switching.
  • both before and after switching: kde connect complains about mismatching qt versions
  • after switching: nheko fails (critical] Failed to initialize graphics backend for OpenGL. (:0, ))

I would love to finally fix this, and I have no idea where to even start searching.

My config

Interestingly, I have two very similar configs, only one of them being affected.

My main config repo

I use home-manager (standalone) and plasma-manager.

There are a bunch of warning in the journal, but no clear-cut “this is the error”

Excerpts from the journal after booting:

qt.qpa.wayland: Could not create EGL surface (EGL error 0x3003)

QDBusObjectPath: invalid path "/modules/plasma-session-shortcuts"

kf.dbusaddons: The kded module name "plasma-session-shortcuts" is invalid!

 org.kde.powerdevil.discretegpuhelper[2810]: Detected locale "C" with character encoding "A>
                                                                 Qt depends on a UTF-8 locale, and has switched>
                                                                 If this causes problems, reconfigure your loca>
                                                                 for more information.

plasmashell[2728]: file:///nix/store/ghpzrhj5cw7jzmcvajq0bf4w98icymjm-plasma-desktop-6.3.3>
                                        file:///nix/store/ghpzrhj5cw7jzmcvajq0bf4w98icymjm-plasma-desktop-6.3.3>
backlighthelper[2836]: org.kde.powerdevil: no kernel backlight interface found

file:///nix/store/ghpzrhj5cw7jzmcvajq0bf4w98icymjm-plasma-desktop-6.3.3/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:201:9
plasmashell[2728]: Toolbox not loading, toolbox package is either invalid or disabled.
kded6[2708]: org.kde.kameleon: found no RGB LED devices
kconf_update[2939]: kf.config.kconf_update: /run/current-system/sw/share/kconf_update/ark.upd defined Version=5 but Version=6 was expected
kconf_update[2939]: kf.config.kconf_update: /run/current-system/sw/share/kconf_update/dolphin_detailsmodesettings.upd defined Version=5 but Version=6 was expected
kconf_update[2939]: kf.config.kconf_update: /run/current-system/sw/share/kconf_update/dolphin_directorysizemode.upd defined Version=5 but Version=6 was expected
kalendarac[2881]: qt.multimedia.symbolsresolver: Couldn't load pipewire-0.3 library
kalendarac[2881]: qt.multimedia.symbolsresolver: Couldn't resolve pipewire-0.3 symbols
kconf_update[2939]: kf.config.kconf_update: /run/current-system/sw/share/kconf_update/konsole.upd defined Version=5 but Version=6 was expected
kconf_update[2939]: kf.config.kconf_update: /run/current-system/sw/share/kconf_update/okular.upd defined Version=5 but Version=6 was expected

Avoid mixing stable with unstable, that may resolve your issue.

24.11 has also long been unsupported, the current stable is 25.05.

1 Like

thanks!
that fixes the “nheko being weird” part, but sadly not more than that

issues are apparently mismatched qt versions. more here: Mismatching Qt versions between home-manager and system nixpkgs