I recently experienced several serious issues with KDE Plasma after updating CachyOS. After some extensive troubleshooting with ChatGPT, I managed to identify the cause and resolve all of them. I'm sharing this in case anyone else encounters similar issues.
System configuration
- OS: CachyOS (Arch Linux)
- Desktop: KDE Plasma 6.8.x
- Session: Wayland
- GPU: NVIDIA RTX 2070 SUPER
- Custom theme: Daemon 2.0
- Icon theme: Daemon-Icons
- Qt: 6.12.x
Symptoms
- Pressing Super and typing an application name immediately crashed Plasma.
- Pressing Super + A to open the full application list caused the graphical session to become completely unresponsive, requiring a reboot.
- System Settings consistently crashed with SIGSEGV.
- Dolphin and the taskbar continued working normally.
- The problems appeared after system updates.
Diagnosis
I initially suspected the global theme, NVIDIA drivers, QML, or an incompatible Plasma widget.
However, forcing the Breeze application style, disabling the QML cache, and even forcing software rendering did not resolve the crashes.
Using:
coredumpctl list --since today
I discovered multiple crashes involving:
- kwin_wayland
- plasmashell
- systemsettings
After inspecting the individual coredumps using:
coredumpctl info PID --no-pager
I noticed that both System Settings and plasmashell crashed at exactly the same location in the same library:
Signal: 11 (SEGV)
si_code: SEGV_MAPERR
QSvgHandler::startElement
libQt6Svg.so.6 + 0x4c175
The relevant stack trace was:
QSvgHandler::startElement
QSvgHandler::parse
QSvgDocument::load
libqsvg.so
QImageReader::size
KIconLoader::loadScaledIcon
KIconEngine::createPixmap
KIconEngine::scaledPixmap
QIcon::pixmap
libKirigamiPrimitives.so.6
This indicated that Qt was crashing while parsing an SVG icon.
Confirming the cause
I changed only the icon theme to Breeze Dark:
kwriteconfig6 --file kdeglobals --group Icons --key Theme breeze-dark
Then restarted Plasma:
systemctl --user restart plasma-plasmashell.service
All three problems disappeared immediately.
There was no need to change the global theme, reinstall KDE, downgrade Qt, modify NVIDIA drivers, or reset my Plasma configuration.
Finding the problematic SVG files
Since I wanted to keep my custom icon theme, I used a Python script with the system-installed PyQt6 package to test every SVG icon individually.
Each SVG was loaded in a separate subprocess using Qt's QImageReader, so a segmentation fault would not interrupt the entire scan.
Install the required package on Arch-based distributions if necessary:
sudo pacman -S python-pyqt6
The following script can be pasted directly into a terminal. Replace the theme name with your own icon theme:
python -c '
import os, subprocess, resource
from pathlib import Path
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
theme = "Daemon-Icons"
roots = [
Path.home() / ".local/share/icons",
Path.home() / ".icons",
Path("/usr/share/icons")
]
icons = sorted(set(
p.resolve() for root in roots
for p in (root / theme).rglob("*")
if p.is_file() and p.suffix.lower() in (".svg", ".svgz")
))
print(f"Theme: {theme}")
print(f"Found {len(icons)} icons", flush=True)
code = """
import sys
from PyQt6.QtGui import QGuiApplication, QImageReader
app = QGuiApplication([])
reader = QImageReader(sys.argv[1])
reader.size()
"""
bad = []
for i, p in enumerate(icons, 1):
try:
r = subprocess.run(
["/usr/bin/python", "-c", code, str(p)],
env=dict(os.environ, QT_QPA_PLATFORM="offscreen"),
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
timeout=10
)
if r.returncode != 0:
bad.append(str(p))
print(f"ERROR ({r.returncode}): {p}", flush=True)
except subprocess.TimeoutExpired:
bad.append(str(p))
print(f"TIMEOUT: {p}", flush=True)
if i % 100 == 0:
print(f"Checked {i}/{len(icons)}", flush=True)
report = Path.home() / "svg-crashes.txt"
report.write_text("\n".join(bad))
print(f"Problematic icons: {len(bad)}")
print(f"Report: {report}")
'
Scan results
- Total SVG files scanned: 6,040
- Files causing segmentation faults: 46
- Unique affected icon names: 23
- Percentage of affected files: approximately 0.76%
The affected icons existed in both my local and system-wide copies of the theme.
Every affected icon was located in the scalable/apps/ directory.
Some examples:
- krita.svg
- ipython.svg
- kwalletmanager.svg
- labplot.svg
- libreoffice-calc.svg
- libreoffice-impress.svg
- meld.svg
- skrooge.svg
- synaptic.svg
- pling-store.svg
Every one of these returned exit code -11, indicating SIGSEGV.
Possible root cause
I compared the source code of a working SVG icon (Amarok) with a crashing one (Krita).
The crashing Krita icon contained the following CSS declaration:
<style
id="current-color-scheme"
type="Highlight/css">
.ColorScheme-Highlight {
color:#5DF4FE;
}
</style>
Notice the unusual MIME type:
type="Highlight/css"
Instead of the standard:
type="text/css"
The working Amarok icon did not contain this CSS block.
I created a modified version of the Krita icon with the unnecessary CSS block and its associated class removed, preserving the original geometry and explicitly defined fill color.
I then tested it using:
env QT_QPA_PLATFORM=offscreen python -c '
from PyQt6.QtGui import QGuiApplication, QImageReader
app = QGuiApplication([])
import sys
print(QImageReader(sys.argv[1]).size())
' ~/Downloads/krita-no-css.svg
The modified icon successfully returned:
PyQt6.QtCore.QSize(48, 48)
No segmentation fault.
This strongly suggests a problem involving SVG CSS parsing. However, I have not yet confirmed whether changing the MIME type alone fixes the crash or whether all 23 affected icons share exactly the same underlying issue.
Working solution
For now, I:
- Backed up all 46 problematic SVG files, preserving their original directory structure.
- Replaced only those files with corresponding Breeze icons or a generic Breeze application icon where necessary.
- Tested the replacement icons using Qt6Svg.
- Restored my original Daemon-Icons theme.
- Cleared the icon cache.
- Restarted Plasma.
To restore the icon theme and restart Plasma:
kwriteconfig6 --file kdeglobals --group Icons --key Theme Daemon-Icons
rm -f ~/.cache/icon-cache.kcache
systemctl --user restart plasma-plasmashell.service
Everything now works perfectly again, and more than 99% of my original icon files remain untouched.
Conclusion
If Plasma or System Settings suddenly starts crashing after a Qt/KDE update and you are using a custom icon theme, try switching to Breeze before reinstalling packages or resetting your desktop configuration.
Even ONE problematic SVG icon can cause major parts of KDE Plasma to crash.
Regardless of whether the original SVG is malformed, I would argue that an SVG parser should reject an unsupported declaration rather than cause the entire application to segfault.
This looks like a potential Qt6Svg regression triggered by older custom SVG icons.
Hopefully this saves someone else few hours of troubleshooting.