sound activated recording crash

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
rick71
Posts: 14
Joined: Tue May 10, 2016 2:41 pm
Operating System: Linux Debian

sound activated recording crash

Post by rick71 » Tue May 10, 2016 2:50 pm

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?

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: sound activated recording crash

Post by steve » Tue May 10, 2016 3:42 pm

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.
Last edited by Gale Andrews on Wed May 11, 2016 1:19 pm, edited 1 time in total.
Reason: Typo it's > its
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rick71
Posts: 14
Joined: Tue May 10, 2016 2:41 pm
Operating System: Linux Debian

Re: sound activated recording crash

Post by rick71 » Tue May 10, 2016 6:41 pm

Pulse Audio is not installed. It is not installed by default when using XFCE in opensuse.

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: sound activated recording crash

Post by steve » Tue May 10, 2016 7:36 pm

What are you trying to record?
Does recording work OK with "sound activated" disabled?
Is the problem repeatable?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rick71
Posts: 14
Joined: Tue May 10, 2016 2:41 pm
Operating System: Linux Debian

Re: sound activated recording crash

Post by rick71 » Tue May 10, 2016 8:10 pm

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.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: sound activated recording crash

Post by Gale Andrews » Wed May 11, 2016 1:26 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

rick71
Posts: 14
Joined: Tue May 10, 2016 2:41 pm
Operating System: Linux Debian

Re: sound activated recording crash

Post by rick71 » Wed May 11, 2016 1:57 pm

Thanks.
I've left a message on the opensuse multimedia forum. Hopefully the devs will see it and speed up the update.

rick71
Posts: 14
Joined: Tue May 10, 2016 2:41 pm
Operating System: Linux Debian

Re: sound activated recording crash

Post by rick71 » Wed May 18, 2016 2:53 pm

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

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: sound activated recording crash

Post by Gale Andrews » Thu May 19, 2016 1:26 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

rick71
Posts: 14
Joined: Tue May 10, 2016 2:41 pm
Operating System: Linux Debian

Re: sound activated recording crash

Post by rick71 » Thu May 19, 2016 7:14 pm

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.

Post Reply