Plasmashell crashing

I’m seeing Plasmashell crashing repeatedly on two machines running EndeavourOS after some updates. Anyone experiencing that?

plasmashell --replace 2>&1
kf.package: Could not find required file "mainscript" for package "/usr/share/plasma/plasmoids/org.kde.plasma.icontasks/" should be QList("ui/main.qml")
qt.qml.propertyCache.append: Member visible of the object PlasmaQuick::Dialog overrides a member of the base object. Consider renaming it or adding final or override specifier
qt.qml.propertyCache.append: Member enabled of the object DeclarativeDropArea overrides a member of the base object. Consider renaming it or adding final or override specifier
qt.qml.propertyCache.append: Final member StackingOrder is overridden in class QQmlDMAbstractItemModelData. The override won't be used.
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2

Similar recent threads

Similar upstream bug - https://bugs.kde.org/show_bug.cgi?id=520985

Thread on Arch forum - https://bbs.archlinux.org/viewtopic.php?id=313796

Thread on CachyOS forum - https://discuss.cachyos.org/t/plasmashell-crashes-after-system-update/30712


Workaround

Downgrade fontconfig:

sudo pacman -U https://archive.archlinux.org/packages/f/fontconfig/fontconfig-2:2.17.1-1-x86_64.pkg.tar.zst

You always should use this command to restart your plasma shell

systemctl --user restart plasma-plasmashell.service

Nope!

Yeah, I did a timeshift --restore

did you pin down what caused it? I guess it was a package upgrade, but I don’t know which.

You are not alone. Similar to your issue is reported here as well:

It was most likely an update, but I don’t know which one as I needed to get on and do stuff, so I just restored and didn’t investigate further.

Could you do a checkupdates in a terminal? Perhaps it can give some clue.

no output / no pending updates

eos-update 26.5.1-2 -> 26.6-1
firefox 151.0.2-1 -> 151.0.3-1
fontconfig 2:2.17.1-1 -> 2:2.18.1-1
lib32-fontconfig 2:2.17.1-1 -> 2:2.18.1-1
lib32-libdrm 2.4.133-1 -> 2.4.134-1
lib32-libnghttp3 1.15.0-1 -> 1.16.0-1
lib32-libngtcp2 1.22.1-1 -> 1.23.0-1
libdrm 2.4.133-1 -> 2.4.134-1
libnet 2:1.3-1 -> 2:1.3-2
libnghttp3 1.15.0-1 -> 1.16.0-1
libngtcp2 1.22.1-1 -> 1.23.0-1
libphonenumber 1:9.0.31-2 -> 1:9.0.32-1
librsvg 2:2.62.2-1 -> 2:2.62.3-1
libstemmer 3.1.0-1 -> 3.1.1-1
libwacom 2.18.0-2 -> 2.19.0-1
libxkbcommon 1.13.1-1 -> 1.13.2-1
libxkbcommon-x11 1.13.1-1 -> 1.13.2-1
linux-lts 6.18.33-1 -> 6.18.34-1
linux-lts-headers 6.18.33-1 -> 6.18.34-1
luajit 2.1.1774896198+18b087c-1 -> 2.1.1780076327+b925b3e-1
mariadb 12.2.2-2 -> 12.3.2-2
mariadb-clients 12.2.2-2 -> 12.3.2-2
mariadb-libs 12.2.2-2 -> 12.3.2-2
ntfs-3g 2022.10.3-2 -> 2026.2.25-1
opencv 4.13.0-8 -> 4.13.0-9
python-idna 3.17-1 -> 3.18-1
python-pip 26.1.1-1 -> 26.1.2-1
rpcbind 1.2.8-1 -> 1.2.9-1
webkit2gtk-4.1 2.52.3-1 -> 2.52.4-1
xorg-server 21.1.22-2 -> 21.1.23-1
xorg-server-common 21.1.22-2 -> 21.1.23-1
xorg-xwayland 24.1.11-2 -> 24.1.12-1

I’m not a KDE user but at the first sight nothing jumps out related to some plasma components wreaking havoc.

OP’s issue seems to be related to some plasmoids:

Can someone run this:

pacman -Qo /usr/share/plasma/plasmoids/org.kde.plasma.icontasks/

to see what package owns:

/usr/share/plasma/plasmoids/org.kde.plasma.icontasks/

?

pacman -Qo /usr/share/plasma/plasmoids/org.kde.plasma.icontasks/

/usr/share/plasma/plasmoids/org.kde.plasma.icontasks/ is owned by plasma-desktop 6.6.5-1

also tried reinstalling plasma-desktop, no change

Belongs to plasma-desktop. But seems to be a red herring, I have the same message on working systems.

Nothing jumps out to me either.

This is what I could find in the metadata.json

Category": "Windows and Tasks",
        "Description": "App bar displaying only icons",

BTW no crashing here (touching unpainted wood)

Oh man, I never understood why just touching wood never worked for me.
They must have been all painted :rofl:

Try to get your panel config out of the way

mv ~/.config/plasma-org.kde.plasma.desktop-appletsrc ~/.config/plasma-org.kde.plasma.desktop-appletsrc.bak

log out and log back in so it gets regenerated.

You could also try clearing plasma’s cached stuff under your ~/.cache

Similar upstream bug - https://bugs.kde.org/show_bug.cgi?id=520985

Thread on Arch forum - https://bbs.archlinux.org/viewtopic.php?id=313796

Sharing workaround from Arch forum thread, that worked for me as well (downgrading fontconfig):

sudo pacman -U https://archive.archlinux.org/packages/f/fontconfig/fontconfig-2:2.17.1-1-x86_64.pkg.tar.zst

then restart plasmashell

systemctl --user reset-failed plasma-plasmashell.service
systemctl --user restart plasma-plasmashell.service 

Clearing the fontconfig cache seems to have worked for me using the latest fontconfig; if someone else can confirm it:

rm -rf ~/.cache/fontconfig/

systemctl --user reset-failed plasma-plasmashell.service
systemctl --user restart plasma-plasmashell.service 

Edit: tried it on my second affected system without any downgrades, and it seems to work.