Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206465 - media-sound/exaile memory leak (?)
Summary: media-sound/exaile memory leak (?)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 21:03 UTC by horea_christian
Modified: 2008-02-07 17:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description horea_christian 2008-01-17 21:03:10 UTC
After some hours of uptime, python ends up hogging all my ram. This is probably related to exaile since it is the only python app I am running. 

here is the background output of exaile: http://www.pastebin.ca/858939

and here is my emerge --info output: http://pastebin.ca/858977

a screenshot of my system monitor (the memory usage is mild, compared to what i would get if i keep the computer on for another 2 days)
http://i19.tinypic.com/6luxa9e.png

and one of my resource usage: http://i16.tinypic.com/6te0zt0.png



If you feel this is not a general issue, and decide postponing any fix, but still have some sort of idea as to what i could do to avoid this problem, please contact me personally.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-17 21:07:25 UTC
We absolutely don't want any references to pastebins on bugs, sorry. It renders the bug completely useless in days.

Reopen once you've posted/attached everything relevant here, thanks.
Comment 2 horea_christian 2008-01-17 21:18:35 UTC
======================================================================
background output of exaile
======================================================================

/usr/lib64/exaile/xl/panels/collection.py:55: GtkWarning: Theme directory scalable/places/22 of theme black-white_2-Style has no size field

  gtk.ICON_SIZE_SMALL_TOOLBAR)
which: no serpentine in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2)
which: no k3b in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2)
which: no serpentine in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2)
which: no k3b in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2)
Plugins 'Alarm Clock' version '0.1.3' loaded successfully
Plugins 'IM Status' version '0.12.1' loaded successfully
Plugins 'Desktop Cover' version '0.3.3' loaded successfully
Created db for thread Thread-1
{'Thread-1': <pysqlite2.dbapi2.Connection object at 0xf168a0>}
Using multimedia keys from: gnome
loading tracks...
Starting scan timer at 20.0
-----------------------
 select ( /usr/lib64/exaile/xl/db.py @ 178):
-----------------------
Traceback (most recent call last):
  File "/usr/lib64/exaile/xl/db.py", line 191, in select
    row = cur.fetchone()
/usr/lib64/exaile/xl/xlmisc.py:703: GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
  self.buf.insert(iter, text)
OperationalError: Could not decode to UTF-8 column 'name' with text '/mnt/media/Muzik/Rammstein Discography/Albums/V�lkerball Limited Edition (17.11.2006)/CD2/01. Du Riechst so Gut.mp3'

-----------------------
 load_tracks ( /usr/lib64/exaile/xl/library.py @ 262):
-----------------------
Traceback (most recent call last):
  File "/usr/lib64/exaile/xl/library.py", line 321, in load_tracks
    row = cur.fetchone()
OperationalError: Could not decode to UTF-8 column 'name' with text '/mnt/media/Muzik/Apocalyptica  - Discografia [www.heavytorrents.org] By Heavyman/Apocalyptica - 2003 - Reflections/10.  Cort�ge.mp3'

Closed db for thread Thread-1
done loading tracks...
loading songs
Traceback (most recent call last):
  File "/usr/lib64/exaile/xl/panels/collection.py", line 545, in load_tree
    songs = self.search_tracks(self.keyword, self.all)
  File "/usr/lib64/exaile/xl/panels/collection.py", line 561, in search_tracks
    self.keyword, None, self.where)
  File "/usr/lib64/exaile/xl/library.py", line 232, in search_tracks
    for row in cur.fetchall():
pysqlite2.dbapi2.OperationalError: Could not decode to UTF-8 column 'name' with text '/mnt/media/Muzik/Rammstein Discography/Albums/V�lkerball Limited Edition (17.11.2006)/CD2/01. Du Riechst so Gut.mp3'
Clearing tracks cache
Importing /home/chymera/.exaile/saved/playlist0000.m3u
Last playlist loaded
Loading page 0
Traceback (most recent call last):
  File "/usr/lib64/exaile/xl/db.py", line 173, in _execute
    cur.execute(query, args)
IntegrityError: PRIMARY KEY must be unique
INSERT INTO paths( id, name ) VALUES( ?, ? ) (571, u'/mnt/media/Muzik/Enya - The Ultimate Collection/1997 - Paint The Sky With Stars; The Best of Enya/15. The Memory Of Trees.wav')
ReplayGain support initialized.
Traceback (most recent call last):
  File "/usr/lib64/exaile/xl/db.py", line 173, in _execute
    cur.execute(query, args)
IntegrityError: PRIMARY KEY must be unique
INSERT INTO paths( id, name ) VALUES( ?, ? ) (572, u'/mnt/media/Muzik/Blind Guardian/Blind Guardian - 2001 - And Then There Was Silence/01 And Then There Was Silence.mpc')




======================================================================
emerge --info
======================================================================

Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
Timestamp of tree: Fri, 11 Jan 2008 16:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.romnet.org/gentoo/ ftp://mirrors.evolva.ro/gentoo/ "
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-17 21:24:51 UTC
(In reply to comment #2)
> ======================================================================
> background output of exaile
> ======================================================================

In what way is this exactly relevant to your alleged memory leak? I'd suggest that you have a look at http://valgrind.org/docs/manual/quick-start.html... Thanks.
Comment 4 upendra 2008-01-17 21:59:49 UTC
I wonder if it is actually a memory leak or design of database implementation in exaile which is actually making horea_christian@yahoo.de 's system slow down

just wanted to put my view

Thank you
Comment 5 horea_christian 2008-01-19 15:26:11 UTC
I tried valgrind for about 3 hours and I got no errors. I'll try again when I feel that the system is really getting jammed
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2008-02-07 17:52:59 UTC
Closing as invalid, if you have conserns about exaile memory usage please take them to upstream authors.