Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78649 - sox is compiled fine but it hangs on using 'play'
Summary: sox is compiled fine but it hangs on using 'play'
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 04:11 UTC by Benjamín Valero Espinosa
Modified: 2005-05-04 15:15 UTC (History)
1 user (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 Benjamín Valero Espinosa 2005-01-19 04:11:58 UTC
First of all, sorry if this is not the precise place to  solve this problem, but I admit I don't know where to go :( and, of course, excuse my bad English ;)

I'm a Gentoo user, and I'm very glad with it. But I can't use the Gnome sound features because it uses the 'play' command and that one hangs on playing a wav or mp3 file. The same using the sounds in Amsn. I think it's not a problem of my soundcard, because Xmms and Mplayer work perfectly. Besides, Xine also hangs the same that 'play'.

When I try to 'play' some file, it starts well but at the first second it "stammers". I reproduce now the output of the verbose output:


Tux root # play -V /usr/share/sounds/shutdown1.wav
sox: Detected file format type: wav

sox: Chunk fmt
sox: Chunk fact
sox: Chunk data
sox: Reading Wave file: Microsoft PCM format, 2
channels, 44100 samp/sec
sox: 176400 byte/sec, 4 block align, 16
bits/samp, 321224 data bytes
sox: Input file /usr/share/sounds/shutdown1.wav: using
sample rate 44100
size shorts, encoding signed (2's complement),
2 channels
sox: Input file /usr/share/sounds/shutdown1.wav:
comment "/usr/share/sounds/shutdown1.wav"

sox: Output file /dev/dsp: using sample rate 44100
size shorts, encoding signed (2's complement),
2 channels
sox: Output file: comment "/usr/share/sounds/shutdown1.wav"

/usr/bin/play: line 218: 8944 Violaci
Comment 1 Benjamín Valero Espinosa 2005-01-19 04:11:58 UTC
First of all, sorry if this is not the precise place to  solve this problem, but I admit I don't know where to go :( and, of course, excuse my bad English ;)

I'm a Gentoo user, and I'm very glad with it. But I can't use the Gnome sound features because it uses the 'play' command and that one hangs on playing a wav or mp3 file. The same using the sounds in Amsn. I think it's not a problem of my soundcard, because Xmms and Mplayer work perfectly. Besides, Xine also hangs the same that 'play'.

When I try to 'play' some file, it starts well but at the first second it "stammers". I reproduce now the output of the verbose output:


Tux root # play -V /usr/share/sounds/shutdown1.wav
sox: Detected file format type: wav

sox: Chunk fmt
sox: Chunk fact
sox: Chunk data
sox: Reading Wave file: Microsoft PCM format, 2
channels, 44100 samp/sec
sox: 176400 byte/sec, 4 block align, 16
bits/samp, 321224 data bytes
sox: Input file /usr/share/sounds/shutdown1.wav: using
sample rate 44100
size shorts, encoding signed (2's complement),
2 channels
sox: Input file /usr/share/sounds/shutdown1.wav:
comment "/usr/share/sounds/shutdown1.wav"

sox: Output file /dev/dsp: using sample rate 44100
size shorts, encoding signed (2's complement),
2 channels
sox: Output file: comment "/usr/share/sounds/shutdown1.wav"

/usr/bin/play: line 218: 8944 Violación de segmento
sox $volume $fopts $fopts2 "$filename" $arch_defines
$device $effects


What can I do? What can be the problem? I have to say that Xmms plays the files perfectly, with ALSA and OSS plugins. I use the 2.6 kernel, and USE="alsa -oss". I hope you can help me. Thanks for all. Greetings from Spain.

Benjamín Valero Espinosa
benjavalero@yahoo.es

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-19 04:18:22 UTC
`emerge --info` please
Comment 3 Benjamín Valero Espinosa 2005-01-29 09:00:12 UTC
Here goes my portage --info:

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11 i686)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#1, Jul 11 2004, 19:39:29)]
dev-lang/python:     2.3.3-r1
sys-devel/autoconf:  2.59-r3
sys-devel/automake:  1.8.3
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="es_ES@euro"
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 alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png python quicktime readline sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS


Thanks for your help
Comment 4 Benjamín Valero Espinosa 2005-01-31 01:47:45 UTC
Here I am annoying again. Well, last week I had a problem with my hard disk (at least it still was in warranty time) so I've had to install Gentoo again, and I've tried to do it using all my experience ;) and I still have the same problem with the sound, with a little note: sox is not installed but my problem persists, si now I think perhaps the problem is in Esound. I've heard things about Gnome and the wish of leaving apart Esound to take Gstreaming, but I don't know if that is related. I'm stranged I'm the only one with that problem.

Thanks for all

Benja
Comment 5 Thomas Heinrichsdobler 2005-02-08 10:10:50 UTC
Exact same problem here.
Xine and "play" studders, mplayer and xmms work fine.

Ideas, anyone?
Comment 6 Thomas Heinrichsdobler 2005-02-08 10:14:59 UTC
Oh, and the same is for Macromedia Flash Player.

My versions:

media-sound/sox-12.17.6-r1  
net-www/netscape-flash-7.0.25 [6.0.81] 
media-libs/xine-lib-1_rc8-r1  
media-video/mplayer-1.0_pre6  
media-sound/xmms-1.2.10-r12

And emerge info:

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 09:33:18)]
ccache version 2.3 [enabled]
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=athlon-xp -O2 -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-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE"
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 3dnow 3dnowex X X509 Xaw3d a52 aac aalib acl acpi acpi4linux alsa aotuv apache2 apm async atlas audiofile avi bash-completion bcmath bdf bitmap-fonts blas blender-game bonobo bootsplash bzlib cairo cdinstall cdparanoia cdr client codecs cpdflib crypt css cups curl curlwrappers devmap dio directfb divx4linux djbfft dpms dts dv dvd dvdr dvdread ecc encode escreen esd evo evo2 exif f2c f77 faad fam fame fastcgi fb fbcon fftw flac flash flood fmod font-server foomaticdb fortran fpx ftp fusion gd gdbm gif gimp gimpprint glitz gmail gmtfull gmthigh gmtsuppl gmttria gnome gphoto2 gpm graphviz gs gtk gtk2 gtkhtml hal hub iconv icq idea idl imagemagick imap imlib imlib2 jack java javascript jbig jikes jp2 jpeg junit ladcca lapack lcms ldap libcaca libg++ libwww live lm_sensors lzo lzw lzw-tiff maildir mailwrapper mbox mbrola mikmod mime ming mjpeg mmx mng motif mp3 mpeg mpi mplayer mysql mysqli nas ncurses neXt network nextaw nls nntp nodrm nowin nptl ntlm nvidia nviz offensive ogg oggvorbis openal opengl operanom2 opie oscar pam pcre pdflib perl pg-hier php plotutils png portaudio posix postgres ppds prelude python quicktime readline real recode rtc scanner screenshot sdk sdl shaper shared sharedmem slang smime sndfile snmp sockets softquota soundtouch speex spell spl sqlite sse ssl stencil-buffer svg svga sysvipc szip tcltk tcpd tetex tga theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts usb userlocales v4l2 vcd vcdimager videos vidix vim-pager vim-with-x wmf wxwindows xanim xface xfs xine xml xml2 xmms xosd xpm xrandr xv xvid xvmc yv12 zeo zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 7 Benjamín Valero Espinosa 2005-02-10 09:32:46 UTC
Well, I've installed Gentoo again with just a few GRP packages (openoffice-bin and tetex) and now all of that works!!! So I think I didn't read that the USEs must be used just AFTER ALL the GRP installations. Perhaps that was the problem. At least, I see I was not the only one! Be lucky!

Benja
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-19 14:59:18 UTC
sox uses oss.  Do you have the oss emulation modules loaded?

Please provide the output of:
$ lsmod
$ cat /etc/modules.d/alsa
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-03 12:48:04 UTC
no response from user
Comment 10 Benjamín Valero Espinosa 2005-05-04 15:15:54 UTC
Sorry, but now I don't use Gentoo, I have passed to the easy side of the force (Ubuntu) :D

Anyway, I answer... yes, I had the alsa-oss package installed.

Benja