After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732151 - High CPU and sluggish performance
High CPU and sluggish performance
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
3.13.x
Other Linux
: Normal normal
: 3.14
Assigned To: gnome-music-maint
gnome-music-maint
: 731885 731992 732972 733991 736183 737614 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-06-24 11:33 UTC by Allan Day
Modified: 2014-11-06 14:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allan Day 2014-06-24 11:33:00 UTC
I was just trying gnome-music from master, and python3 was putting real strain on my machine - CPU usage was high and the fan was whirring. The Music app itself felt very sluggish and the performance of the rest of my system was affected.

There was a bunch of output like this in the terminal (not sure if it's relevant):

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed
12:16:03 WARNING	albumArtCache.py:214 	can't find URL for album 'Vocal Studies + Uprock Narratives' by Prefuse 73
12:16:03 WARNING	albumArtCache.py:214 	can't find URL for album 'World Dance: The Drum & Bass Experience' by DJ Hype
12:16:05 WARNING	albumArtCache.py:214 	can't find URL for album 'Xen Cuts (CD1)' by Amon Tobin

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed
12:16:49 WARNING	albumArtCache.py:232 	Error: g-io-error-quark: Not Found (1)
12:16:49 WARNING	albumArtCache.py:232 	Error: g-io-error-quark: Not Found (1)
12:16:49 WARNING	albumArtCache.py:232 	Error: g-io-error-quark: Not Found (1)

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed
12:16:50 WARNING	albumArtCache.py:232 	Error: g-io-error-quark: Not Found (1)

(gnome-music:5690): GLib-GIO-CRITICAL **: g_file_get_parent: assertion 'G_IS_FILE (file)' failed
12:16:50 WARNING	albumArtCache.py:232 	Error: g-io-error-quark: Not Found (1)
12:16:50 WARNING	albumArtCache.py:232 	Error: g-io-error-quark: Not Found (1)
Comment 1 Vadim Rutkovsky 2014-06-24 13:54:29 UTC
The warning are from bug 727463 and unrelated to performance.

I did a performance measurement lately and found two bottlenecks: 

1) Artists is damn slow as we use many widgets and, most importantly, many tracker requests. We should minimize the amount of requests (handled in bug 729103)

2) Model's append and insert operations are very slow. We can try wrapping them in GLib.idle_add or batch them somehow so the UI will not get slowed down
Comment 2 Vadim Rutkovsky 2014-06-24 13:59:11 UTC
Also, for first start / initial loading we should be less agressive when downloading albumart - afaik we're not limiting threads there, which hogs the machine for quite a while
Comment 3 Vadim Rutkovsky 2014-07-10 07:22:43 UTC
*** Bug 732972 has been marked as a duplicate of this bug. ***
Comment 4 Vadim Rutkovsky 2014-07-28 14:25:16 UTC
*** Bug 731992 has been marked as a duplicate of this bug. ***
Comment 5 Vadim Rutkovsky 2014-07-31 07:06:20 UTC
*** Bug 731885 has been marked as a duplicate of this bug. ***
Comment 6 Vadim Rutkovsky 2014-07-31 07:06:32 UTC
*** Bug 733991 has been marked as a duplicate of this bug. ***
Comment 7 Vadim Rutkovsky 2014-09-09 06:52:48 UTC
*** Bug 736183 has been marked as a duplicate of this bug. ***
Comment 8 Vadim Rutkovsky 2014-09-30 07:42:46 UTC
*** Bug 737614 has been marked as a duplicate of this bug. ***
Comment 9 Vadim Rutkovsky 2014-10-03 11:51:31 UTC
I've pushed commit https://git.gnome.org/browse/gnome-music/commit/?id=665c2f673e179ceff0bcf8e8caa90b047c19308e, which should presumably please help a lot.

Please comment if performance feels better/worse/same
Comment 10 Georges Basile Stavracas Neto 2014-10-14 03:18:01 UTC
I've tried it over and over and over... and for me, it makes no difference at all.
I have 9000+ musics, and maybe this is overloading Tracker and/or GNOME Music.
Comment 11 Allan Day 2014-11-06 14:23:22 UTC
I just launched Music for the first time on a new F21 install, and observed:

 PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
1442 aday      20   0 3077252 259248  48092 R 130.9  2.2   1:03.12 python3