Audacity 2.2.2
Arch Linux (from repo)
Linux 4.20.0-arch1-1-ARCH #1 SMP PREEMPT
Audacity is randomly dumping core for me when I am recording for a long time. I have plenty of disk space (over 100GB free) and plenty of ram (64GB). I am recording while monitoring so have the software buffering on.
When recording into a project that has not yet been saved, the audio data is written to Audacity’s Temp folder.
Check where the Temp folder is located (look in “Edit menu > Preferences > Directories”) and check the amount of space available in that location.
Are you able to build applications from source code? If you are, then it may be worth building the current release version of Audacity (2.3.0) or the current development version (2.3.1). If the problem still occurs with a newer version, you would be able to make a debug build and run it in gdb to obtain useful debug information.
Have you checked on the Arch bug tracker to see if this is a known problem? (As far as I’m aware, this issue is not on the Audacity bug tracker).
steve, thanks for the replies. I should be able to handle building from source (also a former Gentoo user ; ) ). I’ll probably go ahead and build 2.3.0 and try to gather more useful information.
Also I have the thought that I might try also disabling the software buffering for the live monitoring just to see if it still occurs. To be fair usually it is getting at least several hours before crashing.
Er forgot to mention: I didn’t see anything on the arch bugtracker.
I believe I found something of further significance though right before the core dump:
Jan 24 07:57:28 t3600 pulseaudio[852]: E: [alsa-sink-ALC269VB Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy
Jan 24 07:57:28 t3600 pulseaudio[852]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
I do have Pulseaudio configured for simultaneous output to hdmi (my main sound speakers) and to some external speakers which I mainly use to plug in headphones. This allows me to simply mute the TV speakers and be able to hear on the headphones.
I theorize maybe something else is grabbing the soundcard device for playback and Audacity isn’t able to handle this gracefully? It probably should not dump core on this, no?
Any recommendations or things to try besides dropping the simultaneous playback and/or getting a separate card and/or not doing live monitoring?
You may be onto something here.
No, Audacity should not core dump on this, but there is a common problem of Audacity freezing with PulseAudio (https://bugzilla.audacityteam.org/show_bug.cgi?id=276) so this could be related.
The workaround that works best for me is to select the ALSA “hw” device for recording, and either the “hw” device or dmix for playback.
Solved in the sense that it is no longer a problem for me.
I had forgotten to install the ‘pulseaudio-alsa’ package in Arch so basically Audacity was just using straight Alsa (instead of Alsa through Pulseaudio) and trying to grab the card directly. In installing this and then setting the output and recording device to use Pulse everything seems to work perfectly. I did a test recording of 10 hours without any issues.
While there must be a bug somewhere, it’s now working great for me with Pulseaudio.