Error message when launching audacity and no sound devices listed under playback/recording preferences
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | audacity (Ubuntu) |
Medium
|
MOTU | ||
Bug Description
Upon launching audacity, the following message appears in a dialog box:
"There was an error initializing the audio i/o layer. You will not be able to play or record audio.
Error: Host error"
No devices show up in the Playback or Recording preferences.
All other sound applications work fine, but audacity.
strace file available.
| Daniel T Chen (crimsun) wrote : | #1 |
| Fred Blaise (chapeaurouge) wrote : | #2 |
killing esd has done the trick (and also made the segfault bug go away :S) . But is the error message really appropriate?
| Corey Burger (corey.burger) wrote : | #3 |
This still exists on Breezy with alsa-dmix
| Changed in audacity: | |
| assignee: | nobody → motu |
| Daniel T Chen (crimsun) wrote : | #4 |
Audacity requires exclusive /dev/dsp access, and esd is still configured to grab ALSA's OSS emulation nodes. Disable sound server start up in System> Preferences> Sound, and change System> Preferences> Multimedia Systems Selector> Default Audio Sink> customsink> alsasink device=plug:dmix
| Ante Karamatić (ivoks) wrote : | #5 |
It works with alsa-mix.
| Bazon (bazonbloch) wrote : | #6 |
on Dapper still the same problem.
Can't that really be handled another way?
It's really not user-friendly this way....
| Emmet Hikory (persia) wrote : | #7 |
It's generally a poor idea to try to record whilst also using software mixing. Furthermore, many onboard sound modules are half-duplex, in that whatever is being recorded will also be played, and vice-versa, possibly causing unwanted noise in the recording. esound 0.2.36-3ubuntu3 changed the timeout to 1 second, so if all other audio-using applications are quit, esd should exit sharply, allowing initialisation of audacity.
The real fix is to have audacity use ALSA, and while this is underway upstream, it is not yet complete.
| edward (edwardh-shaw) wrote : | #8 |
I am using a HP Pavillion computer with no sound card--- audacity complained about no i/o so I plugged in a new sound card just now and the complaints about no i/o disappeared !!!
| Changed in audacity: | |
| status: | Unconfirmed → Confirmed |
| towsonu2003 (towsonu2003) wrote : | #9 |
is it possible to compile + package it with alsa support? see http://
| Chris Wagner (chris-wagner) wrote : | #10 |
For anyone else getting this message, also make sure you do not have any other sound applications open. I was trying to launch Audacity after killing esd, but it was still failing because Rhythmbox was open on another workspace.
| description: | updated |
This is probably due to other apps using your sound system.Close your
programs that use sound, like amarok and try again.
+ Upon launching audacity, the following message appears in a dialog box:
"There was an error initializing the audio i/o layer. You will not be able
to play or record audio.
Error: Host error"
On 12/20/06, Chris Wagner <email address hidden> wrote:
>
> For anyone else getting this message, also make sure you do not have any
> other sound applications open. I was trying to launch Audacity after
> killing esd, but it was still failing because Rhythmbox was open on
> another workspace.
>
> ** Summary changed:
>
> - Can't find sound devices
> + Error message when launching audacity and no sound devices listed under
> playback/recording preferences
>
> ** Description changed:
>
> - No device show up
> -
> - No device show up. pop-up at startup:
> -
> + Upon launching audacity, the following message appears in a dialog box:
> "There was an error initializing the audio i/o layer. You will not be
> able to play or record audio.
> Error: Host error"
>
> - No device are showing in the Playback or Recording preferences.
> + No devices show up in the Playback or Recording preferences.
>
> All other sound applications work fine, but audacity.
>
> strace file available.
>
> --
> Error message when launching audacity and no sound devices listed under
> playback/recording preferences
> https:/
>
--
--
-Freddy Martinez-
Kubuntu. GNU / Linux for human beings.
www.chi.
</message>
| Lukas Sabota (punkrockguy318) wrote : | #12 |
Audacity can be compiled with alsa support. It needs to be compiled with v19 of the portaudio library. Can this be done for feisty?
| Emmet Hikory (persia) wrote : | #13 |
Audacity 1.2.6-0ubuntu1, released in feisty, includes ALSA support.
| Emmet Hikory (persia) wrote : | #14 |
I believe this bug to have been fixed with the release of audacity 1.2.6, which fix still applies in audacity 1.3.2. I cannot reproduce with any version of audacity compiled against portaudiov19. Please reopen this bug if the error can be reproduced.
| Changed in audacity: | |
| status: | Confirmed → Fix Released |


Please kill esd (or another application hogging /dev/dsp and /dev/mixer) and try again.