Bug 435506 - Potential memory leak with Firefox addon + many download notifications
Summary: Potential memory leak with Firefox addon + many download notifications
Status: RESOLVED DUPLICATE of bug 423594
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.19.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-08 13:51 UTC by Andrea Ippolito
Modified: 2021-04-09 02:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ippolito 2021-04-08 13:51:36 UTC
I think I've found a memory leak in plasmashell when Firefox is used to download plenty of individual files (~30) and has the plasma add-on installed and enabled, which causes every download complete event to show up as a plasma notification.

I have recorded to videos showing the memory usage of plasmashell in the following scenario:

    download a bunch of images from a web page via DownThemAll - this allows to quickly download many files, hence triggering many download notifications (only when the plasma add-on is enabled)
    move to next page and download some more
    rinse and repeat a few times
    close firefox
    monitor memory usage by plasmashell during the test and at the end


When the add-on is enabled, a lot of memory is retained. The video shows 4 or 500 MB, but previously it went as high as 7-800.
When the add-on is disabled, memory usage increase by plasmashell is only a few MBs (although it might be worth checking if this gets properly released eventually...)

Suspected memory leak (add-on enabled):
https://drive.google.com/file/d/1P-bbsj ... p=drivesdk

Add-on disabled:
https://drive.google.com/file/d/1KFMn_L ... p=drivesdk

Plasma version: 5.19.5
Frameworks version: 5.74.0
Qt version: 5.14.2
Kernel version: 5.8.0-48-generic
Kubuntu 20.10 

Original post here: https://forum.kde.org/viewtopic.php?f=289&t=170770&p=444542#p444542

Might be a dupe of/related to: https://bugs.kde.org/show_bug.cgi?id=423594
Comment 1 Andrea Ippolito 2021-04-08 13:52:50 UTC
Fixing links to videos:

Suspected memory leak (add-on enabled):
https://drive.google.com/file/d/1P-bbsj7a9zGL8ihYrMSK1YPZpJzH-vD3/view

Add-on disabled:
https://drive.google.com/file/d/1KFMn_L6zvqVwaQ9hJQAbG9kT_yaUY4Vp/view
Comment 2 Nate Graham 2021-04-09 02:43:58 UTC
Definitely Bug 423594, which thankfully was fixed in 5.21. :)

*** This bug has been marked as a duplicate of bug 423594 ***