Plasma freezes often

Hello,

I have problem with KDE Plasma environment. I’m using stable branch and problems started to appear relatively recently (being using KDE for more than 2 years, problem started about 1 month ago).
During normal use of the laptop plasmashell will freeze completely (I can’t use any panels, alt+f2 doesn’t work), but previously started applications working fine, I can switch between virtual desktops and use Yakuyake with no problem.
It occurs in different periods of time, from 1 hour to like few minutes between freezes.
I tried to check journalctl but haven’t found anything suspicious. Usually I resolve this problem with restarting plasmashell from terminal.

Did someone have something similar?
What kind of logs I can provide to make it easier to investigate?

1 Like

Hi,

Yes, i have the same problem too, even it can freeze all my screen for awhile, mouse can be moved, the response is slow, especially if i use a second screen.

I use default settings/theme from the beginning of the installation.

Similar problem was reported on KDE forum, but no solution yet available:

Hi,
Can I ask which kernel you using?
It seems that for my problem I cann’t reproduce it if I switch back to the 4.19 series kernel.

Hello, i have the same problem.
I’m on lenovo thinkpad x260 with manjaro kde freshly installed less than a week ago. The problem has always been persistent from the beginning. :unamused:

Recently I switched from kernel 5.7 to kernel 5.4 LTS with no luck, obviously.
I tried the Timeshift fix as mentioned in a different thread, but the problem is still present.

I may suggest you to try to switch to 4.19 kernel - for me it seems problem was resolved.

Had a freeze like that yesterday for the first time (could move mouse cursor, the rest was frozen, had to tty2 and killall startplasma-x11, then Plasma was reset on tty3), but my journalctl contains entries just before the freeze so here they are:

Sep 10 02:36:37 msi systemd[1120]: apps-org.kde.kcalc-801367ed39a54bcaa7f1ac0d04ed4a5a.scope: Succeeded.
Sep 10 02:36:37 msi kwin_x11[60140]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10785, resource id: 73400620, major code: 18 (ChangeProperty), minor code: 0
Sep 10 02:39:08 msi org_kde_powerdevil[54404]: powerdevil: Screen brightness value:  7500
Sep 10 02:39:08 msi org_kde_powerdevil[54404]: powerdevil: Screen brightness value:  7500
Sep 10 02:39:08 msi org_kde_powerdevil[54404]: powerdevil: Kbd backlight brightness value:  0
Sep 10 02:39:08 msi org_kde_powerdevil[54404]: powerdevil: Can't contact ck
Sep 10 02:39:08 msi org_kde_powerdevil[54404]: powerdevil: set screen brightness value:  3750
Sep 10 02:39:08 msi dbus-daemon[596]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.1600' (uid=1000 pid=54404 comm="/usr/lib/org_kde_powerdevil " l>
Sep 10 02:39:08 msi dbus-daemon[596]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Sep 10 02:39:08 msi org_kde_powerdevil[54404]: powerdevil: Udev device changed "/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight" "/sys/devices/pci0000:00/0000:00>
Sep 10 02:40:23 msi org_kde_powerdevil[54404]: powerdevil: Screen brightness value:  3750
Sep 10 02:40:23 msi org_kde_powerdevil[54404]: powerdevil: Can't contact ck
Sep 10 02:40:23 msi org_kde_powerdevil[54404]: powerdevil: set screen brightness value:  938
Sep 10 02:40:23 msi dbus-daemon[596]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.1600' (uid=1000 pid=54404 comm="/usr/lib/org_kde_powerdevil " l>
Sep 10 02:40:23 msi dbus-daemon[596]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Sep 10 02:40:23 msi org_kde_powerdevil[54404]: powerdevil: Udev device changed "/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight" "/sys/devices/pci0000:00/0000:00>
Sep 10 02:41:38 msi org_kde_powerdevil[54404]: powerdevil: Screen brightness value:  938
Sep 10 02:41:38 msi org_kde_powerdevil[54404]: powerdevil: Can't contact ck
Sep 10 02:41:38 msi org_kde_powerdevil[54404]: powerdevil: set screen brightness value:  0
Sep 10 02:41:38 msi dbus-daemon[596]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.1600' (uid=1000 pid=54404 comm="/usr/lib/org_kde_powerdevil " l>
Sep 10 02:41:38 msi dbus-daemon[596]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: Qt: Session management error: networkIdsList argument is NULL
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: file:///usr/share/plasma/look-and-feel/org.kde.breath2.desktop/contents/lockscreen/LockScreen.qml:52:5: QML Connections: Implicitly defined >
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: kf.package: No metadata file in the package, expected it at: "/usr/share/wallpapers/Breath2/contents/images/"
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: kf.package: No metadata file in the package, expected it at: "/usr/share/wallpapers/Breath2/contents/images/"
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: kf.package: No metadata file in the package, expected it at: "/usr/share/wallpapers/Breath2/contents/images/"
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:76:9: Unable to assign [undefined] to QStringList
Sep 10 02:41:38 msi kscreenlocker_greet[70606]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:75:9: Unable to assign [undefined] to int
Sep 10 02:41:38 msi org_kde_powerdevil[54404]: powerdevil: Udev device changed "/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight" "/sys/devices/pci0000:00/0000:00>
Sep 10 02:42:28 msi org_kde_powerdevil[54404]: powerdevil: set screen brightness value:  7500
Sep 10 02:42:28 msi dbus-daemon[596]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.1600' (uid=1000 pid=54404 comm="/usr/lib/org_kde_powerdevil " l>
Sep 10 02:42:28 msi dbus-daemon[596]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Sep 10 02:42:28 msi org_kde_powerdevil[54404]: powerdevil: Udev device changed "/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight" "/sys/devices/pci0000:00/0000:00>

