gnome-software uses a very high cpu amount

Bug #1716579 reported by fcole90 on 2017-09-12
This bug affects 10 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)

Bug Description

The room was silent, when the fan of my laptop suddenly started making noise. I checked it and it was because of the intense amount of CPU in use because of gnome software.

Gnome Software CPU use was over 60%.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-software 3.25.91-1ubuntu5
ProcVersionSignature: Ubuntu 4.12.0-12.13-generic 4.12.8
Uname: Linux 4.12.0-12-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 12 08:29:01 2017
InstallationDate: Installed on 2017-08-21 (21 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170820)
 gnome-software-plugin-flatpak N/A
 gnome-software-plugin-limba N/A
 gnome-software-plugin-snap 3.25.91-1ubuntu5
SourcePackage: gnome-software
UpgradeStatus: No upgrade log present (probably fresh install)

fcole90 (fcole90) wrote :
Jean-Baptiste Lallement (jibel) wrote :

Confirmed by several users.

Changed in gnome-software (Ubuntu):
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → Robert Ancell (robert-ancell)
milestone: none → ubuntu-17.10
Iain Lane (laney) wrote :

It's not really useful assigning the bug to Robert without knowing what went wrong, because there's no information to go on for fixing it.


As it happens this just happened on my laptop, and I have a backtrace. It looks like our old friend GMainContext. Hopefully this is enough to go on.

tags: added: rls-aa-incoming
Robert Ancell (robert-ancell) wrote :

Is there any possibility that the snapd socket closed? I have found a bug in snapd-glib where it continuously reads the socket when it closes.

Fábio Lima (fhl) wrote :

Not only CPU. It (very) quickly skyrocket RAM memmory usage until system completely slow down and eventually running out of RAM.

I'm running a vanilla installation of artful inside a VirtualBox.
Ubuntu Artful Aardvark (development branch)
Linux vbox 4.12.0-13-generic #14-Ubuntu SMP Sat Sep 2 15:52:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
gnome-software 3.26.0-0ubuntu1

If there is something I can test, feel free to ask for (saying how).

  PID User Command Swap USS PSS RSS
 3100 fabio /usr/bin/gnome-software --g 0 55076 56869 81768
 3100 fabio /usr/bin/gnome-software --g 0 55076 56869 81768
 3100 fabio /usr/bin/gnome-software --g 0 135600 137248 162492
 3100 fabio /usr/bin/gnome-software --g 0 261084 262732 287976
 3100 fabio /usr/bin/gnome-software --g 0 376692 378325 403584
 3100 fabio /usr/bin/gnome-software --g 0 685868 687523 712620
 3100 fabio /usr/bin/gnome-software --g 0 830336 831991 857088
 3100 fabio /usr/bin/gnome-software --g 0 1061004 1062692 1087756
 3100 fabio /usr/bin/gnome-software --g 0 1213656 1215344 1240408
 3100 fabio /usr/bin/gnome-software --g 0 1522980 1524668 1549732
 3100 fabio /usr/bin/gnome-software --g 0 1758456 1760121 1784340
 3100 fabio /usr/bin/gnome-software --g 0 2011536 2012984 2036248
 3100 fabio /usr/bin/gnome-software --g 0 2194020 2194121 2198888
 3100 fabio /usr/bin/gnome-software --g 52668 2602192 2602205 2602908
-bash: fork: Não foi possível alocar memória
-bash: fork: Não foi possível alocar memória

Iain Lane (laney) wrote :
Download full text (5.3 KiB)

It happened again just now. From the trace it looks like it was when I searched for "gedit" in the overview - which has a snap result AFAIK.

