Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137916 - media-sound/amarok-1.3.8: 6 processes spawned not killed after Musicbrainz lookup
Summary: media-sound/amarok-1.3.8: 6 processes spawned not killed after Musicbrainz lo...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-25 02:05 UTC by Calum
Modified: 2006-10-01 22:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Snippet from syslog after machine ground to a halt (amarok,10.10 KB, text/plain)
2006-06-29 13:31 UTC, Calum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Calum 2006-06-25 02:05:21 UTC
When using Amarok, clicking "Edit Track Information", and then "Fill in tags with MusicBrainz" leaves me with 4-6 more amarokapp processes that aren't removed after the success or failure of Musicbrainz to get the tags.
(The result of the tag update doesn't have any relevance to this).

Eventually, the machine bogs down, and becomes unusable.

Relevant USE settings?

[ebuild   R   ] media-libs/tunepimp-0.3.0-r1  USE="flac mp3 perl readline vorbis -minimal -python" 0 kB
[ebuild   R   ] media-sound/amarok-1.3.8  USE="flac kde mp3 musicbrainz noamazon opengl postgres vorbis xine xmms -arts -debug -gstreamer -mysql -visualization -xinerama" LINGUAS="en_GB -az -be -bg -br -ca -cs -cy -da -de -el -eo -es -et -fi -fr -ga -gl -he -hi -hr -hu -id -is -it -ja -ko -ku -lo -lt -nb -nds -nl -nn -pa -pl -pt -pt_BR -ro -ru -se -sl -sq -sr -sr@Latn -ss -sv -ta -tg -th -tr -uk -uz -zh_CN -zh_TW" 0 kB
[ebuild   R   ] media-libs/xine-lib-1.1.2_pre20060328-r9  USE="a52 aac alsa asf directfb dvd ffmpeg flac ipv6 mad opengl samba sdl theora v4l vorbis xv xvmc -X -aalib -arts -debug -dts -dxr3 -esd -fbcon -gnome -imagemagick -libcaca -mng -modplug -oss -speex -vcd -xinerama" VIDEO_CARDS="-i810 -nvidia -via" 0 kB






Portage 2.1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.16.20-vs2.1.1-rc22IPv6 x86_64)
=================================================================
System uname: 2.6.16.20-vs2.1.1-rc22IPv6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/gcc-config: 1.3.12-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://gentoo.osuosl.org http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acl aim alsa apache2 aper avi berkdb bzip2 bzlib cdparanoia crypt dga directfb divx4linux dlloader dv dvd dvdr dvdread encode faac faad ffmpeg fla flash gd-external gdbm gif gmp gphoto2 gtk2 hardened ieee1394 imlib ipv6 jabber jack java jpeg kde linguas_en_GB live lm_sensors lzo mad maildir matroska mozsvg mp3 mpeg mpeg4 mplayer msn network nls nodrm nsplugin ntlm ogg oggvorbis opengl oscar pcre perl php png postgres quotas readline rrdtool rtc samba sdl session sftplogging ssl svg tga theora tiff truetype truetype-fonts underscores v4l v4l2 voodoo3 vorbis xanim xfs xml2 xmms xv xvid xvmc yahoo yv12 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-06-25 03:46:10 UTC
which version?
Comment 2 Calum 2006-06-25 04:01:36 UTC
They're listed just under "Relevant USE settings"

media-sound/amarok-1.3.8
media-libs/tunepimp-0.3.0-r1
media-libs/xine-lib-1.1.2_pre20060328-r9

with the USE flags I used to build them with.
Comment 3 Calum 2006-06-27 13:35:19 UTC
Before running Amarok:

calum@torro ~ $ ps auxw | grep amarok
calum    22727  0.0  0.0   2688   536 pts/0    R+   21:28   0:00 grep amarok
calum@torro ~ $

Amarok playing a track:

