Arch Linux KDE Plasma crash after upgrade

Distro: Arch Linux

Package: plasma-desktop 6.6.4-1

What happened:

After a routine pacman -Syu upgrade to KDE Plasma 6.6.4, plasmashell crashes immediately on login in a recursive segfault loop. My computer is under full blackscreen now, but using shortcut to start apps from terminal is fine. Running plasmashell --replace shows below:

kf.package: Could not find required file "mainscript" for package
"/usr/share/plasma/plasmoids/org.kde.plasma.icontasks/"
should be QList("ui/main.qml")
KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2
Segmentation fault (core dumped)

Running journalctl -b -p err shows here: https://pastebin.com/raw/3P7xz7tm

I tried to create a fresh new user without any configuration, still same problem. So I am pretty sure it’s library issue instead of my kde configuration.

Arch Linux community discussion here: https://www.reddit.com/r/archlinux/comments/1sve1ni/kde_plasma_crash_after_an_arch_linux_upgrade/

I think journalctl -b -p err output will reveal cause, but I am bad at analyzing QT stacktrace, so I post here to ask KDE community’s help.

From your pastebin it looks like Klipper is the issue?

try these:

Clear corrupted Klipper history (Corrupted file ?):

rm ~/.local/share/klipper/history2.lst

Switch to X11 temporarily ?

Go ham and reset plasmashell config:

mv ~/.config/plasma-org.kde.plasma.desktop-appletsrc \
   ~/.config/plasma-org.kde.plasma.desktop-appletsrc.bak
mv ~/.local/share/plasmashell ~/.local/share/plasmashell.bak

Hi reisub

Thanks! I tried these three methods, reset plasmashell config and clear Klipper history are not working. But switch to X11 works, I think I will use X11 temporarily.

Interesting, Wayland seems to be having a lot of issues and lacks features compared to X11 to the point of me considering to switch to it permanently. In the meantime could you share the result of this command, please?

pacman -Q kf6-guiaddons plasma-workspace plasma-desktop

~ % pacman -Q kf6-guiaddons plasma-workspace plasma-desktop

error: package 'kf6-guiaddons' was not found
plasma-workspace 6.6.4-1
plasma-desktop 6.6.4-1

It seems this kf6-guiaddons does not exist in either Arch Packages or AUR.

Hi reisub

Since you mentioned kf6-guiaddons. I found out that there is a kf6 packages group in Arch Packages. And I found out some packages in that kf6 in my machine is missing. So I installed them. Then KDE Wayland still can not login but with another QT plugin loading error. So I reinstalled plasma and kde-applications packages group. Then everything works.

So the final workaround for me is: yay -S kf6 and yay -S plasma kde-applications

That’s great! Glad I could help! Your system update probably got corrupted mid way.