Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77388 - xmms randomly freezes
Summary: xmms randomly freezes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 09:09 UTC by Patrick Lauer
Modified: 2005-03-10 06:16 UTC (History)
6 users (show)

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 Patrick Lauer gentoo-dev 2005-01-10 09:09:39 UTC
When I pause xmms it sometimes hangs (not responisve to user input, needs to be KILLed)
During play it hangs (very rarely, no discernible pattern)
After ~1h of play (on average) the ALSA plugin can't use the soundcard, just ignoring the message and pressing play again continues

Reproducible: Sometimes
Steps to Reproduce:
1.emerge xmms
2.let xmms play for some time
3.every now and then it will randomly hang, especially when you pause it.




Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan  7 2005, 12:06:31)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aac aalib acl acpi alsa apache2 apm arts audiofile avi
bash-completion berkdb bidi bigger-fonts bitmap-fonts bzlib cdr chroot cjk cross
crypt css cups curl curlwrappers dbm dga directfb divx4linux doc dvd dvdr
dvdread edl encode erandom esd ethereal exif faac faad flac flexresp flood
font-server foomaticdb fortran freetype ftp gd gdbm gif gimp glep gmp gmttria
gpm hardened hardenedphp iconv icq imlib inifile ipv6 jabber java jpeg jpeg2k
junit kde ldap libcaca libwww live lzo mad makecheck mikmod mime mmx mmx2 mng
monkey motif mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer mysql mysqli
nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network nls no-old-linux
nptl nptlonly ntlm nvidia offensive oggvorbis openal opengl oss pam parse-clocks
pcre pdf pdflib pear-db perl pie png prelude print python qemu-fast qt quicktime
readline real recode rtc samba sdl skey slang slp smime sndfile sockets spell
sse ssl ssp svg svga tcltk tcpd tcpmd5 tetex tga theora threads tidy tiff
truetype truetype-fonts type1 type1-fonts usb vhosts xml xml2 xmlrpc xmms xprint
xv xvid xvmc yv12 zeo zlib"
Comment 1 Matthew Schulkind 2005-01-30 14:56:13 UTC
I don't know how much help I can be, but this definitely happens to me too. It never locks during playing and it's only with the most recent xmms. This never happened to me before. It randomly just locks up and has to be killed when I pick a new song to play or pause and restart a song.

[ebuild   R   ] media-sound/xmms-1.2.10-r10

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-ck1 i686)
=================================================================
System uname: 2.6.10-ck1 i686 AMD Athlon(tm) MP 2400+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 14 2005, 15:34:53)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirror.cc.columbia.edu/pub/linux/gentoo/distro ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-mirror.internap.com/pub/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cscope cups doc dts dvd dvdr emacs encode esd f77 fam flac font-server foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib ipv6 jack java jpeg junit kde ldap libg++ libwww lirc mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb videos wxwindows x86 xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-30 15:03:05 UTC
oh god... this looks ugly... yick... well atleast we've got more than one person reporting this... and it actually happened to me too, but I can't reproduce it on demand.  It's only happened to me on amd64 with alsa out, and it has only happened under high cpu load.  I switched to OSS and haven't had a problem, so I'm fairly certain it's ALSA specific.

Matthew: Are you using ALSA output?

I bumped my alsa versions around the same time, so can I get the versions of alsa-lib you guys are using?
Comment 3 Patrick Lauer gentoo-dev 2005-01-30 15:16:25 UTC
media-libs/alsa-lib-1.0.8 

and it only freezes when paused and rarely when switching to a different file.

I've seen some weird messages on the console, but haven't saved them (yet). Sorry.
Some message like "wrong permissions on ALSA ioctl" or so (I'll try to recreate it)

For now I could only trigger:  
** WARNING **: snd_pcm_pause() failed: File descriptor in bad state
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-30 15:32:36 UTC
yeah... I'm on 1.0.8, too.

The thing is, nothing has changed in the alsa output plugin between -r9 and -r10... that leads me to believe it MIGHT be the alsa-lib/alsa-drivers bump wich occurred at the same time.

Could you drop down to ~alsa-{lib,drivers}-1.0.7
Comment 5 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-02-02 14:48:17 UTC
Got the same problem here with xmms-1.2.10-r10 and alsa-lib-1.0.8 (alsa-driver not installed).  Backing down to 1.0.7 doesn't change anything.  Btw, I'm getting this regardless of load; My box has been ~99% idle for the last half-hour (started xmms about 20 minutes ago).
Comment 6 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-02-02 14:58:39 UTC
Just checked the console and I was this:

  Message: alsa mixer timed out

  Gdk-CRITICAL **: file gdkwindow.c: line 1390 (gdk_window_set_size): assertion `window != NULL' failed.

  Segmentation fault

  You've probably found a bug in XMMS...
  ...

XMMS was hung as before, which I wouldn't normally expect from a segfault; dunno is it's related (before I got "File descriptor in bad state" or some such).
Comment 7 Matthew Schulkind 2005-02-02 18:46:29 UTC
I'm actually using the OSS driver it seems. I have alsa sound drivers using snd-pcm-oss.

I also didn't have any messages on the console when it crashed.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-04 22:28:03 UTC
I just user -r12 on amd64 playing ogg for the past 3 hours using OSS output with no problem.  I'm going for a run now and will leave it running with alsa.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-13 20:25:13 UTC
can you use -r13.  Also, try using the 1.2.10 plugins rather than the 1.2.10-r1 plugins.  Does that make a difference?

Can youu attach gdb to xmms when it freezes to see where it's stuck?  I'm not having this problem any more... not sure what I did to clear it up.
Comment 10 Matthew Schulkind 2005-02-14 09:52:45 UTC
For a while, xmms was crashing almost every time I chose a new song. I then switched to rhythmbox, but surprisingly when rhythmbox was going through a playlist, it too locked up.

Since then I've switched back to a 2.4 kernel since on 2.6 heavy I/O causes crackling on my audio and I think the problems have gone away. I'm still using alsa drivers, but of course they are from alsa-driver and not the kernel.
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-14 18:08:47 UTC
ok, yay... now we're getting somewhere... I've had some major problems with 2.6.10.  What 2.6 kernel were you noticing this on?  It might've been one of the things that cleared up for me when jumping back to 2.6.9
Comment 12 Matthew Schulkind 2005-02-15 22:47:07 UTC
I was using 2.6.10-ck1 when I got the hanging problem. 

The crackling happens on all 2.6 versions that I've tried, and I believe it's complete unrelated to this problem.
Comment 13 Matthew Schulkind 2005-02-18 14:27:53 UTC
XMMS just froze on me when changing songs on 2.4.29. So much for that idea.
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-05 14:59:44 UTC
Well, I can't verify this bug any more, so I'm not sure what to think.

Can you attatch gdb to the process and see where it's stuck?
Comment 15 David Li 2005-03-07 14:24:08 UTC
I used to have this bug every time I ran it and now I can't seem to reproduce it.
The only thing I can think of that I changed is dmix (don't count on it). Does anyone still have this problem? I think it's possible this is asound.conf related.
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-10 06:16:29 UTC
Hmm... too bad there's no "Magically Fixed" resolution... oh well... please reopen if it hits you again.