KDE Plasmashell crashes

Hello!

I catched this problem already and solve it with full reinstall :smiley: but don’t want to do it again.

Whats wrong: after update I have dead KDE and Plasmashell. After I logged in from login screen I see few seconds my desktop and after that too many windows with “Sorry Plasmashell crashes”

I found in my logs:

июл 24 15:51:20 workstation plasmashell[3346]: kf.plasma.quick: Applet preload policy set to 1
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::begin: Paint device returned engine == 0, type: 2
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::setCompositionMode: Painter not active
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::setRenderHint: Painter must be active to set rendering hints
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::end: Painter not active, aborted
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::begin: Paint device returned engine == 0, type: 2
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::setCompositionMode: Painter not active
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::setRenderHint: Painter must be active to set rendering hints
июл 24 15:51:20 workstation plasmashell[3346]: QPainter::end: Painter not active, aborted
июл 24 15:51:21 workstation plasmashell[3346]: KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2
июл 24 15:51:21 workstation audit[3346]: ANOM_ABEND auid=1000 uid=1000 gid=1002 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=3346 comm="plasmashell" exe="/usr/bin/plasmashell" sig=11 res=1
июл 24 15:51:21 workstation systemd-coredump[3464]: Process 3346 (plasmashell) of user 1000 terminated abnormally with signal 11/SEGV, processing...
июл 24 15:51:22 workstation systemd-coredump[3465]: Process 3346 (plasmashell) of user 1000 dumped core.
                                                       Module /usr/bin/plasmashell from rpm plasma-workspace-6.4.3-1.fc42.x86_64
                                                       #31 0x000055a5116d066b _ZN9PanelView5eventEP6QEvent (/usr/bin/plasmashell + 0x2866b)
                                                       #46 0x000055a5116b496c main (/usr/bin/plasmashell + 0xc96c)
                                                       #49 0x000055a5116b4e95 _start (/usr/bin/plasmashell + 0xce95)
июл 24 15:51:22 workstation systemd[2666]: plasma-plasmashell.service: Main process exited, code=dumped, status=11/SEGV
июл 24 15:51:22 workstation systemd[2666]: plasma-plasmashell.service: Failed with result 'core-dump'.
июл 24 15:51:22 workstation systemd[2666]: plasma-plasmashell.service: Consumed 1.544s CPU time, 725.5M memory peak.
июл 24 15:51:22 workstation systemd[2666]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 2.
июл 24 15:51:22 workstation systemd[2666]: Starting plasma-plasmashell.service - KDE Plasma Workspace...
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:            PID: 3346 (plasmashell)
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:   Command Line: /usr/bin/plasmashell --no-respawn
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:     Executable: /usr/bin/plasmashell
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:  Control Group: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:      User Unit: plasma-plasmashell.service
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:        Storage: /var/lib/systemd/coredump/core.plasmashell.1000.c2f76f46320e4e29b4c0133f669a2eff.3346.1753361481000000.zst (present)
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:        Message: Process 3346 (plasmashell) of user 1000 dumped core.
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:                 Module /usr/bin/plasmashell from rpm plasma-workspace-6.4.3-1.fc42.x86_64
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:                 #31 0x000055a5116d066b _ZN9PanelView5eventEP6QEvent (/usr/bin/plasmashell + 0x2866b)
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:                 #46 0x000055a5116b496c main (/usr/bin/plasmashell + 0xc96c)
июл 24 15:51:22 workstation drkonqi-coredump-launcher[5274]:                 #49 0x000055a5116b4e95 _start (/usr/bin/plasmashell + 0xce95)
июл 24 15:51:23 workstation abrt-notification[5370]: Process 3020 (plasmashell) crashed in KCrash::defaultCrashHandler(int)()
июл 24 15:51:23 workstation systemd[2666]: Started plasma-plasmashell.service - KDE Plasma Workspace.
июл 24 15:51:23 workstation plasmashell[5298]: kf.plasma.quick: Applet preload policy set to 1
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::begin: Paint device returned engine == 0, type: 2
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setCompositionMode: Painter not active
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setRenderHint: Painter must be active to set rendering hints
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::end: Painter not active, aborted
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::begin: Paint device returned engine == 0, type: 2
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setCompositionMode: Painter not active
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setRenderHint: Painter must be active to set rendering hints
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::end: Painter not active, aborted
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::begin: Paint device returned engine == 0, type: 2
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setCompositionMode: Painter not active
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setRenderHint: Painter must be active to set rendering hints
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::end: Painter not active, aborted
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::begin: Paint device returned engine == 0, type: 2
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setCompositionMode: Painter not active
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::setRenderHint: Painter must be active to set rendering hints
июл 24 15:51:24 workstation plasmashell[5298]: QPainter::end: Painter not active, aborted
июл 24 15:51:24 workstation plasmashell[5298]: KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2
июл 24 15:51:24 workstation audit[5298]: ANOM_ABEND auid=1000 uid=1000 gid=1002 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=5298 comm="plasmashell" exe="/usr/bin/plasmashell" sig=11 res=1
июл 24 15:51:24 workstation systemd-coredump[5940]: Process 5298 (plasmashell) of user 1000 terminated abnormally with signal 11/SEGV, processing...
июл 24 15:51:25 workstation abrt-notification[6180]: Process 3020 (plasmashell) crashed in KCrash::defaultCrashHandler(int)()
июл 24 15:51:26 workstation systemd-coredump[5941]: Process 5298 (plasmashell) of user 1000 dumped core.

