Audacity will open its GUI, but everything beyond leads to system crash

Version: Wouldn’t I just love to be able to tell the version number - but I can’t. Audacity doesn’t get that far.
OS: Linux Mint 18.3 64b, installed from installation disk early September 2018, fully updated. Fresh install, all seems absolutely fine.
Dell XPS 13 9350 laptop, SSD, single boot
Installed Audacity from package manager, along with ffmpeg and lame mp3 encoder.

I’m trying to get started, but - no luck (have been a happy user of Audacity under Windows for years, but Windows is now dead for me).
When starting from the menu button, the welcome screen and GUI open. The welcome screen looks OK, although not one link, when clicked, works. The user interface gets created, but it looks damaged in a lot of places (a few irregular black areas, clusters of wrong pixels). Nothing can be clicked that leads to any reaction, and after a few test clicks (wherever) one of three things happen:

  • the mouse pointer freezes (necessitating power down);


  • session is killed off (need to login again);


  • computer reboots.

When starting from the command line, a lot of messages are displayed, that make no sense to me, but might to someone who knows the code (that output follows at the end of my post). Audacity starts in virtually the same way as from the menu, with as only differnce that the welcome screen misses roughly half the characters of the texts on it, apparently randomly distributed.

About the version: I can’t get to the help screen. And from the command line,

audacity --version

I get only this:

(Audacity:5285): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()

And yes - I have looked at the FAQ, but did not find anything useful for my situation, nor did my attempts at searching the forum (but my search terms could have been unhelpful, of course). So I am now stuck with nowhere to go - but here!

What follows now is the log of a session from the command prompt. Start-up, a few clicks, and a reboot (so the trapped output may NOT be complete because of that reboot; I have no way of telling). When the same lines occur more than twice, I have replaced them with a ‘repeats x times’ line to keep the output short.

(Audacity:27151): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
(above line repeats 3 times)
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
(above line repeats 100 times)
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
07:44:57: Debug: Unknown accel modifier: 'left'
07:44:57: Debug: Unknown accel modifier: 'click/left'
07:44:57: Debug: Unrecognized accel key 'drag', accel string ignored.
07:44:57: Debug: Unknown accel modifier: 'left'
07:44:57: Debug: Unrecognized accel key 'click', accel string ignored.
07:44:57: Debug: Unknown accel modifier: 'right'
07:44:57: Debug: Unrecognized accel key 'click', accel string ignored.
07:44:57: Debug: Unknown accel modifier: 'left'
07:44:57: Debug: Unknown accel modifier: 'click/left'
07:44:57: Debug: Unrecognized accel key 'drag', accel string ignored.
07:44:57: Debug: Unknown accel modifier: 'left'
07:44:57: Debug: Unrecognized accel key 'click', accel string ignored.
07:44:57: Debug: Unknown accel modifier: 'right'
07:44:57: Debug: Unrecognized accel key 'click', accel string ignored.

(Audacity:27151): GLib-GObject-WARNING **: /build/glib2.0-b4FPyK/glib2.0-2.48.2/./gobject/gsignal.c:2635: instance '0x22252a0' has no handler with id '143'

(Audacity:27151): GLib-GObject-WARNING **: /build/glib2.0-b4FPyK/glib2.0-2.48.2/./gobject/gsignal.c:2635: instance '0x1e08d10' has no handler with id '97'
1: »0⋅1/1⋅1/1⋅1/1
1: »0⋅1/1⋅1/1⋅1/1

A lot of “debug” output during start-up from a terminal is normal on Linux. This is what I get:

~$ audacity