calum@torro ~ $ ps auxw | grep amarok
calum    22730  5.9  5.3 254400 55244 ?        S    21:29   0:02 amarokapp
postgres 22731  0.3  0.8 125196  8260 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22732  0.2  0.8 125184  8456 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22733  0.2  0.7 125088  8188 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22734  0.1  0.7 125220  8188 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22735  0.2  0.8 125176  8480 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
calum    22736  0.0  5.3 254400 55244 ?        S    21:29   0:00 amarokapp
calum    22738  0.0  5.3 254400 55244 ?        S    21:29   0:00 amarokapp
calum    22739  0.0  5.3 254400 55244 ?        S    21:29   0:00 amarokapp
calum    22740  0.0  5.3 254400 55244 ?        S    21:29   0:00 amarokapp
calum    22741  0.1  5.3 254400 55244 ?        S    21:29   0:00 amarokapp
calum    22742  0.0  5.3 254400 55244 ?        S    21:29   0:00 amarokapp
calum    22743  0.0  0.9  81204  9500 ?        S    21:29   0:00 kio_file [kdeinit] file /tmp/ksocket-calum/klauncherhTaMIa.slave-socket /tmp/ksocket-calum/amarokJMG30a.slave-socket
calum    22744  0.0  0.9  80996  9260 ?        S    21:29   0:00 kio_file [kdeinit] file /tmp/ksocket-calum/klauncherhTaMIa.slave-socket /tmp/ksocket-calum/amarokUWtTqb.slave-socket
calum    22745  0.0  0.8  76556  8700 ?        S    21:29   0:00 kio_file [kdeinit] file /tmp/ksocket-calum/klauncherhTaMIa.slave-socket /tmp/ksocket-calum/amarokqpSl3a.slave-socket
calum    22772  0.0  5.3 254400 55244 ?        S    21:30   0:00 amarokapp
calum    22893  0.0  0.0   2692   532 pts/0    R+   21:30   0:00 grep amarok
calum@torro ~ $


