Page 1 of 2

sound activated recording crash

Posted: Tue May 10, 2016 2:50 pm
by rick71
Opensuse 42.1 fully updated.
XFCE 4.12
audacity(x86-64) = 2.1.1-5.1 (from opensuse repository)
Audacity 2.1.1

Audacity crashes when sound activated recording is enabled and record button is pushed.

Code: Select all

** (audacity:5660): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'alsa_snd_pcm_hw_params_set_format( pcm, hwParams, Pa2AlsaFormat( hostFormat ) )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1786
Expression 'alsa_snd_pcm_hw_params_set_format( pcm, hwParams, Pa2AlsaFormat( hostFormat ) )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1786
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
audacity: xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted
does anyone know what I might check?

Re: sound activated recording crash

Posted: Tue May 10, 2016 3:42 pm
by steve
What are you trying to record?
My guess is that Audacity lost its connection to PulseAudio. Depending on what you are recording, there will be a way to bypass PulseAudio.

Re: sound activated recording crash

Posted: Tue May 10, 2016 6:41 pm
by rick71
Pulse Audio is not installed. It is not installed by default when using XFCE in opensuse.

Re: sound activated recording crash

Posted: Tue May 10, 2016 7:36 pm
by steve
What are you trying to record?
Does recording work OK with "sound activated" disabled?
Is the problem repeatable?

Re: sound activated recording crash

Posted: Tue May 10, 2016 8:10 pm
by rick71
steve wrote:What are you trying to record?
Does recording work OK with "sound activated" disabled?
Is the problem repeatable?
Recording works fine with sound activated disabled.
It is repeatable for me and another person running opensuse Leap 42.1.

Code: Select all

** (audacity:17963): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Expression 'alsa_snd_pcm_hw_params_set_format( pcm, hwParams, Pa2AlsaFormat( hostFormat ) )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1786
Expression 'alsa_snd_pcm_hw_params_set_format( pcm, hwParams, Pa2AlsaFormat( hostFormat ) )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1786
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4607
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
audacity: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
audacity: xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted
portaudio is installed.
libjack0 is installed.

Re: sound activated recording crash

Posted: Wed May 11, 2016 1:26 pm
by Gale Andrews
This bug should be fixed in Audacity 2.1.2 and later http://bugzilla.audacityteam.org/show_bug.cgi?id=1159.

So you could build the 2.1.2 tarball if you like http://audacityteam.org/download/source/.


Gale

Re: sound activated recording crash

Posted: Wed May 11, 2016 1:57 pm
by rick71
Thanks.
I've left a message on the opensuse multimedia forum. Hopefully the devs will see it and speed up the update.

Re: sound activated recording crash

Posted: Wed May 18, 2016 2:53 pm
by rick71
Gale Andrews wrote:This bug should be fixed in Audacity 2.1.2 and later http://bugzilla.audacityteam.org/show_bug.cgi?id=1159.

So you could build the 2.1.2 tarball if you like http://audacityteam.org/download/source/.

Gale
I thought I sent this post, but it didn't appear...
I tried to compile Audacity on opensuse Leap 42.1 and got these errors:

Code: Select all

DirManager.cpp: In static member function ‘static void DirManager::CleanTempDir()’:
DirManager.cpp:397:88: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘5’ to ‘void RecursivelyRemove(wxArrayString&, int, bool, bool, const wxChar*)’
    RecursivelyRemove(filePathArray, count, true, true, _("Cleaning up temporary files"));
                                                                                        ^
DirManager.cpp: In member function ‘bool DirManager::SetProject(wxString&, wxString&, bool)’:
DirManager.cpp:523:91: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘5’ to ‘void RecursivelyRemove(wxArrayString&, int, bool, bool, const wxChar*)’
          RecursivelyRemove(dirlist, count, false, true, _("Cleaning up cache directories"));
                                                                                           ^
DirManager.cpp: In member function ‘wxFileName DirManager::MakeBlockFilePath(wxString)’:
DirManager.cpp:592:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
       if(!dir.DirExists() && !dir.Mkdir(0777,wxPATH_MKDIR_FULL))
         ^
DirManager.cpp: In member function ‘int DirManager::ProjectFSCK(bool, bool)’:
DirManager.cpp:1395:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
             NULL};
                 ^
DirManager.cpp:1395:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1412:40: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘7’ to ‘int RecursivelyEnumerateWithProgress(wxString, wxArrayString&, wxString, bool, bool, int, const wxChar*)’
       _("Inspecting project file data"));
                                        ^
DirManager.cpp:1449:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
                NULL};
                    ^
DirManager.cpp:1449:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1449:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1511:41: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
                                     NULL};
                                         ^
DirManager.cpp:1511:41: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1511:41: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1570:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
                NULL};
                    ^
DirManager.cpp:1570:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1570:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1629:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
             NULL};
                 ^
DirManager.cpp:1629:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1629:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp: In member function ‘void DirManager::RemoveOrphanBlockfiles()’:
DirManager.cpp:1817:40: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘7’ to ‘int RecursivelyEnumerateWithProgress(wxString, wxArrayString&, wxString, bool, bool, int, const wxChar*)’
       _("Inspecting project file data"));
                                        ^
Makefile:2407: recipe for target 'audacity-DirManager.o' failed
make[2]: *** [audacity-DirManager.o] Error 1

Re: sound activated recording crash

Posted: Thu May 19, 2016 1:26 pm
by Gale Andrews
Are you using system wxWidgets that uses STL? Audacity will fail to compile with the issues you see in that case.

If you self-build wxWidgets 3.0.2 from https://github.com/wxWidgets/wxWidgets/ ... .2.tar.bz2 with no configure arguments, install that Widgets build then run ldconfig, Audacity should build fine.


Gale

Re: sound activated recording crash

Posted: Thu May 19, 2016 7:14 pm
by rick71
Gale Andrews wrote:Are you using system wxWidgets that uses STL? Audacity will fail to compile with the issues you see in that case.

If you self-build wxWidgets 3.0.2 from https://github.com/wxWidgets/wxWidgets/ ... .2.tar.bz2 with no configure arguments, install that Widgets build then run ldconfig, Audacity should build fine.


Gale
I have no idea if my wxWidgets uses STL. I don't know how to check. I am using the version that is available in the opensuse Leap 42.1

After looking at everything that has wxwidgets in the name in the repository, I think this might be a little complicated for me. Hopefully Packman will update soon.

Thanks.