As seen last program closed was kcalc, then the system was left untouched before the energy saving & screen locking kicked in after 5 minutes (default values), last entry is about powerdevil so it could be a power management fault?

System is:

Summary
inxi -Faxzy
System:
  Kernel: 5.8.6-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=0e80bbe4-aed2-4f8d-9585-ff0caae4b265 rw apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Micro-Star product: GS63 7RD v: REV:1.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Micro-Star model: MS-16K4 v: REV:1.0 serial: <filter> 
  UEFI: American Megatrends v: E16K4IMS.117 date: 09/05/2018 
CPU:
  Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP 
  arch: Kaby Lake family: 6 model-id: 9E (158) stepping: 9 microcode: D6 
  L2 cache: 6144 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 44817 
  Speed: 1812 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 1812 2: 1300 
  3: 1531 4: 1436 5: 1569 6: 2859 7: 2329 8: 2697 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Micro-Star MSI driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:591b 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Micro-Star MSI 
  driver: nvidia v: 450.66 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1c8d 
  Device-3: Acer HD Webcam type: USB driver: uvcvideo bus ID: 1-11:6 
  chip ID: 5986:1140 serial: <filter> 
  Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 
  driver: modesetting,nvidia display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP-1-1 res: 1920x1080 hz: 60 dpi: 142 
  size: 344x194mm (13.5x7.6") diag: 395mm (15.5") 
  OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 
  direct render: Yes 
Audio:
  Device-1: Intel CM238 HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 chip ID: 8086:a171 
  Sound Server: ALSA v: k5.8.6-1-MANJARO 
Network:
  Device-1: Qualcomm Atheros Killer E2500 Gigabit Ethernet 
  vendor: Micro-Star MSI driver: alx v: kernel port: d000 bus ID: 3d:00.0 
  chip ID: 1969:e0b1 
  IF: enp61s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Bigfoot Networks driver: ath10k_pci v: kernel port: d000 
  bus ID: 3e:00.0 chip ID: 168c:003e 
  IF: wlp62s0 state: up mac: <filter> 
  Device-3: Qualcomm Atheros QCA61x4 Bluetooth 4.0 type: USB driver: btusb 
  bus ID: 1-10:5 chip ID: 0cf3:e300 
