Bug 466246 - Memory Leak in Plasmashell When Removing Notifications One by One
Summary: Memory Leak in Plasmashell When Removing Notifications One by One
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.27.1
Platform: Arch Linux Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-22 15:35 UTC by Dashon
Modified: 2023-06-24 07:36 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Memory Leak Reproduce (3.86 MB, image/gif)
2023-02-22 16:51 UTC, Dashon
Details

Note You need to log in before you can comment on or make changes to this bug.
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.