(Audacity:6466): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Analyzer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/BassEnhancer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/CompensationDelay>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Compressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Crusher>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Deesser>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Emphasis>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/EnvelopeFilter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer12Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer30Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer5Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Equalizer8Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Exciter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Filter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Filterclavier>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Flanger>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Gate>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/HaasEnhancer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Limiter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MonoCompressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MonoInput>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Monosynth>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultiChorus>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultiSpread>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandCompressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandEnhancer>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandGate>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/MultibandLimiter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Organ>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Phaser>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Pulsator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Reverb>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/ReverseDelay>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/RingModulator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/RotarySpeaker>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Saturator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/SidechainCompressor>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/SidechainGate>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/SidechainLimiter>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/StereoTools>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/TapeSimulator>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/TransientDesigner>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/VintageDelay>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Vinyl>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/Vocoder>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/XOver2Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/XOver3Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: Duplicate plugin <http://calf.sourceforge.net/plugins/XOver4Band>
lilv_world_add_plugin(): error: ... found in file:///usr/local/lib/lv2/calf.lv2/
lilv_world_add_plugin(): error: ... and      file:///usr/local/lib/lv2/calf.lv2/
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840
Expression 'stream->playback.pcm' failed in 'src/hos

Most of it relates either to Audacity scanning for supported plug-ins, or scanning for supported audio hardware.

Crashing on start-up is of course not normal.

That sounds like a graphics driver problem.

As a test, try installing “FileZilla” with your package manager and see if that looks “normal”. (FileZilla is built on WxWidgets, which is what Audacity uses for its GUI).

Hi Steve,

Thanks for responding.

Filezilla looks absolutely fine, and works. Just in case: here’s its ‘about’ information:

FileZilla Client
----------------

Version:          3.15.0.2

Build information:
  Compiled for:   x86_64-pc-linux-gnu
  Compiled on:    x86_64-pc-linux-gnu
  Build date:     2016-02-25
  Compiled with:  gcc (Ubuntu 5.3.1-10ubuntu1) 5.3.1 20160224
  Compiler flags: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu++14

Linked against:
  wxWidgets:      3.0.2
  GnuTLS:         3.4.10
  SQLite:         3.11.0

Operating system:
  Name:           Linux 4.15.0-33-generic x86_64
  Version:        4.15
  CPU features:   sse sse2 sse3 ssse3 sse4.1 sse4.2 avx avx2 aes pclmulqdq rdrnd bmi2 bmi2 adx
  Settings dir:   /home/wouter/.config/filezilla/

Wouter

See if you can get the “About Audacity” screen up (Audacity Help menu), and then try to copy the “Build Information” and paste into your reply.

Hi Steve,

Interesting in that it more or less worked (it failed consistently originally). The window with the information looks as damaged (and illegible) as always, but here’s the result of copy/paste:

Audacity 2.1.2
Build Information

File Format Support
libmad
(MP3 Importing)
Enabled
libvorbis
(Ogg Vorbis Import and Export)
Enabled
libid3tag
(ID3 tag support)
Enabled
libflac
(FLAC import and export)
Enabled
libtwolame
(MP2 export)
Enabled
QuickTime
(Import via QuickTime)
Disabled
ffmpeg
(FFmpeg Import/Export)
Enabled
gstreamer
(Import via GStreamer)
Disabled
Core Libraries
libsoxr
(Sample rate conversion)
Enabled
PortAudio
(Audio playback and recording)
v19
wxWidgets
(Cross-platform GUI library)
3.0.2
Features
Nyquist
(Plug-in support)
Enabled
LADSPA
(Plug-in support)
Enabled
Vamp
(Plug-in support)
Enabled
Audio Units
(Plug-in support)
Disabled
VST
(Plug-in support)
Enabled
LV2
(Plug-in support)
Enabled
PortMixer
(Sound card mixer support)
Enabled
SoundTouch
(Pitch and Tempo Change support)
Enabled
SBSMS
(Extreme Pitch and Tempo Change support)
Enabled
Build Information
Program build date: 
Jan 29 2016
Commit Id:
No revision identifier was provided
Build type:
Release build
Installation Prefix: 
/usr
Settings folder: 
/home/wouter/.audacity-data

Attached a screenshot which shows the damaged main window as well as the near-rubbish in the ‘about’ window.

Wouter
Audacity.png

How strange. I’ve not seen anything like that before.

Just to rule out one possibility, with Audacity closed, try deleting the folder:
/home/wouter/.audacity-data
(it will be recreated when Audacity is next started).
Then start Audacity.
Any difference?

