Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118217

Summary: vlc-0.8.4a, gentoo-sources-2.6.15, alsa-*-1.0.11_rc[12] don't seem to play well together
Product: Gentoo Linux Reporter: Phil Richards <news>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED NEEDINFO    
Severity: normal CC: gfraser
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Phil Richards 2006-01-07 12:06:07 UTC
Yesterday, with vlc 0.8.4a, kernel 2.6.15, alsa-*-1.0.10 everything was fine.
vlc would play .wav, .flac, and .ogg.

Today, upgraded to alsa-*-1.0.11_rc2 and running vlc gives:
$ cat ~/vlc.error
pgr music $ vlc 08.wav
VLC media player 0.8.4a Janus
vlc: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.
Aborted
$ 

Have tried to re-emerge vlc.  No difference.

Downgraded to alsa-*-1.0.10 again and everything appears to work again.
(Same problem with .flac and .ogg.)

pcm_plug.c is not a part of vlc - I assume it is part of alsa-lib?

(g)mplayer and xine seem to work fine with both alsa versions.

Phil

# emerge info
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.3-20050110, glibc-2.3.6-r2, 2.6.15-gentoo i686)
=================================================================
System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
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.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/src/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/src/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apm audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dbus dvd dvdr dvi eds emboss encode esd exif expat fam ffmpeg firefox flac foomaticdb fortran gd gdbm gif glut gmp gnome gnutls gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib jpeg lcms lesstif libg++ libwww mad maildir mikmod mmx mng motif mozilla mp3 mpeg ncurses nls nntp nptl nptlonly offensive ogg oggvorbis openal opengl pam pcre pdflib perl png python quicktime readline real recode samba scanner sdl slang speex spell sse ssl svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xine xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU video_cards_i915"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-08 03:26:56 UTC
Here it works fine with both alsa versions.
Have you restarted alsa after merge to update the loaded drivers?
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-01-08 11:01:26 UTC
Here alsa-driver-1.0.11_rc2 have missing symbols but I can't get the symbol name due to kernel bug in module.c that freeze my system on modprobe. 2.6.15 is broken for me.
Comment 3 Phil Richards 2006-01-11 10:58:53 UTC
Wrt Comment #1, yes - rebooted machine after each set of driver builds.
Comment 4 Phil Richards 2006-01-12 13:28:58 UTC
I've just tried the whole process again and vlc still fails.

Before starting (with old ALSA stuff):
Stated vlc + played a track.  It worked.
Unmasked ALSA 1.0.11_rc2 stuff.
Emerged it.
Rebooted.
Tried vlc.  It failed to play a track.  Same assertion.

As I said before, xine and mplayer are both fine - it's only vlc (ironic because I had only just installed vlc before the ALSA update came through - so I only had it working for a day before it broke :-)

I don't know what to try next - suggestions welcome.

Phil

Current machine state:

# lsmod
Module                  Size  Used by
snd_seq                44112  0
snd_seq_device          6796  1 snd_seq
wacom                  13312  0
ohci1394               27444  0
snd_intel8x0           26268  1
snd_ac97_codec         80032  1 snd_intel8x0
snd_ac97_bus            2048  1 snd_ac97_codec
snd_pcm                69124  2 snd_intel8x0,snd_ac97_codec
snd_timer              18820  2 snd_seq,snd_pcm
snd                    39232  8 snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc          7816  2 snd_intel8x0,snd_pcm

And equery l alsa output:
[I--] [  ] media-libs/alsa-lib-1.0.11_rc2 (0)
[I--] [  ] media-sound/alsa-driver-1.0.11_rc2 (0)
[I--] [  ] media-sound/alsa-headers-1.0.11_rc2 (0)
[I--] [  ] media-sound/alsa-tools-1.0.11_rc2 (0.9)
[I--] [  ] media-sound/alsa-utils-1.0.11_rc2 (0.9)

