Bug 466246

Summary: Memory Leak in Plasmashell When Removing Notifications One by One
Product: [Plasma] plasmashell Reporter: Dashon <dashonwwIII>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: dashonwwIII, kde, nate, notmart
Priority: NOR    
Version First Reported In: 5.27.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Memory Leak Reproduce

Description Dashon 2023-02-22 15:35:18 UTC
SUMMARY
Sometimes seeming at random when I am removing notifications plasmashell will freeze and then the memory usage will skyrocket.

STEPS TO REPRODUCE
In order to reproduce it I have been using kde connect and just refreshing the connection from the system settings page a bunch of times in order to get a long list of notifications. I will attach a video.
1. Create a long list of notifications in the notification history tray somehow.
2. Start removing each notification one by one by clicking on the remove button that is next to each entry in the notification tray

OBSERVED RESULT
Eventually plasmashell freezes and memory starts skyrocketing and I have to kill plasmashell.

EXPECTED RESULT
Plasmashell shouldn't freeze and memory should be released.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-1-lts (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0

ADDITIONAL INFO: 
I'm not familiar with debugging memory leaks, but let me know how  I can help.
Comment 1 Dashon 2023-02-22 16:51:53 UTC
Created attachment 156609 [details]
Memory Leak Reproduce
Comment 2 Dashon 2023-02-22 16:57:10 UTC
Adding video as google drive link since I can't upload it here. https://drive.google.com/file/d/1U_WKr4TBdX1aKJEDQbWW_flzCNP_hQgc/view?usp=share_link
Comment 3 Dashon 2023-06-24 07:36:25 UTC
I no longer seem to be having this issue, so I am closing it.