Actually, yes! Not to the point of usabilty, but I do get a lot further.

  • The ‘about’ screen is now unblemished.
  • It is possible to get to a new track and start recording in it (not connected a mic at the moment, so it records just silence, but still - breakthrough of sorts)!

But:

  • the damage on the main screen continues to exist
  • after recording for a few seconds, the entire screen (not just the audacity window) starts to show quickly changing patterns over the windows
  • there are very large delays on startup, when opening a new window for a gtrack, and when starting recording. Order of magnitude ten-twenty seconds each time.

Certainly better than before!

Wouter

PS: is there some sort of debugging that can be switched on? Might it help at all?

Additinal information: after quitting Audacity’s last run (of one), the artifacts keep coming. Have to restart the computer to get back to a normal screen.

There is a “log” window. If I recall correctly, it is in the Help menu for Audacity 2.1.2.
It is unlikely to help, but no harm taking a look.

Most of the debugging is turned off in release builds so as to avoid bombarding users with irrelevant information. To turn it on requires building the application from the source code, which is not very hard on Linux, but if you are going to all that trouble it would be better to build the new Audacity 2.3.0 version. Do you have any experience (or interest) in building software from source code?

It’d be something worth trying, sure.

I do have some 30 years software development experience, but am heavily out of date. If it’s inside an IDE I might eventually get there. If it’s makefiles and command-line utils I’ll be right at home.

Is there a page somewhere with instructions from scratch?

Wouter

Great, you’ll be right at home then :slight_smile:

Although not released yet, we are currently on the release candidates for Audacity 2.3.0, so you may as well go for this version.
There have been some significant changes to the build environment since I last wrote step-by-step instructions (we’ve updated from WxWidgets 3.0.2 to 3.1.1), but I’m planning to write a new step-by-step guide for Ubuntu later today. The instructions should be very much the same for Mint.

A few prerequisites that you can do in the meantime:

  1. Ensure that in your sources list you have “Source Code” enabled.
  2. Install “git” and “build-essential”
  3. Ensure that your system is fully updated.

Catch you later.

OK - the prerequisites are done.

If nothing else, I’ll be a good guinea pig for the build procedure on Mint, as it’ll be totally from scratch.

It’s going to be interesting. And thanks again for looking at my problems. Much appreciated.

Wouter

and here is the step by step guide: https://forum.audacityteam.org/t/building-audacity-2-3-0-on-ubuntu-16-0-4/50371/1

Official documentation may be found in these links:
https://github.com/audacity/audacity/blob/master/linux/build.txt
https://wiki.audacityteam.org/wiki/Building_On_Linux

Hi Steve,

Thanks for that! That’ll keep me occupied for a while. I’ll report back in case of issues I can’t solve, or with the behaviour of the resulting executable.

One thing I’d like to know first, though. I was used to the windows version, and that did not have significant delays other than a bit at first start-up. Are those normal under Linux, or are they the symptom of something being not happy? The machine locks up for 10+ seconds, ouse pointer won’t move or isn’t even visible. Then suddenly it goes again.

Best regards,
Wouter

That’s not normal under Linux. As you say, there can be a delay at start up while Audacity looks for plug-ins and audio devices, but then it should run smoothly, and if anything, perhaps a bit snappier on Linux than Windows.

Hi Steve,

First about the build steps: that was easy to follow and worked well. If you aim for sheer perfection, I’d suggest the following three changes:

  1. remove the ‘$’ prompts in the code section, as they make cop-and-paste less straightforward;
  2. insert a # (in two places) where a comment in brackets is present explaining the ‘-j4’ option to make (for the same reason);
  3. include the two lines of code that extract the compressed tar archive.
    However, it is nitpicking, as I got to a built executable with no mishap at all. I did include the optional parts (lame, ffmpg and jack audio).

Running it before installation was a bit strange, as a lot was missing in the user interface, but no matter, as everything looked normal after install. The first two minutes of running are still riddled with mouse pointer hangs, but eventually it quietens down and is actually functional. So that is good news, and a lot better than where I got to up to now.