Thread 5 (Thread 0x7f1cadf5e700 (LWP 8464)):
#0 0x00007f1cd4318cdd in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f1cd72ac119 in g_main_context_poll (priority=<optimised out>, n_fds=2, fds=0x7f1ca050f2f0, timeout=<optimised out>, context=0x7f1ca049a910) at ../../../../glib/gmain.c:4187
#2 0x00007f1cd72ac119 in g_main_context_iterate (context=0x7f1ca049a910, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimised out>) at ../../../../glib/gmain.c:3881
#3 0x00007f1cd72ac4b2 in g_main_loop_run (loop=0x7f1ca04395b0) at ../../../../glib/gmain.c:4082
#4 0x00007f1cb04f8b26 in end_sync (data=0x7f1cadf5d8b0, data=0x7f1cadf5d8b0) at snapd-client.c:2446
#5 0x00007f1cb04f8b26 in snapd_client_find_section_sync (client=0x55a0f05ef960 [SnapdClient], flags=flags@entry=SNAPD_FIND_FLAGS_NONE, section=section@entry=0x0, query=query@entry=0x7f1ca061edd0 "ged", suggested_currency=suggested_currency@entry=0x0, cancellable=cancellable@entry=0x55a0f066d840 [GCancellable], error=0x7f1cadf5d9d8) at snapd-client.c:3798
#6 0x00007f1cb071424f in find_snaps (plugin=plugin@entry=0x55a0f06051d0 [GsPlugin], flags=flags@entry=SNAPD_FIND_FLAGS_NONE, section=section@entry=0x0, query=query@entry=0x7f1ca061edd0 "ged", cancellable=0x55a0f066d840 [GCancellable], error=error@entry=0x7f1cadf5d9d8) at ../plugins/snap/gs-plugin-snap.c:231
#7 0x00007f1cb0714e40 in gs_plugin_add_search (plugin=0x55a0f06051d0 [GsPlugin], values=<optimised out>, list=0x55a0f2536d00 [GsAppList], cancellable=<optimised out>, error=0x7f1cadf5d9d8)
    at ../plugins/snap/gs-plugin-snap.c:505
#8 0x000055a0ef18d7cf in gs_plugin_loader_call_vfunc (helper=helper@entry=0x55a0f0ffe300, plugin=plugin@entry=0x55a0f06051d0 [GsPlugin], app=app@entry=0x0, list=0x55a0f2536d00 [GsAppList],
    list@entry=0x0, cancellable=cancellable@entry=0x55a0f066d840 [GCancellable], error=error@entry=0x7f1cadf5dae8) at ../lib/gs-plugin-loader.c:657
#9 0x000055a0ef18db1d in gs_plugin_loader_run_results (helper=helper@entry=0x55a0f0ffe300, cancellable=cancellable@entry=0x55a0f066d840 [GCancellable], error=error@entry=0x7f1cadf5dae8) at ../lib/gs-plugin-loader.c:1083
#10 0x000055a0ef18f32a in gs_plugin_loader_process_thread_cb (task=0x7f1ca0006ab0 [GTask], object=0x7f1cbc004320, task_data=0x55a0f0ffe300, cancellable=0x55a0f066d840 [GCancellable]) at ../lib/gs-plugin-loader.c:3054
#11 0x00007f1cd6f52b76 in g_task_thread_pool_thread (thread_data=0x7f1ca0006ab0, pool_data=<optimised out>) at ../../../../gio/gtask.c:1328
#12 0x00007f1cd72d3ff0 in g_thread_pool_thread_proxy (data=<optimised out>) at ../../../../glib/gthreadpool.c:307
#13 0x00007f1cd72d3625 in g_thread_proxy (data=0x55a0f05e8a80) at ../../../../glib/gthread.c:784
#14 0x00007f1cd45e874a in start_thread (arg=0x7f1cadf5e700) at pthread_create.c:456
#15 0x00007f1cd4324caf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

● snapd.service - Snappy daemon
   Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-09-19 09:13:12 BST...


Will Cooke (willcooke) on 2017-09-27
tags: removed: rls-aa-incoming
tags: added: gnome-software-snap
IxI_JOKER_IxI (vovan-bax) wrote :

I have the same problem. Tell me how to decide? This problem arose after I left my computer on for 3 days.

IxI_JOKER_IxI (vovan-bax) wrote :

SSD Kingston V300 60Gb. Dell Optiplex 755

Johan Lejonborn (soltrumman) wrote :

This happend to me _three_ times in the last week, gnome-software runs amok and takes up 16GB ram + 16GB Swap and managed to write a 13.7GB-14.3GB syslog. Couldn't view the syslogs, but there is a comment in another bug-thread on the same issue with info from syslog:

For now i have uninstalled gnome-software, that fixes the problem...

Changed in gnome-software (Ubuntu):
assignee: Robert Ancell (robert-ancell) → nobody
Changed in gnome-software (Ubuntu Artful):
assignee: Robert Ancell (robert-ancell) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers