Error message when launching audacity and no sound devices listed under playback/recording preferences

Bug #337 reported by Fred Blaise on 2005-04-10
32
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 :

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

Fred Blaise (chapeaurouge) wrote :

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 :

This still exists on Breezy with alsa-dmix

Changed in audacity:
assignee: nobody → motu
Daniel T Chen (crimsun) wrote :

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 :

It works with alsa-mix.

Bazon (bazonbloch) wrote :

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 :

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 :

   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 :

is it possible to compile + package it with alsa support? see http://audacityteam.org/forum/post/966;?unb553sess=5587e4a7b69bcd3a9b157e980fb71fe7

Chris Wagner (chris-wagner) 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.

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://launchpad.net/bugs/337
>

--
--
-Freddy Martinez-
Kubuntu. GNU / Linux for human beings.
www.chi.ubuntu-us.org
</message>

Lukas Sabota (punkrockguy318) wrote :

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 :

Audacity 1.2.6-0ubuntu1, released in feisty, includes ALSA support.

Emmet Hikory (persia) wrote :

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers