Audacity can't start with audiophile usb sound card

Hello everyone,

I was trying to run audacity after being installed from packman repository (I’m using openSUSE tumbleweed with kernel 3.3.4 and a m-audio audiophile usb as sound card) and I got the following error:

ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3857
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1035
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1192
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1433
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2105
audacity: mask_inline.h:160: snd_mask_leave: Assertion `val <= 64' failed.
Aborted

After this,I tried from the tarball and I got the same text except it doesn’t appear the following:

Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started

I tried with gdb and I got this backtrace:

Program received signal SIGABRT, Aborted.
0x00007ffff1fe2d95 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff1fe2d95 in raise () from /lib64/libc.so.6
#1  0x00007ffff1fe42ab in abort () from /lib64/libc.so.6
#2  0x00007ffff1fdb8fe in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007ffff1fdb9a2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007ffff2cfbeb1 in ?? () from /usr/lib64/libasound.so.2
#5  0x00007ffff2d27374 in ?? () from /usr/lib64/libasound.so.2
#6  0x00007ffff2d28521 in ?? () from /usr/lib64/libasound.so.2
#7  0x00000000009605ed in PaAlsaStreamComponent_InitialConfigure (self=0x1573040, hwParams=0x7fffffffca20, sampleRate=0x7fffffffcce8, params=<optimized out>, 
    primeBuffers=<optimized out>) at src/hostapi/alsa/pa_linux_alsa.c:1315
#8  0x000000000096157e in PaAlsaStream_Configure (self=0x1572db0, inParams=0x7fffffffce70, outParams=0x0, sampleRate=<optimized out>, framesPerUserBuffer=0, inputLatency=
    0x7fffffffcdf8, outputLatency=0x7fffffffce00, hostBufferSizeMode=0x7fffffffce0c) at src/hostapi/alsa/pa_linux_alsa.c:1983
#9  0x0000000000962636 in OpenStream (hostApi=0x1184de0, s=0x7fffffffcf88, inputParameters=0x7fffffffce70, outputParameters=0x0, sampleRate=44100, framesPerBuffer=0, streamFlags=
    3, callback=0x5f4cc3 <DummyPaStreamCallback(void const*, void*, unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)>, userData=0x0)
    at src/hostapi/alsa/pa_linux_alsa.c:2107
#10 0x000000000095c1e7 in Pa_OpenStream (stream=0x7fffffffcf88, inputParameters=0x7fffffffcf60, outputParameters=0x0, sampleRate=<optimized out>, framesPerBuffer=0, streamFlags=
    3, streamCallback=0x5f4cc3 <DummyPaStreamCallback(void const*, void*, unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)>, userData=0x0)
    at src/common/pa_front.c:1210
#11 0x00000000005f5091 in AddSources(int, int, std::vector<DeviceSourceMap, std::allocator<DeviceSourceMap> >*, int) ()
#12 0x00000000005f5254 in DeviceManager::Rescan() ()
#13 0x00000000005f53e8 in DeviceManager::Init() ()
#14 0x00000000005f4a59 in DeviceManager::GetInputDeviceMaps() ()
#15 0x00000000007c2498 in DeviceToolBar::FillHosts() ()
#16 0x00000000007c068a in DeviceToolBar::RefillCombos() ()
#17 0x00000000007c04e3 in DeviceToolBar::Populate() ()
#18 0x00000000007cb84b in ToolBar::ReCreateButtons() ()
#19 0x00000000007cb6c6 in ToolBar::Create(wxWindow*) ()
#20 0x00000000007bfb68 in DeviceToolBar::Create(wxWindow*) ()
#21 0x00000000007cf674 in ToolManager::ReadConfig() ()
#22 0x00000000007cec58 in ToolManager::ToolManager(AudacityProject*) ()
#23 0x000000000065c7b4 in AudacityProject::AudacityProject(wxWindow*, int, wxPoint const&, wxSize const&) ()
#24 0x000000000065addd in CreateNewAudacityProject() ()
#25 0x00000000005ccc3e in AudacityApp::OnInit() ()
#26 0x00000000005cf827 in wxAppConsole::CallOnInit() ()
#27 0x00007ffff5eb16bb in wxEntry(int&, wchar_t**) () from /usr/lib64/wx-2.8-stl/libwx_baseu-2.8.so.0
#28 0x00000000005cba74 in main ()
(gdb) bt 3
#0  0x00007ffff1fe2d95 in raise () from /lib64/libc.so.6
#1  0x00007ffff1fe42ab in abort () from /lib64/libc.so.6
#2  0x00007ffff1fdb8fe in __assert_fail_base () from /lib64/libc.so.6
(More stack frames follow...)
(gdb) bt -3
#26 0x00000000005cf827 in wxAppConsole::CallOnInit() ()
#27 0x00007ffff5eb16bb in wxEntry(int&, wchar_t**) () from /usr/lib64/wx-2.8-stl/libwx_baseu-2.8.so.0
#28 0x00000000005cba74 in main ()

I hope this helps.

Regards.

Does Audacity start if you use your computer’s on board sound card (USB sound card not connected)?

I don’t have a on board sound card, however, if I have the usb sound card disconnected It can start.

I’m not an expert with this, but I suspect there is a problem with your sound card drivers not being loaded properly. Perhaps something in tis topic will be relevant: http://forums.opensuse.org/english/get-technical-help-here/hardware/473029-m-audio-audiophile-usb-sometimes-not-recognized.html

Just to note (from off Forum e-mail) that the Audacity package version is 2.0 and the tarball is 2.0.1.

Do any other audio programs work with this m-audio sound card? What drivers are you using for it?

It could be that libasound is the problem - other audio programs may not need it.

It is not normal to have no computer audio device. This could be part of the problem.



Gale

I have no problem with other programs. I’m using alsa and pulseaudio.

The same error message is reported as a bug in the Fedora build of audacity-1.3.12-0.6.beta.fc14
https://bugzilla.redhat.com/show_bug.cgi?id=669883

Could you try uninstalling Audacity and try the Suse repository version.

I’ve just installed 1.1.13-7.12 version and I get the same error.

Is that the opensuse package?

Google brings this: http://lists.links2linux.de/pipermail/packman/2011-October/010369.html
which seems to indicate that it is a build problem or a problem with one of the dependencies.

Have you tried enquiring on the OpenSuse forum?

I tried with both (packman and opensuse) and the error always appears.

I’m going to try with a liveCd, is there any liveCd that comes with audacity installed??

PCLinuxOS used to include Audacity in their base install (in 2007) but I think they now don’t. It would have been a very old version of Audacity in any case.


Gale

I tried the last version of fedora and kubuntu. In fedora it doesn’t work and I get the same errors:

ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3857
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1035
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1192
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1433
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2105                                                                                                     
audacity: mask_inline.h:160: snd_mask_leave: Assertion `val <= 64' failed.                                                                                   
Aborted (core dumped)



