gnome-software using hundreds of MB of memory when not in use

Bug #1616332 reported by Otus
448
This bug affects 93 people
Affects Status Importance Assigned to Milestone
GNOME Software
Fix Released
Unknown
gnome-software (Ubuntu)
Triaged
High
Unassigned

Bug Description

It seems gnome-software is running in the background all the time. Not a big deal if it was lightweight, but it seems to use hundreds of MB (from smem output):

  PID User Command Swap USS PSS RSS
 2291 jan /usr/bin/gnome-software --g 285436 112576 117982 134036

A total of over 400MB in RAM and swap combined.

After killing and restarting, it takes "only" a bit over 100MB.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: gnome-software 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1
ProcVersionSignature: Ubuntu 4.4.0-24.43-generic 4.4.10
Uname: Linux 4.4.0-24-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Aug 24 09:45:53 2016
InstallationDate: Installed on 2012-11-10 (1382 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: gnome-software
UpgradeStatus: Upgraded to xenial on 2016-06-19 (65 days ago)

Revision history for this message
Otus (jan-varho) wrote :
Changed in gnome-software (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Adam Koscso (csokosdama) wrote :

Dear All,

being a newbie I do not know whether I should start a new bug report, or it is fine to comment here. In my case gnome-software uses 27.6 GiB after leaving the computer untouched for overnight.
Same version of gnome-software. Please find system monitor screenshot attached.

Revision history for this message
bizmate (diegogullo) wrote :

The memory leak is not just a standby problem. The process eats as much memory as it can. On my 12GB system it was using 9.1GB of RSS and slowing it down. I am always forced to kill the process

Revision history for this message
x0a (x0a-cake) wrote :

I'm also experiencing this bug on 17.04

Revision history for this message
Sasa Stamenkovic (umpirsky) wrote :

I'm experiencing this bug too.

Ubuntu 16.04.3 LTS

Revision history for this message
Nikolay_Miroshnichenko (nikbox) wrote :

+1 on 17.04 (and also it eats my swap)

Revision history for this message
Warpfactor999 (warpfactor999) wrote :

After updating to 17.10 Gnome is now constantly growing to > 12Gb RAM overnight with nothing running. (16Gb system) Under heavy use, memory usage quickly jumps to 14Gb and starts to eat up to 15Gb of Swap. Minimal system mods. Only Firefox running 95% of the time.

Revision history for this message
Leonardo Donelli (learts92) wrote :

I do not seem to have the memory leak problem (the used RAM doesn't seem to grow constantly and without bounds), but still it uses constantly almost 200 MB of memory, which seems kind of unacceptable to me for an application which is usually run rarely or not at all for people who prefer using apt. I get that terminal users should not be the main concern of the OS/DE developers, but still, an option to disable the gnome-software autostart would be nice.

Revision history for this message
Traumflug (mah-jump-ing) wrote :

Even on a desktop, gnome-software not running all the time makes hardly a distinction. Searches for software may take a second longer (probably gnome-software startup time), still it works perfectly fine.

One can try this by killing gnome-software, then searching for something using the activities menu. This starts up gnome-software fully automatic. But it's not terminated after the search is done, which is certainly part of the problem.

Revision history for this message
Thomas L (golomi) wrote :

Same problem on 17.10. Memory consumption of gnome-software seems to be stable most of the time (around 56MB). Sometimes it starts consuming the whole available memory, including the swap.

Revision history for this message
Bernat Guillen (bernatp) wrote :

I'm also affected by this bug. Sometimes it starts consuming memory (I have 8GB, usually 6GB free) and devours swap as well. Only solution then is to do a hard restart, which can be problematic if I have a simulation running.

Revision history for this message
Matt Lu (matlu) wrote :

Just happened to me, too (17.10 x64). RAM usage got up, system became sluggish then stopped responding completely, only MagicSysRQ got me out. After restart, the problem has left an ugly gift: syslog has grown to 6,4 GB (I won't upload that). tail syslog (repeating for at least last 100 lines):

Jan 9 01:28:43 Comp gnome-software[1909]: Ignoring unexpected response
Jan 9 01:28:43 Comp gnome-software[1909]: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed

Sometimes, the error messages overlapped, don't know if this is normal:

Jan 9 01:36:59 Comp gnome-sofJan 9 01:37:49 Comp gnome-software[1909]: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed

Revision history for this message
Thomas L (golomi) wrote :

I found a second bug report (#1716579) which seems to describe the same problem as this report.

Revision history for this message
Andrei (andreik) wrote :

I have 2 computers with Ubuntu 17.10 and both have the same issue: somehow it happens, that gnome-software occupies all spare memory, I've just killed the gnome-software process, because it occupied 9,1Gb out of 16Gb of my ram.

Revision history for this message
Galen Thurber (godfree2) wrote :

explain yourselves Ubuntu

Revision history for this message
Traumflug (mah-jump-ing) wrote :

> explain yourselves Ubuntu

Never seen Ubuntu explaining anything, helping people with debugging or something like this in the last five years. Eventually the problem will go away some way or another, but even this event most likely won't get reported. So, don't expect too much.

That said, clicking on "This bug affects xxx people, but not you" just under the bug title and adding one selfs to the list of affected people raises bug "heat", which I believe does make a distinction.

Changed in gnome-software (Ubuntu):
importance: Medium → High
tags: added: bionic rls-bb-incoming
Revision history for this message
chrisw (cpwnd) wrote :

My version of 17.10 is also affected.

Happens very occasionally, unless I start chrome browser, than it will happen most certainly.

Same syslog as matlu described earlier
>> Ignoring unexpected response
>> g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed

Revision history for this message
Pablo Catalina (xkill) wrote :

Seems that it is could be a duplicated of #1723362

Will Cooke (willcooke)
tags: removed: rls-bb-incoming
Revision history for this message
Balazs Pere (perebal-sze) wrote :

+1 on 18.04

Revision history for this message
tom (tombuntus) wrote :

Still 197MB, not used, fresh after boot-up, on 18.04.

Revision history for this message
Jure Sah (dustwolfy) wrote :

Left the computer running overnight with locked screen and in the morning, gnome-software is using 3 GB of RAM.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Still affecting gnome-software 3.36.0-0ubuntu3 in Focal.

The gnome-software background process consumes 600 MB of memory after 6 days uptime.

tags: added: focal
Revision history for this message
Mathieu (mbousq) wrote :

I can confirm that this is still happening in 3.36.3 focal fossa.

Revision history for this message
Meluco (daniel-banobre-dopico) wrote :

I'm writing about this problem in https://gitlab.gnome.org/GNOME/gnome-software/-/issues/191
I think that it's a social and environmental responsibility to try to make software use a reasonable amount of resources. Unjustified computer renewal is a social and environmental problem.

Revision history for this message
J. Greg Mackinnon (jgregmac) wrote :

I also can confirm that this issue persists in Ubuntu 20.04 (focal). It's pretty irritating... it's bad enough that all of these Electron-based apps and chromium-based browsers are chewing up ~400-500Mb each. I don't need a silly software management UI doing it, too!

I recognize that gnome-software may not be a default-installed package on Ubuntu 20.04, but it
still is widely used (I have several Flatpaks I need for work, and gnome-software offers the ability to easily install and coordinate their updates). Can't some developers at Red Hat and Canonical put their heads together for a few minutes and get this corrected, please?

I also will second Meluco's comment. We should not all have to buy new 32Gb laptops just to run a simple productivity workstation.

This really needs to get corrected. I am seeing reports of memory leaks in gnome-software going back as far as Ubuntu 16.04.

Revision history for this message
CLI (m-wichtowski) wrote :

I also confirm in 20.04. I have to kill it every day just to release leaked(?) memory.

Revision history for this message
G.C. Hassink (gchassink) wrote :

yes also 20.04 starts at 50-60 MB grows to 600 MB in a couple of hours, is there a workaround? e.g. kill every hour?

Changed in gnome-software:
status: Unknown → Fix Released
Revision history for this message
Leon Matthews (leon-matthews) wrote :

Ubuntu 23.10 still has this problem. Without actually using the app I saw an RSS of 600MB on my AMD64 desktop, measured using `sudo smem -tk`. After a reboot (still without opening the app manually) I see a steady 300MB RSS.

It's the heaviest app in use on my desktop after Firefox.

While keeping Flatpaks and Snaps up-to-date is great, perhaps it could exit after having done that?

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.