And, for example:
~ # ls -l /lib/modules/2.6.15-gentoo/alsa-driver/acore/snd-pcm.ko
-rw-r--r--  1 root root 82964 Jan 12 20:01 /lib/modules/2.6.15-gentoo/alsa-driver/acore/snd-pcm.ko

~ # uptime
 21:26:00 up 14 min,  6 users,  load average: 0.06, 0.19, 0.15

~ # date
Thu Jan 12 21:26:49 GMT 2006

~ # uname -a
Linux derisoft 2.6.15-gentoo #6 SMP PREEMPT Sat Jan 7 13:57:08 GMT 2006 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
Comment 5 Phil Richards 2006-01-13 08:45:09 UTC
Had a quick hunt on the ALSA bug tracker - there is some similarity with this problem (but it is not identical - it certainly applies to the same hardware, though)... https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1558
Comment 6 Phil Richards 2006-01-19 13:43:57 UTC
Ok, even weirder behaviour: gmplayer fails, mplayer works.

gmplayer fails with:
[...flac file opening...]
AUDIO: 44100 Hz, 2 ch, s16le, 800.0 kbit/56.69% (ratio: 100000->176400)
Selected audio codec: [ffflac] afm:ffmpeg (FFmpeg FLAC audio decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/floatle
alsa-init: 1 soundcard found, using: default
gmplayer: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.


MPlayer interrupted by signal 6 in module: ao2_init

mplayer, on the other hand, does this:
[... flac file opening exactly as before...]
AUDIO: 44100 Hz, 2 ch, s16le, 800.0 kbit/56.69% (ratio: 100000->176400)
Selected audio codec: [ffflac] afm:ffmpeg (FFmpeg FLAC audio decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
alsa-init: 1 soundcard found, using: default
alsa: 44100 Hz/2 channels/4 bpf/60208 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[... and music plays ...]

The obvious difference is AF_pre:
with gmplayer it is 44100Hz/2ch/floatle (fail)
with mplayer it is  44100Hz/2ch/s16le   (ok)

Don't know if this casts any light on anything, but considering that mplayer and gmplayer are the same binary, it is doesn't seem to be a library link issue - more of a config one.

Phil
Comment 7 Phil Richards 2006-01-19 13:49:02 UTC
Oh, if I flip gmplayer from using alsa drivers (-ao alsa) to ESD (-ao esd) then there is no crash, and I get:
[...]
AUDIO: 44100 Hz, 2 ch, s16le, 800.0 kbit/56.69% (ratio: 100000->176400)
Selected audio codec: [ffflac] afm:ffmpeg (FFmpeg FLAC audio decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/floatle
[AO ESD] latency: [server: 0.28s, net: 0.00s] (adjust 0.28s)
AO: [esd] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[...]

(Works with -ao sdl, too)
Comment 8 Zeksers 2006-01-20 08:00:01 UTC
The same problem for me when running VLC.
My emerge --info:

Gentoo Base System version 1.12.0_pre15
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Celeron(R) CPU 2.40GHz
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
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.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
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 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.void.lv http://ftp.linux.ee/pub/gentoo/distfiles/
http://gentoo.osuosl.org/distfiles/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3ds 7zip X a52 aac ace alsa apm asf avi bash-completion berkdb bitmap-fonts bzip2 cairo cdda cddb cdio cdr cdrom cpudetection crypt cups curl dbus dga
dts dv effects encode exif expat fam ffmpeg firefox flac foomaticdb fortran gdbm gif gimpprint glitz glut gnutls gphoto2 gpm gstreamer gtk gtk2 idn imlib inkjar ipv6 irssi jabber java javascript jpeg lcms ldap libg++ libsamplerate libwww live lzo mad matroska mikmod mmx mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mpi ncurses network nls nowin nptl nptlonly nsplugin nvidia offensive ogg oggvorbis on-the-fly-crypt opengl oss pam pdflib perl plugin png python quicktime readline rtc screen sdl shout silc sndfile socks5 speex spell sse sse2 ssl stream svg symlink tcltk tcpd tga theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vcd vlm vorbis win32codecs wmf wxwindows xanim xchat xml2 xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 9 Zeksers 2006-01-20 12:40:03 UTC
Downgrading to alsa-*-1.0.10 solved the problem.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-02-02 09:14:33 UTC
Should be fixed by last rc, can you give that a try?
Comment 11 Zeksers 2006-02-02 10:55:48 UTC
(In reply to comment #10)
> Should be fixed by last rc, can you give that a try?
> 

I was running alsa-*-1.0.10, then did a "emerge -auDvN world", run "vlc" and the problem came up. :/
Comment 12 Zeksers 2006-02-02 11:13:11 UTC
Downgraded again and everything is ok. ;)
Comment 13 Phil Richards 2006-02-03 05:09:27 UTC
Ok, I've updated to gentoo-sources-2.6.15-r2 and alsa*-1.0.11_rc3, re-emerged vlc (just in case there were any alsa header changes that might cause problems), rebooted, and...

vlc: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.

So, no, the new alsa release candidate didn't improve anything...
Comment 14 Ted 2006-02-26 04:30:53 UTC
VLC's alsa output module frequently gives periods of silence during plackback when I use it on both my x86 and ~x86 installs.  Console give errors about broken pipes.  VLC message window says alsa is starving for output.  Arts module works as it should.  Narrowed the problem down to just alsa output module.  

(info for stable system with only ~x86 portage, vlc, and avahi)

Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r2 i686)
=================================================================
System uname: 2.6.15-gentoo-r2 i686 Celeron (Mendocino)
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -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/env.d"
CXXFLAGS="-march=pentium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect cvs distlocks keeptemp keepwork noclean notitles sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU video_cards_mach64"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

media-libs/alsa-lib-1.0.10
media-sound/alsa-headers-1.0.10

Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
sys-kernel/gentoo-sources-2.6.15-r1



Comment 15 Phil Richards 2006-03-09 01:59:44 UTC
I still have the problem with:
vlc-0.8.4a-r1
gentoo-sources-2.6.15-r7
alsa-*-1.0.11_rc3

However, I've now dug out an old Creative sound card, put that in and everything works fine.  It appears to be a problem with the intel_8x0 driver, which I am now going to disable and forget about...

I would close the bug report, but it is probably still a real problem, and there is a Cc...

Phil
Comment 16 Zeksers 2006-03-09 06:25:08 UTC
(In reply to comment #15)
> I still have the problem with:
> vlc-0.8.4a-r1
> gentoo-sources-2.6.15-r7
> alsa-*-1.0.11_rc3
> 
> However, I've now dug out an old Creative sound card, put that in and
> everything works fine.  It appears to be a problem with the intel_8x0 driver,
> which I am now going to disable and forget about...
> 
> I would close the bug report, but it is probably still a real problem, and
> there is a Cc...
> 
> Phil
> 

Well, i use that intel_8x0 driver to, but i have masked all alsa-*rc* packages, and i have the latest "stable" driver. I think the bug should be open until it is fixed. Btw, is it a upstream problem or just gentoo specific?
Comment 17 Zeksers 2006-03-26 06:56:49 UTC
alsa-driver-1.0.11_rc4 has no problems so i think this bug can now be closed.
Comment 18 Gerald Fraser 2006-04-17 02:27:17 UTC
I experienced this exact error message whenever I tried to run music files on this version of VLC, and it crashed.. I found the VLC 'Alsa output' pref. was 'stuck' on default. Refresh list did nothing. 

To cut a long story short, the solution was in KDE Control Center > Sound & Multimedia > Sound > Harware tab, where Autodetect was selected. Simply changing this to 'Advanced Linux Sound..' fixed things such that I could select/set the VLC pref. to other than 'default', and playing sound files did not segfault...
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-18 10:58:15 UTC
Does rc5 have this problem still?
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:09:19 UTC
1.0.13 is now the latest version, haven't heard of problems, and I cannot reproduce the issue.