Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191281 - media-sound/rezound-0.12.3_beta crashes when soundcard is busy
Summary: media-sound/rezound-0.12.3_beta crashes when soundcard is busy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-04 18:36 UTC by Alexis Ballier
Modified: 2009-07-12 22:57 UTC (History)
0 users

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 Alexis Ballier gentoo-dev 2007-09-04 18:36:57 UTC
A few bugfixes, more or less the patches that we were using; but getting this one stable is needed for flac 1.1.3
Comment 1 Matthias Langer 2007-09-05 01:42:40 UTC
on amd64:

well, maybe this is a problem of my local setup, but i don't like applications that freeze X completely till they are killed from the console...

to be more specific: i'm working with

media-sound/rezound-0.12.3_beta  USE="alsa flac nls vorbis -16bittmp -jack -oss -portaudio -soundtouch"

together with 

media-libs/alsa-lib-1.0.14a-r1  USE="midi -alisp -debug -doc" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm"

and an

Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)

when i start rezound while listening to music with audacious i get the following warning

"
Error occurred while initializing audio output method 'alsa' -- virtual void CALSASoundPlayer::initialize() -- cannot open audio device: hw:0 -- Device or resource busy
"

and can't in fact play any sounds in rezound. when i start rezound without other apps using the sound-card, it can be easily crashed by opening an mp3 and moving around the "Shuttle Seek While Playing"-wheel on the upper left side of the gui. when crashing, it may sometimes freeze X completely....

Portage 2.1.2.12 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 02 Sep 2007 19:20:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub"
LC_ALL="en_US.utf8"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/repos/gentoo"
PORTDIR_OVERLAY="/var/portage/repos/private"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 beagle berkdb bitmap-fonts bzip2 cairo caps cddb cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fortran gd gdbm gif gimp gnome gpm gstreamer gtk hal hddtemp iconv icu ipod ipv6 isdnlog java jpeg jpeg2k lcms ldap libnotify lm_sensors mad matroska midi mikmod mmap mmx mmxext mono mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl plotutils png pppd python qt3support quicktime readline reflection ruby sdl session spell spl sse sse2 ssl ssse3 svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis xattr xml xorg xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Alexis Ballier gentoo-dev 2007-09-05 06:22:29 UTC
Hmmm... it doesn't lock up the entire system when the sound card is busy here : 


Error occurred while initializing audio output method 'alsa' -- virtual void CALSASoundPlayer::initialize() -- cannot open audio device: hw:0 -- Device or resource busy
JACK tmpdir identified as [/var/run/jack]
Error occurred while initializing audio output method 'jack' -- virtual void CJACKSoundPlayer::initialize() -- error connecting to jack server -- jackd not running?
Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 920
Expression 'ValidateParameters( outputParameters, hostApi, StreamDirection_Out )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1961
Error occurred while initializing audio output method 'portaudio' -- virtual void CPortAudioSoundPlayer::initialize() -- error opening PortAudio stream -- Invalid number of channels
If rezound dies unexpectedly while seeking with the keyboard, auto-repeat may be disabled.. if this happens run 'rezound --fix-auto-repeat


[ebuild   R   ] media-sound/rezound-0.12.3_beta  USE="alsa flac jack nls portaudio soundtouch vorbis -16bittmp -oss" 0 kB [1]
[ebuild   R   ] media-libs/alsa-lib-1.0.14a-r1  USE="midi -alisp -debug -doc" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm" 0 kB [1]

00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)

$ emerge  --info
Portage 2.1.3.7 (!../usr/portage_cvs/gentoo-x86/profiles/default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.23-rc5 x86_64)
=================================================================
System uname: 2.6.23-rc5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 03 Sep 2007 18:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/share/gentoo/distfiles"
FEATURES="buildsyspkg collision-protect cvs distcc distlocks fixpackages metadata-transfer multilib-strict parallel-fetch sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en fr en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage_cvs/gentoo-x86 /share/overlay /share/official-overlay/aballier/texlive-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl alsa amd64 asf audiofile authdaemond bash-completion berkdb bitmap-fonts bluetooth bogofilter browserplugin bzip2 cairo cddb cdr cli cracklib crypt css cups curl custom-cflags cvs dba dbus dirac directfb djvu dri dssi dts dv dvb dvd dvdnav dvdr dvdread emerald enca encode escreen evo exif expat fam fame fat fbdev ffmpeg fftw firefox flac fontconfig foomaticdb fortran fping ftp gd gdbm gif gimp glitz gnokii gnome gnutls gpac gpgme gpm graphviz gs gstreamer gtk gtkhtml hal hfs icecast iconv ide ieee1394 imagemagick imap imlib ipv6 irmc isdnlog ithreads jack javascript jfs jpeg jpeg2k kdeenablefinal kdehiddenvisibility ladspa lame lash latex lcms libcaca libnotify libsamplerate live lzo mad maildir matroska mbox md5sum midi mjpeg mmx mmxext mng motif mozilla mp2 mp3 mp4 mpeg mplayer mudflap musepack musicbrainz ncurses network nfs nls nntp no-old-linux nodrm nowin nptl nptlonly nsplugin ntfs nvidia objc ocaml offensive ogg oggvorbis openal openexr opengl openmp pam pango pcre pda pdf perl png pnm portaudio ppds pppd python qt3 qt4 quicktime radio rar readline reflection reiser4 reiserfs rle rtc rtsp sasl sdl session shorten slang sms sndfile softmmu soundtouch sox spamassassin speex spell spl srt sse sse2 ssl stroke subtitles subversion svg sysfs tcpd tetex tga theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode urandom usb v4l v4l2 vcd vchroot vim-syntax visualization vorbis wavpack wmf wxwindows x264 xcb xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="bt87x intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon" DVB_CARDS="usb-umt" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_US" LIRC_DEVICES="pctv" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



I've tried moving fast the  "Shuttle Seek While Playing"-wheel with flac, ogg & mp3 files, and it locked up the gui only with mp3. When the mp3 finished playing, the gui was responding again. Is that a regression or was the bug already present in 0.12.2 ?
Comment 3 Matthias Langer 2007-09-05 12:02:02 UTC
(In reply to comment #2)
> Is that a regression or was the bug already present in 0.12.2 ?

you are right - this is mot a regression, as the same behavior applies to 

media-sound/rezound-0.12.3_beta USE="alsa flac nls vorbis -16bittmp -jack -oss -portaudio -soundtouch"
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2007-09-09 13:00:53 UTC
[ebuild   R   ] media-sound/rezound-0.12.3_beta  USE="alsa flac nls vorbis -16bittmp -jack -oss -portaudio -soundtouch" 0 kB

Stable x86:

- No collisions.
- "Tests passed", however it didn't really test anything.
- The problems mentioned in this bug are not regressions.

I'd mark it stable. I would have done this myself but as per tsunam's advice I'm leaving this to x86 team.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-09-09 13:34:11 UTC
oh, forgot to mention. edited one marilyn manson song, and made him sound like a little boy.. *g*
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-09 20:51:11 UTC
x86 stable
Comment 7 Christoph Mende (RETIRED) gentoo-dev 2007-09-28 12:10:49 UTC
amd64 stable
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2007-09-28 12:16:31 UTC
aballier, open because of.. Comment #1 and Comment #2

close it if you think it's appropiate.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-07-12 22:57:59 UTC
Heh. This bug has been open since I was still a x86 AT. It's changed quite a bit since then and didn't crash here when I just tried it on my AMD64 so that media-tv/livestation was keeping my soundcard busy (I've got bad setting for OpenAL in it, I believe it's using OSS instead of ALSA since I'm missing startup file for OpenAL)