After doing a lookup (which I clicked Cancel to after about 20 seconds:

calum@torro ~ $ ps auxw | grep amarok
calum    22730  3.2  5.7 299600 59384 ?        R    21:29   0:04 amarokapp
postgres 22731  0.1  0.8 125196  8324 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22732  0.2  1.1 125184 11384 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22733  0.1  1.0 125088 10684 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22734  0.1  0.8 125220  8328 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
postgres 22735  0.1  0.8 125176  8552 ?        S    21:29   0:00 postgres: amarok amarok [local] idle
calum    22736  0.0  5.7 299600 59384 ?        S    21:29   0:00 amarokapp
calum    22738  0.0  5.7 299600 59384 ?        S    21:29   0:00 amarokapp
calum    22739  0.0  5.7 299600 59384 ?        S    21:29   0:00 amarokapp
calum    22740  0.1  5.7 299600 59384 ?        S    21:29   0:00 amarokapp
calum    22741  0.9  5.7 299600 59384 ?        S    21:29   0:01 amarokapp
calum    22742  0.0  5.7 299600 59384 ?        S    21:29   0:00 amarokapp
calum    22743  0.0  0.9  81204  9500 ?        S    21:29   0:00 kio_file [kdeinit] file /tmp/ksocket-calum/klauncherhTaMIa.slave-socket /tmp/ksocket-calum/amarokJMG30a.slave-socket
calum    22744  0.0  0.9  80996  9260 ?        S    21:29   0:00 kio_file [kdeinit] file /tmp/ksocket-calum/klauncherhTaMIa.slave-socket /tmp/ksocket-calum/amarokUWtTqb.slave-socket
calum    22745  0.0  0.8  76556  8700 ?        S    21:29   0:00 kio_file [kdeinit] file /tmp/ksocket-calum/klauncherhTaMIa.slave-socket /tmp/ksocket-calum/amarokqpSl3a.slave-socket
calum    22772  0.0  5.7 299600 59384 ?        S    21:30   0:00 amarokapp
calum    23062  1.1  5.7 299600 59384 ?        S    21:30   0:00 amarokapp
calum    23063  0.0  5.7 299600 59384 ?        S    21:30   0:00 amarokapp
calum    23064  0.0  5.7 299600 59384 ?        S    21:30   0:00 amarokapp
calum    23065  0.0  5.7 299600 59384 ?        S    21:30   0:00 amarokapp
calum    23066  0.0  5.7 299600 59384 ?        S    21:30   0:00 amarokapp
calum    23070  0.0  0.0   2692   532 pts/0    R+   21:31   0:00 grep amarok
calum@torro ~ $


However, just trying a few more lookups, and the stray processes aren't appearing.

Perhaps it only happens when the lookup is cancelled (due to it never finishing)?

I'll try a load more lookups tonight, and post here with more info.
Comment 4 Calum 2006-06-29 12:54:27 UTC
Current top output

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
22201 calum     25   0 1817m 752m  11m R 93.3 75.0  10:56.67 amarokapp

Which is strange, as it's an AMD64 with 1GB ram.

There's definitely some sort of leak, or problem somewhere.
Comment 5 Calum 2006-06-29 12:59:01 UTC
Also, just choosing File, Quit from the menu has left these processes running (after about 5 minutes):

calum@torro ~ $ ps auxw | grep amarok
calum    21872  2.7 81.3 2377008 836012 ?      S    20:22   0:59 amarokapp
postgres 21873  0.1  0.0 125344   380 ?        S    20:22   0:03 postgres: amarok amarok [local] idle
postgres 21874  0.1  0.0 126456   376 ?        S    20:22   0:03 postgres: amarok amarok [local] idle
postgres 21875  0.1  0.0 125452   380 ?        S    20:22   0:03 postgres: amarok amarok [local] idle
postgres 21876  0.1  0.0 125568   384 ?        S    20:22   0:03 postgres: amarok amarok [local] idle
postgres 21877  0.1  0.0 125656   376 ?        S    20:22   0:03 postgres: amarok amarok [local] idle
calum    21878  0.0 81.3 2377008 836012 ?      S    20:22   0:00 amarokapp
calum    22201 47.4 81.3 2377008 836012 ?      R    20:28  14:14 amarokapp
calum    22202  0.0 81.3 2377008 836012 ?      S    20:28   0:00 amarokapp
calum    24294  0.0  0.0   2692   584 pts/1    S+   20:58   0:00 grep amarok
calum@torro ~ $                                                              
Comment 6 Calum 2006-06-29 13:30:16 UTC
Wow. I didn't do anything after shutting down the GUI of Amarok.

My machine got slower, and slower, and slower, until it was unusable, with the harddrive grinding away.

Eventually, it "recovered", and all amarok processes were gone but I find the attached in the syslog:

Looks like it was leaking memory somewhere, and eventually, my OOM caught it, and said "Enough is enough".
Comment 7 Calum 2006-06-29 13:31:13 UTC
Created attachment 90470 [details]
Snippet from syslog after machine ground to a halt
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-29 13:40:41 UTC
Can you try 1.4.0 version with all the configuration wiped out? It might be a bug in 1.3.x series but upstream does not cover us anymore, so if it's fixed in 1.4.x I'll ask for a stable on that.
Comment 9 Calum 2006-06-29 16:00:47 UTC
Sure, will try that. (The latest in portage for ~amd64 is media-sound/amarok-1.4.0a-r1 )

I'll give that a whirl, but it won't be until after the weekend, as I'm going away.
Comment 10 Calum 2006-07-06 13:16:45 UTC
Updated, not had any problems straight away, but my machine is getting slower and slower today.

The culprit from "top" is :

22238 calum     18   0 1757m 818m  21m R 80.6 81.6   9:03.71 amarokapp
Comment 11 Calum 2006-07-09 15:35:07 UTC
Hmm.

It seems to have lost most of my collection too in the PG database.

I clicked re-add, and it found it all again, but it's lost all the number of plays/scores/ratings, which is a bit of a pain.

I was hoping I wouldn't need to do a pg_dump each night... :(
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:37:46 UTC
This is still a problem with musicbrainz, and this is why there's no musicbrainz support anymore.