Audacity 2.0.2 Crashes after about a minute, every time.

Audacity 2.0.2 downloaded today
Ubuntu 16.10 out of the box
Acer Aspire 7250

Sound activiation recording. Level is set it comes in and out every ~10 seconds. After about the fifth restart it just evaporates off the screen. For the ~10 seconds of audio it records, other than crashing it seems to be working fine.

Could you post the contents of “Help > Audio Device Info”

Hello, here is the audio device info; the ‘log’ - which seems to only show info from the session I opened to see the audio device info; and the contents of the nohup.out file from a session that crashed:


Audio Device Info

==============================
Default capture device number: 4
Default playback device number: 4

Device ID: 0
Device name: HD-Audio Generic: HDMI 0 (hw:0,3)
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
32000
44100
48000

Device ID: 1
Device name: HDA ATI SB: ALC271X Analog (hw:1,0)
Host name: ALSA
Input channels: 2
Output channels: 2
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
44100
48000
96000
192000

Device ID: 2
Device name: hdmi
Host name: ALSA
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
32000
44100
48000

Device ID: 3
Device name: pulse
Host name: ALSA
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
8000
9600
11025
12000
15000
16000
22050
24000
32000
44100
48000
88200
96000
192000

Device ID: 4
Device name: default
Host name: ALSA
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
8000
9600
11025
12000
15000
16000
22050
24000
32000
44100
48000
88200
96000
192000

Selected capture device: 4 - default
Selected playback device: 4 - default
Supported Rates:
8000
9600
11025
12000
15000
16000
22050
24000
32000
44100
48000
88200
96000
192000

Available mixers:

Available capture sources:

Available playback volumes:

Capture volume is emulated
Playback volume is emulated

\

Log

11:11:32 AM: Audacity 2.0.1
11:11:37 AM: Retrieving FFmpeg library version numbers:
11:11:37 AM:    AVCodec version 0x352300 - 53.35.0 (built against 0x352300 - 53.35.0)
11:11:37 AM:    AVFormat version 0x351500 - 53.21.0 (built against 0x351500 - 53.21.0)
11:11:37 AM:    AVUtil version 0x331601 - 51.22.1 (built against 0x331601 - 51.22.1)

--------------------------------------------------------------------------------
nohup.out

ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
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 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1670
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1830
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2092
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2764
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4541

Try setting the recording input in the Device Toolbar to:
HDA ATI SB: ALC271X Analog (hw:1,0)

Try setting the recording input in the Device Toolbar to:
HDA ATI SB: ALC271X Analog (hw:1,0)

nope, still crashes:

1> audacity >& log2
Aborted (core dumped)
1> cat log2
ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
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: 4541
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4541
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4541
**
Gdk:ERROR:/build/buildd/gtk+2.0-2.24.13/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 < y2)

That’s interesting - that wasn’t there in the first log that you posted.

Is that a typo?

…yes of course 16.10 is a typo, it is 12.10, see the attached screen shot. But when 16.10 comes out I’m ready!!

Here is the /proc/version file contents:
Linux version 3.5.0-18-generic (buildd@allspice) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012

… and thanks for the help. I look forward to seeing this program work.
details.png

p.s. … there was also ‘pulse’ option for drivers … that crashed too

The “Pulse” option is the same as “default”.
Selecting “HDA ATI SB: ALC271X Analog (hw:1,0)” bypasses Pulse and accesses the ALSA drivers directly.
I thought that it may have been a PulseAudio problem, but it looks like not.
The Gdk error looks like a “thread” fault, but that seems peculiar as if there was a problem with thread lock in GTK/GDK then I would expect to see hundreds of reports of this problem and not just one.

I presume that is not a typo.

Apparently the Ubuntu 12.10 release version of Audacity is 2.0.0-1, so where is your 2.0.2 version from?

When the Audacity that was downloaded through the ubuntu software manager was crashing, before coming to this board I sought a more bug repaired version by going to the audacity website and downloding it from there. I am now reinstalling the other older one and testing with your driver change suggestion …

Here is the crash report from the version of Audacity installed by Ubuntu’s software installer. I ran it again last night with the drivers you suggested, it crashes just the same.
aud_crash1.png
aud_crash2.png

Using the “HDA ATI SB: ALC271X Analog (hw:1,0)” device, Audacity project rate at 44100 Hz, with Overdub, Software Playthrough and Sound Activated Recording all unchecked, does it record for several minutes?

If you turn Overdub back on, does it crash?

If not, does it crash when you put Software Playthrough back on?

In other words can you identify which combinations of those three crash?

Have you tried resetting audacity.cfg ?

The audacity settings overdub and sample rate of 44100 are what is set by default out of the box. Playthrough is not set, and was not set. I set mono as there is only one mic.

When sound activiation recording is not set Audacity runs for at least 10 minutes without crashing, the time I have observed it, but this by itself may not be meaningful. Sound activiation recording pauses and restarts often while simple recording does not, so it could be that pause and play repeatedly or some similar artifact is the problem. However, I do not observe audacity crash without sound activation – note my original post was about audacity crashing when sound activation is set.

So let me ask you, if you set sound activiation recording with a threshold such that audacity is in and out fairly often, how long do you observe that it works without crashing?

Just to make sure we are on the same page, I have deleted the config directory completely, and reinstalled audacity yet again using the software installer on Ubuntu. I started audacity and turned off the default ‘overdub’ - a check mark does not appear there now. As always, playthrough is not checked. When running audactiy with sound activation recording it crashes, this time in about 7 minutes, a rather long run, the error and standard output is on the console is as follows. Note, no editing or even playback is done. All I do is hit record and wait for it to evaporate off the screen.

1> audacity >& log_24
Aborted (core dumped)

1> cat log_24
ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
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 ‘ret’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1670
Expression ‘AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 1830
Expression ‘PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2092
Expression ‘PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2764
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4541
Expression ‘stream->playback.pcm’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 4541
**
Gdk:ERROR:/build/buildd/gtk+2.0-2.24.13/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 < y2)

Using Ubuntu 12.04 on a low powered netbook, I created a 20 minutes’ long MP3 which was a tone set created in the DTMF tone generator having one second tones separated by one second silences, then extended with Effect > Repeat.

I played it in RhythmBox and recorded it in Audacity with Default input (Pulse - Monitor of Built in Analog) and Sound Activated Recording enabled. So the Pause button was being repeatedly exercised. The recording completed successfully. Are you working Pause harder than that?

It’s only one test, of course. I can try it in the near future in 12.10.

Gdk:ERROR:/build/buildd/gtk+2.0-2.24.13/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 < y2) would appear to be a GTK problem according to this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614379

Have you reported it to Ubuntu as well as here?


Gale