[memory leak] Gnome-Shell don't free ram when changing the wallpaper

Bug #1423773 reported by carlix
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Unknown
Mutter
New
Unknown
gnome-shell (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Sorry for my bad english, here is the link to see the error by yourself: https://www.youtube.com/watch?v=O53tt-6v81Y&feature=youtu.be

carlix (carlixlinux)
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
status: Incomplete → New
carlix (carlixlinux)
description: updated
Revision history for this message
carlix (carlixlinux) wrote :

Please see the video (it only takes 32 seconds) to know about what I’m saying, this problem is very important because when you change the wallpaper the ram didn’t be free and then the computer will be freeze.

carlix (carlixlinux)
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
assignee: nobody → carlix (carlixlinux)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please tell us what version of Ubuntu you are using and if the problem persists.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
assignee: carlix (carlixlinux) → nobody
Revision history for this message
carlix (carlixlinux) wrote :

I was using Ubuntu Gnome 14.04 but still nowadays with Ubuntu Gnome 17.04 it is still present, this is a serious problem!!!

Changed in gnome-shell (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the quick response.

Can you please use the 'ps' command and track the VSZ and RSS numbers for the gnome-shell process (or whatever is using the memory)? Then paste the history of them here.

tags: added: performance
Revision history for this message
carlix (carlixlinux) wrote :

I have no idea how to do that but in the video you can see the error crearly and it is still present in 17.04 doesn't matter which application you use to change the wallpapper, I tried in other computers and the problem persist.

Revision history for this message
carlix (carlixlinux) wrote :

An important thing: If I put alt+f2 and I write restart the ram is free again, I think it is a gnome-shell problem

Revision history for this message
Fabricio Del Puerto (fablic2011) wrote :

I saw the video and I can reproduce the bug, please fix this

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.04 (zesty) reached end-of-life on January 13, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-shell (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-shell (Ubuntu):
status: Incomplete → Expired
Revision history for this message
carlix (carlixlinux) wrote :
Changed in gnome-shell (Ubuntu):
status: Expired → Confirmed
Revision history for this message
carlix (carlixlinux) wrote :

The irony on all this is that the bug expired the same day that omgubuntu posted this news

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I can reproduce this problem briefly in 18.04 (where the memory usage jumps dramatically), but after changing wallpapers 3-5 times the memory usage stops growing, or jumps back down to its original size. So I think there's probably still something to fix here in 18.04. But also, changing wallpapers is not something most users do very often.

Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Revision history for this message
Mike L (mikerl) wrote :

It does seem to increase memory usage. GNOME shell sure is leaky. Glad I have the luxury of 16GB of RAM. Still should be fixed in the LTS, IMO. Even if not high priority.

tags: added: leak
tags: added: focal
Changed in mutter (Ubuntu):
status: New → Confirmed
tags: added: bionic
tags: added: gnome-shell-leak
removed: leak
Changed in mutter (Ubuntu):
importance: Undecided → Medium
importance: Medium → Low
Changed in gnome-shell (Ubuntu):
importance: Low → Medium
Changed in mutter (Ubuntu):
importance: Low → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote :

Same problem here with Ubuntu 20.04.1.

summary: - Gnome-Shell don't free ram when I change a wallpaper
+ [memory leak] Gnome-Shell don't free ram when changing the wallpaper
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The video at the top of this bug should probably be removed because:

1. It's 6.5 years old so doesn't represent any supported GNOME code.

2. It shows nonstandard extensions in use.

3. It shows memory usage only increasing by around 100MB per image. If you have a couple of monitors or just very high resolution wallpapers then that is just how big they are uncompressed, not a bug. The last few images will be cached in memory and attributed to the gnome-shell process.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If anyone can reproduce this bug on a currently-supported version of Ubuntu without extensions loaded, then please let us know. Keeping in mind that growing memory usage by a few hundred MB is not a bug - that's just how big the last few wallpapers are in memory.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Changed in mutter (Ubuntu):
status: Confirmed → Incomplete
no longer affects: gnome-shell (Ubuntu)
Revision history for this message
Dolf Andringa (dolf-andringa) wrote :

I encountered the same issue, but visible through open file handles in Fedora. Every time the desktop background is changed with gsettings, a filehandle is opened that is never closed. I filed a bug report with gnome: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5796

Changed in gnome-shell:
status: Unknown → New
tags: removed: bionic
Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It think it ended up being refixed in 91ce5ca960879dbe810cde43265d00b5c6446a1a but still fix released in gnome-shell 43.0.

Changed in mutter (Ubuntu):
status: Incomplete → Fix Released
affects: gnome-shell → mutter
affects: mutter (Ubuntu) → gnome-shell (Ubuntu)
Changed in gnome-shell:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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