Drives:
  Local Storage: total: 350.27 GiB used: 240.02 GiB (68.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda vendor: Toshiba model: THNSNJ256G8NY size: 238.47 GiB 
  block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> 
  rev: 0101 scheme: GPT 
  ID-2: /dev/sdb type: USB model: sobetter Ext size: 111.79 GiB block size: 
  physical: 4096 B logical: 512 B serial: <filter> rev: 0204 scheme: MBR 
Partition:
  ID-1: / raw size: 23.00 GiB size: 22.51 GiB (97.89%) used: 17.85 GiB (79.3%) 
  fs: ext4 dev: /dev/sda2 
  ID-2: /home raw size: 211.97 GiB size: 207.65 GiB (97.96%) 
  used: 150.09 GiB (72.3%) fs: ext4 dev: /dev/sda3 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 3.00 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda4 
Sensors:
  System Temperatures: cpu: 69.5 C mobo: 27.8 C gpu: nvidia temp: 55 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 256 Uptime: 11h 12m Memory: 7.65 GiB used: 2.20 GiB (28.7%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1379 lib: 418 
  flatpak: 0 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.05 

Further info: using Optimus-Manager with nVidia as dGPU set with --switch nvidia

Will keep an eye if it happens again.

Have the same.

Have you tried to Ctrl+Alt+F7 and then Ctrl+Alt+F1? For me it makes plasma alive. But unfortunately, no solution…

I also noticed that functionality is alive, but drawing freezes.

Happens to me too. Kernel 4.19 doesn’t help, switching tty also. I have to restart Plasma to unfreeze.

i used 5.9, 5.8, 5.7, 5.4. All got the issue

Have you tried 4.14?

Here’s journalctl -f a few minutes after the freeze happened (clock stopped at 15:06). I don’t know if that’s helpful.

Sep 16 15:12:15 user-pc kwin_x11[490]: Could not attach Keys property to: PlasmaQuick::Dialog(0x555f95e82b40) is not an Item
Sep 16 15:12:15 user-pc kwin_x11[490]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/windowswitcher/WindowSwitcher.qml:62:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { … }
Sep 16 15:12:15 user-pc kwin_x11[490]: file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ScrollViewStyle.qml:60:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { … }
Sep 16 15:12:15 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Sep 16 15:12:15 user-pc kwin_x11[490]: file:///usr/lib/qt/qml/org/kde/plasma/components/Highlight.qml:47:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { … }
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48146, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48147, resource id: 12583118, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48148, resource id: 12583118, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48149, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48150, resource id: 12583120, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48151, resource id: 12583120, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48152, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48153, resource id: 12583122, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48154, resource id: 12583122, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48155, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48156, resource id: 12583124, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48157, resource id: 12583124, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48158, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48159, resource id: 12583126, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48160, resource id: 12583126, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48161, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48162, resource id: 12583128, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48163, resource id: 12583128, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48164, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48165, resource id: 12583130, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48166, resource id: 12583130, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 48167, resource id: 0, major code: 53 (CreatePixmap), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48168, resource id: 12583132, major code: 55 (CreateGC), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 48169, resource id: 12583132, major code: 72 (PutImage), minor code: 0
Sep 16 15:12:15 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Sep 16 15:12:16 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Sep 16 15:12:16 user-pc kwin_x11[490]: file:///usr/lib/qt/qml/org/kde/plasma/components/Highlight.qml:47:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { … }
Sep 16 15:12:16 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.

A few minutes later another freeze (15:23):

Sep 16 15:24:34 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Sep 16 15:24:34 user-pc kwin_x11[490]: file:///usr/lib/qt/qml/org/kde/plasma/components/Highlight.qml:47:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { … }
Sep 16 15:24:34 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Sep 16 15:24:36 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Sep 16 15:24:36 user-pc kwin_x11[490]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.

I have a similar issue when using nVidia GPU on 450.66 driver and with external screen. But for me freezes never happen randomly: the desktop seems to freeze when the automatic screen lock due to inactivity is supposed to be engaged, or also right after waking up from suspend (in which case I have a black screen with working mouse). Sometimes this does not happen and expected behavior occurs instead.

In all cases the workaround which I use is to kill kscreenlocker_greet process. It helps, but it would be good to eliminate the issue completely.

1 Like

With me it is exactly the same. Everything except the curser freezes and always when the automatic lock should happen.