The most worrying part is that it quite severely impacts the graphics system. Not only when running (the ‘damaged pixesl’ are not there now, but the window can suddenly start flickering and displaying partial black areas) but even when the run is terminated that continues - desktop, other open windows, nothing’s unaffected. licking here or there can make it temporarily go away, but it’ll be back until a restart.

Still, definitely progress!

Wouter

That was intentional :wink:

I’m not suggesting that this applies to you, but it is very common for people with little experience of code, to blindly copy and paste without paying sufficient attention to what they are doing. Obviously that can be dangerous. By making it a little harder to copy / paste, people will hopefully slow down a bit and pay a bit more attention to what they are doing.

Good idea.
Would you put that before or after “-j4” ?

Personally I just double click on the archive and use the default GUI archive manager.
I would hope that anyone attempting to build Audacity from source knows at least one way to extract an archive.
Also, the exact commands vary depending on which archive manager is installed (which may very depending on the flavour of Ubuntu / Mint / Debian.

That’s odd. I know that a couple of bits are missing (such as the default EQ curves), but on the whole I think it should look pretty much the same as a fully installed version.
If you still have your build folder, do you still see bits missing when you launch it from the build folder? If so, could you post a screen shot and I’ll investigate.

I’m going back to my original analysis. I think you’ve got flaky graphics drivers, or some related problem with the graphics system.

For some graphics cards (notably Nvidia), there is an option for using either open source drivers (created by the Linux community), or closed source drivers provided by the manufacturer. Usually, (but not always), the closed source drivers work best, but a clean Linux installation will often load the open source drivers by default. Check to see what drivers you are using, and if there is an alternative. (Do be careful. Ubuntu has a special utility for handling this - if Mint does, use that: How to install proprietary drivers in Ubuntu)

…before or after “-j4” ?
I think I’d remove the 4, so I’d follow the j with space and hash, then the explanation with 'example: -j4. That way clueless cut-and-paste would lead to an error.

Take the point about the different ways of untarring, and also about the prompts ($). FOr instance, I’d never have thought of untarring via anything but command-line…!


I still have the build folder, and starting audacity from there now works the same as via the menu. It was just the first time (note: BEFORE install had been done!) that it was very different. The whole row that normally contains the record, play, pause buttons and all that wasn’t there. Ah, well. I’m not worrying about that one.

WHat I am worrying about is the graphics stuff. The driver manager doesn’t give me any video driver options. All it says is that ther’s microcode available for the CPU. And I see that a lot of people have that same problem. Don’t know what to do about it, as I didn’t see anything that looked remotely like a solution on the forums.

If it helps at all, inxi has this to say (which tells me very little):

Graphics:  Card: Intel Sky Lake Integrated Graphics bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) Resolution: 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           GLX Version: 3.0 Mesa 18.0.5 Direct Rendering: Yes

I believe I said nvidia earlier - sorry, my mistake.

Does that use i965-va-driver?
If so, which version do you have, and which kernel version?

Yes, it’s the i915 driver. The /var/log/Xorg.0.log reports it as

Using Kernel Mode Setting driver: i915, version 1.6.0 20171023

The kernel itself is (as promised!) up to date: 4.15.0-34

My quest has taken me to a suggestion that seems to be fixing the most horrible part of the graphics problem (theone that continues after ending Audacity). Anyone in the same boat might want to try this if the file does not exist:

sudo cat >>/usr/share/X11/xorg.conf.d/20-intel.conf <<E_O_F
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "sna"
   Option      "TearFree"    "true"
   Option      "DRI"    "3"
EndSection
E_O_F

That did not help against the last two issues, which I can ignore:

  1. the first two minutes Audacity needs to be left well alone as it’ll freeze and unfreeze time and again
  2. the main display contains damaged areas.
    That damage does not impede the Audacity’s function - it now seems reliable! And once those initial freezes are over and done with, nothing like it happens afterwards.

Thank you very much for the help - couldn’t have got here without you. If you’re not happy with this result (even though I am content enough), then I can perform any tests you like within reason.