alsa version 1.0.25-3.fc17
pulseaudio version 1.1-9.fc17

With kubuntu worked and I got the following:

 
ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1670
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1830
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2092
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2764
Expression 'hostSampleFormat = PaUtil_SelectClosestAvailableFormat( GetAvailableFormats( self->pcm ), userSampleFormat )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1836
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2092
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2764
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(audacity:7181): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.



alsa - Version: 1.0.25+dfsg-0ubuntu1
pulseaudio - Version: 1:1.1-0ubuntu15

So, what are the causes these errors?

Try searching Google for these errors or asking on the respective Forum for your distribution. We don’t see these errors but then we are not trying to use the sound device you have. Find out from each Forum - especially Fedora - if you have the correct USB drivers for that device respective to that distribution. Try this link http://www.alsa-project.org/main/index.php/Matrix:Vendor-MAudio . Ask Fedora if dependency on MP3 support could be relevant. Ask them if they have an Audacity package without MP3 support.

As for the “LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn’t believe we’re it’s parent” it looks like a widgets bug you will have to put up with ( http://trac.wxwidgets.org/ticket/14292 ) . Unfortunately we won’t be moving to wx 2.9 soon because we don’t have the developer resources to make all the changes needed.


Gale

Hi,

Thank you, I’ll have a look at alsa usb module documentation.