Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87999 - xmms randomly stops playing, apparently only an issue when using alsa with dmix
Summary: xmms randomly stops playing, apparently only an issue when using alsa with dmix
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Luis Medinas (RETIRED)
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 22:32 UTC by Chris Flesner
Modified: 2005-10-30 10:31 UTC (History)
2 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 Chris Flesner 2005-04-04 22:32:13 UTC
xmms just stops playing in the middle of songs.  It seems to happen at random times, but usually only when there is high CPU usage.

From searching forums.gentoo.org it seems only people using dmix are having the problem, a couple people using Beep Media Player have reported the problem as well (though others have claimed success with bmp).

Renicing xmms doesn't help.

Reproducible: Sometimes
Steps to Reproduce:
1.Configure alsa to use dmix
2.Run xmms
3.Listen to music and wait
Actual Results:  
xmms stops.  The progress bar remains in the same spot, but hitting play
restarts the song.

Expected Results:  
Play the song the whole way through.

I've had this problem for quite some time (since March 2004 -- just hadn't filed
a bug report before because I didn't think about it too often), so it's not
limited to the current versions of alsa and xmms.

# emerge info
Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 Intel(R) Celeron(R) CPU 1.80GHz
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 15 2005, 05:06:03)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi aim alsa apm avi bash-completion berkdb bitmap-fonts
bmp bzlib calendar canna cdr cjk crypt dbm divx4linux doc encode exif flac
font-server fortran ftpgd gdbm gif gpm gstreamer gtk gtk2 guile imap imlib
javascript jikes jpeg lesstif libcaca libg++ libpng libwww mad mikmod mime mmap
mmx mng motif mozilla mp3 mpeg msn ncurses nls offensive ogg oggvorbis openal
opengl oss pam pdflib perl plotutils png pnp posix python quicktime readline sdl
sockets spell sse ssl svg svga tcpd threads tiff truetype truetype-fonts
type1-fonts unicode usb vcd videos xine xml2 xmms xv yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Frank van den Brink 2005-04-10 10:37:28 UTC
Same problem here. Using alsa and dmix.

installed versions:
media-libs/alsa-lib-1.0.9_rc2-r1  
media-sound/alsa-driver-1.0.9_rc2  
media-sound/alsa-headers-1.0.9_rc2  
media-sound/alsa-utils-1.0.8  
media-sound/alsa-firmware-1.0.8
media-sound/xmms-1.2.10-r13

emerge --info:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 10 2005, 13:10:30)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="nl_NL.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm avi berkdb bitmap-fonts cjk crypt cups curl dvd dvdread emboss encode foomaticdb fortran gdbm gif gphoto2 gpm gtk gtk2 imagemagick imlib ipv6 ithreads java jpeg ldap libg++ libwww mad mikmod mmx mmxext mp3 mpeg ncurses nls nptl nvidia offensive oggvorbis opengl pam pdflib perl png pthreads python qt quicktime readline scanner sdl sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb xml2 xmms xv xvid zlib linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS

cat ~/.asoundrc:
pcm.dmixer { 
	type dmix
	ipc_key 1024
	slave {
		pcm "hw:0,0"
		period_time 0
		period_size 1024
		buffer_size 8192
		rate 44100
	}
	bindings {
		0 0
		1 1
	}
} 

pcm.dsp0 {
	type plug
	slave.pcm "dmixer"
}

pcm.!default {
	type plug
	slave.pcm "dmixer"
} 

pcm.default {
	type plug
	slave.pcm "dmixer"
}

ctl.mixer0 {
	type hw
	card 0
}
Comment 2 Triffid Hunter 2005-07-10 00:50:44 UTC
i get this sometimes too.. alsa+dmix, nforce2 audio using 2.6 kernel's supplied 
intel8x0 driver (no alsa-drivers)

# emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r0, 2.6.
12-gentoo-r3-lucienne i686)
=================================================================
System uname: 2.6.12-gentoo-r3-lucienne i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i386 -m32 -m80387 -mfancy-math-387 -fomit-frame-pointer -
pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=i386 -m32 -m80387 -mfancy-math-387 -fomit-frame-pointer -
pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.isp.net.au/pub/gentoo/ http://mirror.aarnet.edu.
au/pub/gentoo/ http://mirror.pacific.net.au/linux/Gentoo"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext S3TC X X509 Xaw3d a52 aac acpi alsa apm arts 
athena audiofile avi bash-completion berkdb bitmap-fonts bzip2 bzlib caps cdda 
cddb cdio cdparanoia cdr cdrom crypt cscope css cups curl dba dga directfb 
divx4linux dnd dts dv dvb dvd dvdr dvdread emboss encode erandom exif expat 
extensions faad fam fame ffmpeg flac foomaticdb fping ftp gd gd-external gdbm 
ggi gif gimp gimpprint glut gnutls gphoto2 gpm gstreamer gtk gtk2 guile ieee1394 
imagemagick imlib inifile ipv6 jack jack-tmpfs java jbig jce jpeg jpeg2k kde 
kdeenablefinal kdexdeltas kqemu ladcca libg++ libwww lirc live lm_sensors 
logitech-mouse lzo mad mailwrapper mapeditor md5sum mikmod mime mjpeg mmap mmx 
mmxext mng motif mozdevelop mozsvg mozxmlterm mp3 mpeg mysql mythtv ncurses 
network nls nodrm nptl nvidia ogg oggvorbis openexr opengl pam pam_chroot 
pam_console pam_timestamp pcre pdflib perl perlsuid php png posix povray ppds 
python qt quicktime rar rdesktop readline real rtc ruby samba scanner sdk sdl 
session sharedext sharedmem silc slp sockets socks5 speex sql sse ssl stream 
subtitles subversion svg sysfs tcltk tcpd tetex theora threads tiff timidity 
tokenizer toolbar truetype truetype-fonts type1-fonts ucs2 unicode urandom usb 
utf8 v4l v4l2 vcd vhosts vim-with-x vlm vorbis wifi win32codecs winbind wmf 
wozxmlterm xanim xine xml xml2 xmlrpc xmms xosd xprint xrandr xsl xv xvid xvmc 
yv12 zeroconf zlib zvbi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-15 04:21:52 UTC
Can you try with alsa-* 1.0.9? (alsa-driver-1.0.9b, not in-kernel)? 
 
Comment 4 Luis Medinas (RETIRED) gentoo-dev 2005-10-30 10:31:33 UTC
Any more feedback on this ? Sounds like an alsa bug. Reopen if you still have
the same problem.