When playing a song with Xine or with Amarok using the Xine-Engine and Alsa is stopped or restarted using "/etc/init.d/alsasound stop/restart" Xine/Amarok crashes without any error message. It just says "Get
When playing a song with Xine or with Amarok using the Xine-Engine and Alsa is stopped or restarted using "/etc/init.d/alsasound stop/restart" Xine/Amarok crashes without any error message. It just says "Getötet" (killed). This is very annoying when using software-suspend when alsa is stopped before the system suspends.
Steps to Reproduce:
1. Play a song with Xine (or Amarok using xine-Engine)
2. Open xterm and execute "/etc/init.d/alsasound restart"
=> Xine/Amarok crashes
It should have given an error message or just stopped the playing of the song
Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3,
glibc-188.8.131.5240808-r1, 2.6.10-gentoo-r6 i686)
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 21 2004, 14:29:50)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.7.9-r1, 1.6.3, 1.5, 1.4_p6, 1.9.4, 1.8.5-r3
virtual/os-headers: 184.108.40.206-r2, 220.127.116.11-r1
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CONFIG_PROTECT="/etc /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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
USE="x86 3dnow X aalib alsa apache2 apm arts avi berkdb bitmap-fonts cdparanoia
cdr crypt cups directfb dvd encode esd f77 fam fftw flac foomaticdb fortran gd
gdbm gif gimpprint gpm gstreamer gtk gtk2 guile hal imagemagick imlib ipv6 java
jce jpeg junit kde kdeenablefinal libg++ libwww lirc mad mikmod mmx motif
mozilla mp3 mpeg ncurses nls nntp nptl oggvorbis opengl oss pam pdflib perl png
python qt quicktime readline sasl scanner sdl slang speex spell sqlite sse ssl
svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb xine xml xml2
xmms xprint xv zlib linguas_de"
Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
can you confirm with 1.2.3?
I just restarted alsasound with xine/amaroK and it was fine... in fact the sound didn't even stop, so I think it couldn't have actually unloaded the modules. Which isn't surprising given that (in my experience) you can't unload modules in use.
No, it's the same with 1.2.3. I play a song with amarok-1.2.3/xinesind (xine-lib-1.0) and enter "/etc/init.d/alsasound stop" on konsole. The playing stops and the modules are unloaded.
Are you using dmix?
I have a similar problem, but is not related only to xine, restarting alsasound makes everything audio-related to be killed (kmix, kaffeine, amarok using gstreamer).
I think this is something related to the way alsa uses to setup their settings (so maybe it should be assigned to sound).
Assign to sound as it's probably alsa stuff, but still waiting for news about dmix.
Yes, I am using dmix but it makes no difference if using it or not. When I am stopping alsa the player (for example xine) is killed.
which alsa version do you use? please test with 1.0.9 and report back, thanks
(In reply to comment #1)
> can you confirm with 1.2.3?
> I just restarted alsasound with xine/amaroK and it was fine... in fact the
sound didn't even stop, so I think it couldn't have actually unloaded the
modules. Which isn't surprising given that (in my experience) you can't unload
modules in use.
Hmmm, I had a look at that. Sure enough, /etc/init.d/alsasound doesn't manage to
remove the snd modules on my box. I played around with it a bit and modules
appear to be reappearing from the dead after being rmmodded. I made some changes
that seem to enough to reliably kill them off once and for all. I'll attach the
patch in a sec.
Created attachment 59983 [details, diff]
Attempts to ensure that stop and reload actually manages to rmmod all the snd
(In reply to comment #6)
> which alsa version do you use? please test with 1.0.9 and report back, thanks
I just tried with 1.0.9 using the modified alsasound script from previous
comment. Amarok crashes.
I must have had blinders on for real while messing with the alsasound script.
Seems that it's the terminate function in the script that kills processes
accessing sound devices.
This happens with xmms too, I believe its an alsa error
I don't really think we can restart alsa (so removing and readding modules)
without killing the processes holding the devices.
Closing as CANTFIX for now.