Bug 438606

Summary: Multiple fast clicks generate memory leak
Product: [Applications] systemsettings Reporter: medin <med.medin.2014>
Component: kcm_screenlockerAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate, notmart
Priority: NOR    
Version: 5.21.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Multiple fast click generate memory leak

Description medin 2021-06-14 11:05:34 UTC
Created attachment 139303 [details]
Multiple fast click generate memory leak

In Screen Locking page if you click fast multiple times on Configure button, Plasma Settings process consumes more memory.
Configure button should be disabled after receiving first click event, and should be re-enabled after Appearance page finishes loading and appears. It seems like many instances are created due to many clicks.
See attached video for more info.

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.4.123-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Comment 1 Nate Graham 2021-06-15 20:35:43 UTC
Can confirm. It seems to be pushing the same page onto the stack a zillion times. Not sure if the best fix for this would be here in the screen locker KCM, or in Kirigami more generally (to prevent the same page from being pushed multiple times, if that is possible.