Created attachment 132683 [details] Multiple Discover processes did not close SUMMARY Discover's process keeps on running even after the window is closed and cannot be closed unless using KSysGuard, leading to memory not being freed. STEPS TO REPRODUCE 1. Update packages 2. Close Discover's window OBSERVED RESULT The Discover process keeps on running in the background. EXPECTED RESULT The Discover process is terminated. SOFTWARE/OS VERSIONS Linux: KDE neon Focal KDE Plasma Version: 5.20.1 KDE Frameworks Version: 5.75.0 Qt Version: 5.15 ADDITIONAL INFORMATION This happens on both my desktop and my laptop and appears to be triggered after I update packages; if I open Discover from the menu and close it, it works as intended. If I update packages multiple times, multiple processes linger around leading to the situation in the screenshot where almost 1 GB of memory is occupied by Discover's processes. Terminating them appears to cause no issues.
Can confirm. This is really really annoying. Not only does it waste RAM, but it can prevent Discover from launching later, because technically it's still running (even if that instance has no visible GUI).
*** Bug 404783 has been marked as a duplicate of this bug. ***
This is a contributor to slow shutdowns/logouts.
*** Bug 419968 has been marked as a duplicate of this bug. ***
https://github.com/fwupd/fwupd/issues/2600
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/53
Fixed by Aleix Pol Gonzales with https://commits.kde.org/discover/96959195ba6f9755f6a061f0f2825e7783191715 in Plasma 5.20.4!
This requires bumping dependencies...
So that got reverted, but the upstream issue was fixed, in the end! See https://github.com/fwupd/fwupd/issues/2600 FWIW I still think your change makes sense at least for the master branch.
Is there a way to trigger a task kill whenever Discover window is closed?
This bug is already fixed upstream in fwupd, so if you're still experiencing it, you should bug your distro to update their fwupd version.
Unfortunately I'm stuck in KDE 5.19.5 because I use Kubuntu. Is there a way to trigger a task kill in the shutdown process? It's a really annoying bug.
*** Bug 431892 has been marked as a duplicate of this bug. ***