Created attachment 122090 [details] htop showing cpu usage SUMMARY 100% cpu usage when left to be idle in VM. when screen is activated, cpu usage drops. STEPS TO REPRODUCE 1. install basic archlinux desktop with kde plasma 2. login into wayland session 3. disable baloo 4. leave the machine for a while OBSERVED RESULT 100% cpu usage in kwin EXPECTED RESULT minimal cpu usage for kwin SOFTWARE/OS VERSIONS Linux/KDE Plasma: latest KDE Plasma Version: 5.16.4 KDE Frameworks Version: 5.60 Qt Version: 5.13 ADDITIONAL INFORMATION journal | grep kwin Aug 03 18:03:17 vm-arch kernel: kwin_wayland[450]: segfault at 128 ip 00007f645d812e9c sp 00007ffd89473ee0 error 4 in libkwin.so.5.16.4[7f645d66f000+1eb000] Aug 03 18:03:17 vm-arch kernel: audit: type=1701 audit(1564848197.113:57): auid=1000 uid=1000 gid=998 ses=2 pid=450 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 03 18:03:17 vm-arch audit[450]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=450 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 03 18:05:32 vm-arch kernel: audit: type=1701 audit(1564848332.356:38): auid=1000 uid=1000 gid=998 ses=2 pid=448 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 03 18:05:32 vm-arch audit[448]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=448 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 12:22:16 vm-arch audit[3307]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=3307 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 12:22:16 vm-arch kernel: audit: type=1701 audit(1565518936.686:44): auid=1000 uid=1000 gid=998 ses=2 pid=3307 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 12:36:50 vm-arch audit[450]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=450 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 12:36:50 vm-arch kernel: audit: type=1701 audit(1565519810.083:42): auid=1000 uid=1000 gid=998 ses=2 pid=450 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Aug 11 12:49:23 vm-arch kdeinit5[750]: kio_smb: dirp->name kwin.txt "kwin.txt" ' "" ' 8 Aug 11 12:49:23 vm-arch kdeinit5[750]: kio_smb: updateCache "/red/kwin.txt" Aug 11 12:49:24 vm-arch kdeinit5[743]: kio_smb: dirp->name kwin.txt "kwin.txt" ' "" ' 8 Aug 11 12:49:24 vm-arch kdeinit5[743]: kio_smb: updateCache "/red/kwin.txt" Aug 11 12:51:10 vm-arch systemsettings5[758]: org.kde.kcoreaddons: Error loading plugin "kcm_kwindecoration" "The shared library was not found." Aug 11 12:51:10 vm-arch systemsettings5[758]: Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations. Aug 11 12:51:13 vm-arch systemsettings5[758]: KActivitiesStats( 0x55c343144b00 ) ResultModelPrivate::onResultScoreUpdated result added: "kcm:kwindecoration.desktop" score: 0 last: 1565520673 first: 1565520673 Aug 11 12:55:09 vm-arch audit[451]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=451 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 12:55:09 vm-arch kernel: audit: type=1701 audit(1565520909.576:44): auid=1000 uid=1000 gid=998 ses=2 pid=451 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 13:27:19 vm-arch audit[450]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=450 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 13:27:19 vm-arch kernel: audit: type=1701 audit(1565522839.420:45): auid=1000 uid=1000 gid=998 ses=2 pid=450 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 13:28:03 vm-arch audit[453]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=453 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 11 13:28:03 vm-arch kernel: audit: type=1701 audit(1565522883.836:42): auid=1000 uid=1000 gid=998 ses=2 pid=453 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Aug 11 13:29:02 vm-arch systemsettings5[660]: org.kde.kcoreaddons: Error loading plugin "kcm_kwindecoration" "The shared library was not found." Aug 11 13:29:02 vm-arch systemsettings5[660]: Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations. Aug 11 13:29:06 vm-arch systemsettings5[660]: KActivitiesStats( 0x5623a676c970 ) ResultModelPrivate::onResultScoreUpdated result added: "kcm:kwindecoration.desktop" score: 1 last: 1565522942 first: 1565520673 Aug 12 08:04:23 vm-arch audit[447]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=2 pid=447 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=6 res=1 Aug 12 08:04:23 vm-arch kernel: audit: type=1701 audit(1565589863.056:124): auid=1000 uid=1000 gid=998 ses=2 pid=447 comm="kwin_wayland" exe="/usr/bin/kwin_wayland" sig=6 res=1 Aug 12 08:04:31 vm-arch systemd-coredump[6705]: Process 447 (kwin_wayland) of user 1000 dumped core. Aug 12 08:34:51 vm-arch audit[6793]: ANOM_ABEND auid=1000 uid=1000 gid=998 ses=5 pid=6793 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1 Aug 12 08:34:51 vm-arch kernel: audit: type=1701 audit(1565591691.453:148): auid=1000 uid=1000 gid=998 ses=5 pid=6793 comm="QDBusConnection" exe="/usr/bin/kwin_wayland" sig=11 res=1
Created attachment 122091 [details] kubuntu htop showing cpu usage same thing happens on kubuntu with latest updates. i uninstalled plasma-discover and disabled ubuntu. cpu spike is triggered when kscreen locker kicks in
*disabled baloo
You are running multiple KWin instances. This is probably the reason for the high cpu usage. Please kill the additional ones.
after reinstallation of virtual machine, same situation again. post installaton steps: - update all packages - remove plasma-discover - install openssh-server - apt autoremove - configure autologin to wayland session in plasma settings status after reinstall: - cpu is ~25% while lockscreen is on - after monitors are turned off, session cannot be recovered via gui if i kill one of the other processes, session crashes. fwiw, i do not start manually those kwin processes, they are started by sddm it seems. i added a screenshot of htop with hierarchy.
Created attachment 122102 [details] 25% cpu kwin
Created attachment 152710 [details] Screenshot of htop with close to 100% cpu usage Same happens in my manjaro machine nearly 100% cpu when logging into wayland
Created attachment 152711 [details] Htop showing the command of the kwin_wayland process taking high cpu usage
Do you still experience this in Plasma 6?
This exact problem is now manifesting only when lockscreen is shown and while lockscreen is showing controls.
Created attachment 170508 [details] screenlocker with controls
Created attachment 170509 [details] top showing high cpu usage for screen locker
this is now using plasma 6.0.5
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
Answered above
And still with Plasma 6.3.5 or later? Thanks again!
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.