Audacity freezes when clicking on the audio timeline during playback
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | audacity (Ubuntu) |
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
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
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)
| Alistair Buxton (a-j-buxton) wrote : | #1 |
| Alistair Buxton (a-j-buxton) wrote : | #2 |
| Changed in audacity (Ubuntu): | |
| status: | New → Confirmed |
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.
| Alistair Buxton (a-j-buxton) wrote : | #4 |
Still happens in 2.0.5 on 14.04. Clicking "stop" during playback instantly freezes audacity every time.
| jcsjcs (jcsjcs) wrote : | #5 |
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.
| Bruno (brucor53+ubuntuforums) wrote : | #6 |
Linux Mint 17.1 KDE 64bit : same problem in december 2015 with Audacity .
Very annoying ! When will this be solved ????
| dusk (dusktumult) wrote : | #7 |
Latest Version of Mint 2016 same problem. Halp!
| Nybo (renenybo) wrote : | #8 |
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.
| Nybo (renenybo) wrote : | #9 |
Found a solution. Apparently there is a problem with Pulse Audio on linux, when you do start/stop too frequently.
http://
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_


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)): unix/sysv/ linux/poll. c:87 buildd/ glib2.0- 2.28.6/ ./glib/ gmain.c: 3404 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 buildd/ glib2.0- 2.28.6/ ./glib/ gmain.c: 3299 thread_ func (data=<value optimised out>) at /build/ buildd/ glib2.0- 2.28.6/ ./gio/gdbuspriv ate.c:276 create_ proxy (data=0x283db80) at /build/ buildd/ glib2.0- 2.28.6/ ./glib/ gthread. c:1897 64-linux- gnu/libpthread. so.0 unix/sysv/ linux/x86_ 64/clone. S:112
#0 0x00007fd7f6feaf03 in __poll (fds=<value optimised out>, nfds=<value optimised out>, timeout=<value optimised out>) at ../sysdeps/
#1 0x00007fd7f7805104 in g_main_context_poll (context=0x283daa0, block=<value optimised out>, dispatch=1, self=<value optimised out>) at /build/
#2 g_main_
#3 0x00007fd7f78059f2 in g_main_loop_run (loop=0x283da80) at /build/
#4 0x00007fd7f6a7ac44 in gdbus_shared_
#5 0x00007fd7f782c3e4 in g_thread_
#6 0x00007fd7f8afdd8c in start_thread () from /lib/x86_
#7 0x00007fd7f6ff804d in clone () at ../sysdeps/
#8 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7fd7dfffe700 (LWP 725)): 64-linux- gnu/libpthread. so.0 <value optimised out>) at ../src/ unix/utilsunx. cpp:191 l::PthreadStart (thread=0x2aa3eb0) at ../src/ unix/threadpsx. cpp:766 64-linux- gnu/libpthread. so.0 unix/sysv/ linux/x86_ 64/clone. S:112
#0 0x00007fd7f8b064bd in nanosleep () from /lib/x86_
#1 0x00007fd7fc9d448c in wxMicroSleep (microseconds=
#2 0x000000000050ad4c in AudioThread::Entry (this=0x2aa3eb0) at AudioIO.cpp:2168
#3 0x00007fd7fc9cf631 in wxThreadInterna
#4 0x00007fd7f8afdd8c in start_thread () from /lib/x86_
#5 0x00007fd7f6ff804d in clone () at ../sysdeps/
#6 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7fd7daffb700 (LWP 1564)): mutex_lock_ full () from /lib/x86_ 64-linux- gnu/libpthread. so.0 libpulsecommon- 0.9.22. so libpulse. so.0 libpulse. so.0 libpulse. so.0 libpulse. so.0 libpulse. so.0 libpulsecommon- 0.9.22. so 64-linux- gnu/libpthread. so.0 unix/sysv/ linux/x86_ 64/clone. S:112
#0 0x00007fd7f8afffc5 in __pthread_
#1 0x00007fd7e8b29b7e in pa_mutex_lock () from /usr/lib/
#2 0x00007fd7e9379339 in ?? () from /usr/lib/
#3 0x00007fd7e936b116 in pa_mainloop_poll () from /usr/lib/
#4 0x00007fd7e936b749 in pa_mainloop_iterate () from /usr/lib/
#5 0x00007fd7e936b800 in pa_mainloop_run () from /usr/lib/
#6 0x00007fd7e93792df in ?? () from /usr/lib/
#7 0x00007fd7e8b2aa88 in ?? () from /usr/lib/
#8 0x00007fd7f8afdd8c in start_thread () from /lib/x86_
#9 0x00007fd7f6ff804d in clone () at ../sysdeps/
#10 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7fd7fdbaa960 (LWP 717)): 64-linux- gnu/libpthread. so.0 Terminate (self=0x30234f0, wait=<value optimised out>, exitResult= 0x7fff883648fc) at src/os/ unix/pa_ unix_util. c:441 alsa/pa_ linux_alsa. c:3022
#0 0x00007fd7f8aff06d in pthread_join () from /lib/x86_
#1 0x00007fd7f901af5d in PaUnixThread_
#2 0x00007fd7f900d2c3 in RealStop (stream=0x3023350, abort=<value optimised out>) at src/hostapi/
#3 0x000...