#590215 in combo with darkice cheese leaves audio in un-usable state

Package:
darkice
Source:
darkice
Description:
Live audio streamer
Submitter:
jamie
Date:
2010-07-26 07:11:36 UTC
Severity:
normal
#590215#5
Date:
2010-07-25 00:08:55 UTC
From:
To:
I'm not sure where this bug should be assigned, but am starting with
cheese since cheese triggers the error. The behavior only happens when
cheese runs in combination with darkice. Running either program
separately works fine.

Steps to reproduce:

 * Start a darkice stream to an icecast server
 * Start cheese

The result is that after about 5 seconds, darkice will crash with an
ALSA input/output error.

Furthermore, any attempts to use my soundcard to record sound will
fail (until I reload the modules).

Here's the output of the darkice session. If I don't run cheese, darkice
will run for ever. However, 5 seconds after starting cheese, I always
get the Input/output error.
------------
0 jamie@chicken:~$ darkice -c darkice.cfg
DarkIce 0.20.1 live audio streamer, http://darkice.tyrell.hu/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/

Using config file: darkice.cfg
Using ALSA DSP input device: hw:0,0
Could not set POSIX real-time scheduling, this may cause recording
skips.
Try to run darkice as the super-user.
DarkIce: AlsaDspSource.cpp:265: Input/output error [0]
255 jamie@chicken:~$
------------

Here's a demonstration of how recording audio works prior to this bug
happening. Running arecord for 2 seconds results in a 16194 byte file:
------------- 0 jamie@chicken:~$ arecord test.wav& sleep 2; killall arecord; ls -l test.wav [1] 11016 Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono Aborted by signal Terminated... [1]+ Exit 1 arecord test.wav -rw-r--r-- 1 jamie jamie 16194 Jul 24 19:58 test.wav 0 jamie@chicken:~$ ------------- After the bug happens, the same command results in a 44 byte file (basically just the wav header):
------------- 0 jamie@chicken:~$ arecord test.wav& sleep 2; killall arecord; ls -l test.wav [1] 11070 Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono Aborted by signal Terminated... -rw-r--r-- 1 jamie jamie 44 Jul 24 19:59 test.wav [1]+ Exit 1 arecord test.wav 0 jamie@chicken:~$ ------------- jamie