Audacity freezes when clicking on the audio timeline during playback

Bug #792549 reported by Alistair Buxton
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
audacity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: audacity

When playing back an audio project, you can click on the timeline to seek within the project. Sometimes when doing this, audacity freezes up. There is no error message. Audacity must be manually killed and restarted. This happens rarely but often enough that I can reproduce it several times in the course of using audacity for a couple of hours.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: audacity 1.3.13-3ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jun 3 21:09:00 2011
ExecutablePath: /usr/bin/audacity
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110422)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: audacity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Download full text (7.3 KiB)

Here is a backtrace from a frozen session (all threads). I have now had it happen when clicking stop or pause in the audacity UI, and not just the timeline.

(gdb) thread apply all bt

Thread 4 (Thread 0x7fd7eafc2700 (LWP 719)):
#0 0x00007fd7f6feaf03 in __poll (fds=<value optimised out>, nfds=<value optimised out>, timeout=<value optimised out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fd7f7805104 in g_main_context_poll (context=0x283daa0, block=<value optimised out>, dispatch=1, self=<value optimised out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3404
#2 g_main_context_iterate (context=0x283daa0, block=<value optimised out>, dispatch=1, self=<value optimised out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3086
#3 0x00007fd7f78059f2 in g_main_loop_run (loop=0x283da80) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3299
#4 0x00007fd7f6a7ac44 in gdbus_shared_thread_func (data=<value optimised out>) at /build/buildd/glib2.0-2.28.6/./gio/gdbusprivate.c:276
#5 0x00007fd7f782c3e4 in g_thread_create_proxy (data=0x283db80) at /build/buildd/glib2.0-2.28.6/./glib/gthread.c:1897
#6 0x00007fd7f8afdd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7 0x00007fd7f6ff804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fd7dfffe700 (LWP 725)):
#0 0x00007fd7f8b064bd in nanosleep () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fd7fc9d448c in wxMicroSleep (microseconds=<value optimised out>) at ../src/unix/utilsunx.cpp:191
#2 0x000000000050ad4c in AudioThread::Entry (this=0x2aa3eb0) at AudioIO.cpp:2168
#3 0x00007fd7fc9cf631 in wxThreadInternal::PthreadStart (thread=0x2aa3eb0) at ../src/unix/threadpsx.cpp:766
#4 0x00007fd7f8afdd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5 0x00007fd7f6ff804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd7daffb700 (LWP 1564)):
#0 0x00007fd7f8afffc5 in __pthread_mutex_lock_full () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fd7e8b29b7e in pa_mutex_lock () from /usr/lib/libpulsecommon-0.9.22.so
#2 0x00007fd7e9379339 in ?? () from /usr/lib/libpulse.so.0
#3 0x00007fd7e936b116 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#4 0x00007fd7e936b749 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#5 0x00007fd7e936b800 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#6 0x00007fd7e93792df in ?? () from /usr/lib/libpulse.so.0
#7 0x00007fd7e8b2aa88 in ?? () from /usr/lib/libpulsecommon-0.9.22.so
#8 0x00007fd7f8afdd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#9 0x00007fd7f6ff804d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd7fdbaa960 (LWP 717)):
#0 0x00007fd7f8aff06d in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fd7f901af5d in PaUnixThread_Terminate (self=0x30234f0, wait=<value optimised out>, exitResult=0x7fff883648fc) at src/os/unix/pa_unix_util.c:441
#2 0x00007fd7f900d2c3 in RealStop (stream=0x3023350, abort=<value optimised out>) at src/hostapi/alsa/pa_linux_alsa.c:3022
#3 0x000...

Read more...

Changed in audacity (Ubuntu):
status: New → Confirmed
Revision history for this message
William Pietri (william-launchpad-net) wrote :

I confirm this happens frequently in 13.10 for me. I'd guess 5-10 times per hour of editing, whether working with imported or freshly recorded audio.

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Still happens in 2.0.5 on 14.04. Clicking "stop" during playback instantly freezes audacity every time.

Revision history for this message
jcsjcs (jcsjcs) wrote :

2.0.5 on 14.04: audacity freezes about once every 3-5 minutes and has to be manually killed.

All I'm doing is starting and stopping playback. Usually I listen to a few seconds of sound, then stop (SPACE....SPACE).

Same happens sometimes if I'm recording (R...SPACE).

I believe the freeze is always when I stop the playback/recording.

Revision history for this message
Bruno (brucor53+ubuntuforums) wrote :

Linux Mint 17.1 KDE 64bit : same problem in december 2015 with Audacity .
Very annoying ! When will this be solved ????

Revision history for this message
dusk (dusktumult) wrote :

Latest Version of Mint 2016 same problem. Halp!

Revision history for this message
Nybo (renenybo) wrote :

Still in Ubuntu 16.04. Happens maybe 4-5 times per hour of editing (an audiobook). Just tried the Audacity 2.1.3-alfa and the problem is still there. Also happens on my second ubuntu system, so it must be a general problem.

Revision history for this message
Nybo (renenybo) wrote :

Found a solution. Apparently there is a problem with Pulse Audio on linux, when you do start/stop too frequently.

http://wiki.audacityteam.org/wiki/Linux_Issues

PulseAudio: Audacity's PulseAudio support generally works well. PulseAudio doesn't support ALSA's mixer interface so Audacity's Mixer Toolbar input slider is disabled under PulseAudio. Audacity can freeze using PulseAudio if playback or recording are started or stopped very rapidly or frequently. Playback can also occasionally be distorted or excessively fast. Patches are welcomed to improve our PulseAudio support. Meantime a reported workaround for freezes or glitched or skipped playback is to launch Audacity from the terminal with the following command:
env PULSE_LATENCY_MSEC=30 audacity

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.