Memory consumption is always increasing

Bug #400849 reported by Samuel Buffet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Triaged
High
Unassigned
Declined for Entertainer-0.4 by Matt Layman
Declined for Entertainer-0.5 by Matt Layman

Bug Description

Running trunk 397, I can see that memory used by Entertainer is always increasing.

It can increase and reach a point where Entertainer is no more usable and must be killed.

To reproduce that, run Entertainer, run for instance "gnome-system-monitor" or look its applet and then open the video (or music) screen and then navigate back. Reproduce this step many times if you have small libraries.

Changed in entertainer:
importance: Undecided → Critical
milestone: none → entertainer-0.5
Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

After some tests, I came to the conclusion that this memory issue is caused by screens.

Indeed, it looks like screen objects are never destroyed by the garbage collector. So all their content is not released from memory. This bug is more visible on screens that include clutter textures cause those are huge memory consumers.

To fix that, I see to solutions :

i/ we find why the garbage collector does not destroy them = we find where the python interpreter still keep a reference
ii/ we don't destroy them but keep a visible/accessible reference to them in order to avoid to recreate them in case we need one of them later on. Note, this solution is not good if we want to minimize the memory footprint of Entertainer.

Quick estimation (assuming that all the memory goes in Textures):

Test on my machine gives 130Mb for a screen containing 266 media. So around 0.5Mb per media texture.

So someone with 100 vids and 100 albums => 100Mb
So someone with 50 vids and 200 albums => 125Mb

Entertainer out of the box on the Main screen => around 37Mb

The backend itself 240Mb (what the hell is that??)

Revision history for this message
Matt Layman (mblayman) wrote :

With no one to champion this bug, I don't think it will make it into 0.5. It's very valid and should be fixed soon, but 0.5 is probably not a realistic target (unless some other contributor can prove to me otherwise; for all I know, maybe it's an easy fix).

Changed in entertainer:
milestone: entertainer-0.5 → none
Paul Hummer (rockstar)
Changed in entertainer:
status: New → Triaged
importance: Critical → High
Changed in entertainer:
assignee: nobody → Matt Layman (laymansterms)
Matt Layman (mblayman)
Changed in entertainer:
assignee: Matt Layman (laymansterms) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.