Constant crashes

Help for Audacity 2.x.x on GNU/Linux.
Forum rules
ImageThis forum is for Audacity 2.x.x 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.
jh90s
Posts: 49
Joined: Sun Feb 26, 2017 4:05 am
Operating System: Windows 8 or 8.1

Constant crashes

Post by jh90s » Wed Dec 13, 2017 11:45 pm

I don't know why, but Audacity 2.2.1 keeps on crashing after maybe 10 minutes of usage. I end up having to open a terminal and kill the process and re-open and then recover the session. Why is it so unstable?

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

Re: Constant crashes

Post by steve » Thu Dec 14, 2017 1:07 am

Try setting the recording and playback setting to the "hw" options in the device toolbar, that correspond with the audio device that you are using. That will set Audacity to use the device directly through ALSA, bypassing PulseAudio, and should resolve the stability problems.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

machineghost
Posts: 4
Joined: Wed Sep 05, 2018 5:00 pm
Operating System: Linux Mint

Re: Constant crashes

Post by machineghost » Fri Sep 14, 2018 6:29 pm

Try un-maximizing Audacity. I know this sounds dumb, but I read someone else suggest it in another forum and it totally stopped the random crashes for me.

mxdxz
Posts: 13
Joined: Fri Jul 27, 2018 11:54 pm
Operating System: Linux Fedora/RHEL

Re: Constant crashes

Post by mxdxz » Wed Sep 19, 2018 7:11 am

steve wrote:
Thu Dec 14, 2017 1:07 am
Try setting the recording and playback setting to the "hw" options in the device toolbar, that correspond with the audio device that you are using. That will set Audacity to use the device directly through ALSA, bypassing PulseAudio, and should resolve the stability problems.
FWIW, this workaround doesn't seem to work for me. I have several hw entries, all of which I have checked, and none of which produce any sound.
I only get the sound when I pick pulse or default. I also checked that none of the channels are muted in alsamixer.
Screenshot_20180919_100609.png
Screenshot_20180919_100609.png (14.03 KiB) Viewed 220 times

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

Re: Constant crashes

Post by steve » Mon Sep 24, 2018 10:51 am

mxdxz wrote:
Wed Sep 19, 2018 7:11 am
FWIW, this workaround doesn't seem to work for me. I have several hw entries, all of which I have checked, and none of which produce any sound.
The default sound card (the one that you would expect to work) is hw:0,0.
I see that is not listed in the device toolbar, which indicates that it is probably being used by some other software.
Try logging out and back in again, then launch Audacity before any other applications and see if hw:0,0 is available.

Note that if Pulse Audio Volume Control is open, then PulseAudio will grab exclusive access to hw:0,0 so it will be unavailable to Audacity. Same goes for "Sound Settings" (which is usually based on Pulse Audio Volume Control).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

mxdxz
Posts: 13
Joined: Fri Jul 27, 2018 11:54 pm
Operating System: Linux Fedora/RHEL

Re: Constant crashes

Post by mxdxz » Tue Sep 25, 2018 6:07 am

steve wrote:
Mon Sep 24, 2018 10:51 am
Note that if Pulse Audio Volume Control is open, then PulseAudio will grab exclusive access to hw:0,0 so it will be unavailable to Audacity. Same goes for "Sound Settings" (which is usually based on Pulse Audio Volume Control).
That must have been it. Thanks steve!

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

Re: Constant crashes

Post by steve » Tue Sep 25, 2018 8:01 am

mxdxz wrote:
Tue Sep 25, 2018 6:07 am
That must have been it. Thanks steve!
So is it working now?
Say what you did to fix it - that could help others.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

mxdxz
Posts: 13
Joined: Fri Jul 27, 2018 11:54 pm
Operating System: Linux Fedora/RHEL

Re: Constant crashes

Post by mxdxz » Tue Sep 25, 2018 8:19 am

Well, as you said, I made sure that pavucontrol is not running, and now I do see the hw:0,0 device and it works.

As for the crashes, I haven't observed them since I switched to ALSA, but it hasn't been that long.

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

Re: Constant crashes

Post by steve » Tue Sep 25, 2018 8:40 am

Thanks for the update.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

mxdxz
Posts: 13
Joined: Fri Jul 27, 2018 11:54 pm
Operating System: Linux Fedora/RHEL

Re: Constant crashes

Post by mxdxz » Wed Oct 10, 2018 12:08 pm

Today I had a particularly hard time making hw:0,0 show up in Audacity, so I discovered a simple and reliable solution: pasuspender. Simply run

Code: Select all

pasuspender audacity

Post Reply