And no more. If I try to plasmashell --replace it would be restart recursivly.

Also, if i remove ~/.config/plasmashellrc and ~/.config/plasma-org.kde.plasma.desktop-appletsrc Plasmashell starts after login window, but when I try to use widgets on panel – Plasmashell crashs again.

Tech info (from inxi):

inxi -Fzxx
System:
  Kernel: 6.15.7-200.fc42.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
  Desktop: KDE Plasma v: 6.4.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 42 (KDE Plasma Desktop Edition)
Machine:
  Type: Desktop Mobo: Gigabyte model: Z790 GAMING X AX v: x.x
    serial: <superuser required> UEFI: American Megatrends LLC. v: F9
    date: 12/14/2023
CPU:
  Info: 16-core (8-mt/8-st) model: 13th Gen Intel Core i7-13700KF bits: 64
    type: MST AMCP arch: Raptor Lake rev: 1 cache: L1: 1.4 MiB L2: 24 MiB
    L3: 30 MiB
  Speed (MHz): avg: 1100 min/max: 800/5300:5400:4200 cores: 1: 1100 2: 1100
    3: 1100 4: 1100 5: 1100 6: 1100 7: 1100 8: 1100 9: 1100 10: 1100 11: 1100
    12: 1100 13: 1100 14: 1100 15: 1100 16: 1100 17: 1100 18: 1100 19: 1100
    20: 1100 21: 1100 22: 1100 23: 1100 24: 1100 bogomips: 164044
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA AD104 [GeForce RTX 4070 Ti] vendor: Gigabyte driver: nvidia
    v: 575.64.03 arch: Lovelace pcie: speed: 16 GT/s lanes: 16 ports:
    active: none off: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 01:00.0
    chip-ID: 10de:2782
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-11.1:7
    chip-ID: 046d:082d
  Display: wayland server: Xwayland v: 24.1.8 compositor: kwin_wayland
    driver: gpu: nvidia,nvidia-nvswitch d-rect: 6880x1440 display-ID: 0
  Monitor-1: DP-1 pos: right model: AQW34H3 res: 3440x1440 hz: 100 dpi: 113
    diag: 863mm (34")
  Monitor-2: HDMI-A-1 pos: primary,left model: Mi Monitor res: 3440x1440
    hz: 100 dpi: 110 diag: 864mm (34")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: nvidia inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 575.64.03
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4070 Ti/PCIe/SSE2
    display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: discrete-gpu
    driver: nvidia device-ID: 10de:2782 device: 1 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7a50
  Device-2: NVIDIA AD104 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:22bc
  Device-3: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-11.1:7
    chip-ID: 046d:082d
  Device-4: Logitech G435 Wireless Gaming Headset
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-6:2 chip-ID: 046d:0acb
  API: ALSA v: k6.15.7-200.fc42.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7a70
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: 4000 bus-ID: 07:00.0 chip-ID: 10ec:8125
  IF: enp7s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-14:10 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.4
    lmp-v: 13
Drives:
  Local Storage: total: 3.67 TiB used: 198.51 GiB (5.3%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 40.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 39.9 C
  ID-3: /dev/nvme2n1 vendor: Samsung model: SSD 990 EVO 1TB size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 44.9 C
  ID-4: /dev/nvme3n1 vendor: Samsung model: SSD 980 PRO 1TB size: 931.51 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
  ID-5: /dev/sda vendor: Kingston model: DataTraveler 3.0 size: 28.82 GiB
    type: USB rev: 2.1 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 929.93 GiB used: 198.06 GiB (21.3%) fs: btrfs
    dev: /dev/nvme2n1p3
  ID-2: /boot size: 973.4 MiB used: 442.5 MiB (45.5%) fs: ext4
    dev: /dev/nvme2n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme2n1p1
  ID-4: /home size: 929.93 GiB used: 198.06 GiB (21.3%) fs: btrfs
    dev: /dev/nvme2n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: 34.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 64 GiB note: est. available: 62.62 GiB used: 9.51 GiB (15.2%)
  Processes: 640 Power: uptime: 19m wakeups: 0 Init: systemd v: 257
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm Compilers: gcc: 15.1.1
    Shell: Bash v: 5.2.37 running-in: konsole inxi: 3.3.38

Please, help

Create a new user on your system and login as the new user.
Does plasmashell work?

If so there must be another file that plasmashell is using that is causing the problem.
I can find these plasmashell files on my user’s HOME.

.config/plasmashellrc
.local/state/plasmashellstaterc
.config/kde.org/plasmashell.conf
.config/kde.org/UserFeedback.org.kde.plasmashell.conf
.local/share/plasmashell/plasmashellstaterc

If you can save the files, don’t just delete them, then we can see if there is something saved that is triggering the crash by copmparing the bad vs. good versions.

Another user had a problem with a 2 monitor setup.

If you can reliably reproduce the issue then it would be worth unpluging one monitor and see if you can reproduce with only one monitor connected.

Problem was solved when I ran kcmshell6 kcm_qtquicksettings and choose rendering to Automatically …

:man_facepalming: