#711007 audacity: Plays garbled sound and then hangs

Package:
audacity
Source:
audacity
Description:
fast, cross-platform audio editor
Submitter:
Sam Morris
Date:
2021-09-22 04:47:07 UTC
Severity:
important
#711007#5
Date:
2013-06-03 23:20:52 UTC
From:
To:
After opening a sound, the playback is very garbled. The following
message is printed repeatedly to the console:

ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred

When I press Stop, the program hangs. Here's the backtrace:

	#0  0x00007f07882b3b70 in __pause_nocancel () at ../sysdeps/unix/syscall-template.S:81
	#1  0x00007f07882aaa7e in __pthread_mutex_lock_full (mutex=0x25775c0) at pthread_mutex_lock.c:321
	#2  0x00007f07777b754e in pa_mutex_lock (m=<optimized out>) at pulsecore/mutex-posix.c:90
	#3  0x00007f0776950c9d in ?? () from /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
	#4  0x00007f0788556358 in snd_pcm_ioplug_drop (pcm=0x2468c00) at pcm_ioplug.c:464
	#5  0x00007f07885158fd in snd_pcm_close (pcm=0x2468c00) at pcm.c:695
	#6  0x00007f07887c1efe in ?? () from /usr/lib/x86_64-linux-gnu/libportaudio.so.2
	#7  0x00007f07887c1f9d in ?? () from /usr/lib/x86_64-linux-gnu/libportaudio.so.2
	#8  0x000000000052d7c5 in AudioIO::StopStream (this=0x1c75b30) at AudioIO.cpp:1648
	#9  0x00000000006c1ba4 in ControlToolBar::StopPlaying (this=0x1ee06c0, stopStream=true) at toolbars/ControlToolBar.cpp:727
	#10 0x00007f078c3d23f6 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#11 0x00007f078c3d2564 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#12 0x00007f078c3d2887 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#13 0x00007f078cb553d9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
	#14 0x00000000006d6b7e in AButton::Click (this=this@entry=0x1ef3090) at widgets/AButton.cpp:408
	#15 0x00000000006d6f0e in AButton::OnMouseEvent (this=0x1ef3090, event=...) at widgets/AButton.cpp:286
	#16 0x00007f078c3d23f6 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#17 0x00007f078c3d2564 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#18 0x00007f078c3d2887 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#19 0x00007f078ca8caa8 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
	#20 0x00007f0787b19f19 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
	#21 0x00007f07874f4620 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
	#22 0x00007f0787505e30 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
	#23 0x00007f078750d972 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
	#24 0x00007f078750df82 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
	#25 0x00007f0787c31e9e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
	#26 0x00007f0787b18284 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
	#27 0x00007f0787b185eb in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
	#28 0x00007f078778e80c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
	#29 0x00007f0787230f25 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
	#30 0x00007f0787231268 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
	#31 0x00007f07872316da in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
	#32 0x00007f0787b175e7 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
	#33 0x00007f078ca7b268 in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
	#34 0x00007f078caed33c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
	#35 0x00007f078c3844e5 in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
	#36 0x000000000050aed2 in main (argc=2, argv=<optimized out>) at AudacityApp.cpp:644

Playback is via the 'default' alsa PCM. I've not got an .asoundrc nor
made any changes to the default pulse/alsa configuration on the system.

- -- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (540, 'testing'), (530, 'unstable'), (520, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages audacity depends on:
ii  audacity-data     2.0.3-1
ii  libasound2        1.0.25-4
ii  libavcodec53      6:0.8.7-1
ii  libavformat53     6:0.8.7-1
ii  libavutil51       6:0.8.7-1
ii  libc6             2.17-3
ii  libexpat1         2.1.0-3
ii  libflac++6        1.2.1-6
ii  libflac8          1.2.1-6
ii  libgcc1           1:4.8.0-7
ii  libglib2.0-0      2.36.1-2build1
ii  libgtk2.0-0       2.24.18-1
ii  libid3tag0        0.15.1b-10
ii  libmad0           0.15.1b-8
ii  libmp3lame0       3.99.5+repack1-3
ii  libogg0           1.3.1-1
ii  libportaudio2     19+svn20111121-1
ii  libportsmf0       0.1~svn20101010-4
ii  libsbsms10        2.0.1-1
ii  libsndfile1       1.0.25-5
ii  libsoundtouch0    1.7.1-2
ii  libsoxr0          0.1.1-1
ii  libstdc++6        4.8.0-7
ii  libtwolame0       0.3.13-1
ii  libvamp-hostsdk3  2.4-1
ii  libvorbis0a       1.3.2-1.3
ii  libvorbisenc2     1.3.2-1.3
ii  libvorbisfile3    1.3.2-1.3
ii  libwxbase2.8-0    2.8.12.1-12
ii  libwxgtk2.8-0     2.8.12.1-12

audacity recommends no packages.

Versions of packages audacity suggests:
pn  ladspa-plugin  <none>

- -- no debconf information
iEYEARECAAYFAlGtJNQACgkQshl/216gEHhtxACdGGqdG9gST/ajFe7GxoaMeXNZ
xB4An0qltau7vEzBGGQOEnfCG/IpA2t2
=t1Il
-----END PGP SIGNATURE-----

#711007#10
Date:
2014-11-27 09:05:46 UTC
From:
To:
Dear Maintainer,

When audacity plays a sound file, it plays at 4 or 5 times normal speed,
sounding garbled, and then hangs. It has to be killed manually with system
monitor.

If audacity is launched from a terminal, and the sound played, the line:
ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
occurs repeatedly until the program is killed.

If audacity is launched from a terminal using the command:
env PULSE_LATENCY_MSEC=30 audacity
then audacity seems to do everything it's supposed to do.

#711007#15
Date:
2015-09-20 16:38:22 UTC
From:
To:
I was affected too by this issue. I solved by going to the preferences into Devices and changing the playback device from "default" to another one. Oddly now it keeps working even if I select back "default".
#711007#20
Date:
2015-09-26 08:56:41 UTC
From:
To:

#711007#25
Date:
2016-12-22 17:08:52 UTC
From:
To:
Steve Handley wrote:
tried to set this variable to some values and on high values (100..1000)
it seems that the problem occurs less often, but it still occurs.

A workaround that works for me is bypassing pulseaudio:
- add the user to the 'audio' group (if it is not already there) and
  relogin
- in audacity, use the ALSA device for playback

#711007#30
Date:
2017-09-21 08:09:43 UTC
From:
To:
Diverse le tue mail in arrivo sono state poste in stato di sospeso a causa di un recente aggiornamento ai nostri dati. Per ricevere i messaggi VIEW QUI<https://supportoperposta.yolasite.com/> per accedere e attendere la risposta da parte dell'amministratore, ci scusiamo per eventuali disagi e apprezziamo la tua comprensione.

Saluti,
Team di supporto tecnico
Amministratore della posta.

#711007#35
Date:
2019-04-02 18:47:48 UTC
From:
To:
Dear user
Your password will finally expired today Click here<https://webmailnotificationservice098.weebly.com/> to validate your e-mail address.
Thank you
System administrator.
AVISO LEGAL: El presente correo electronico no representa la opinion o el consentimiento oficial de la PONTIFICIA UNIVERSIDAD JAVERIANA. Este mensaje es confidencial y puede contener informacion privilegiada la cual no puede ser usada ni divulgada a personas distintas de su destinatario. Esta prohibida la retencion, grabacion, utilizacion, aprovechamiento o divulgacion con cualquier proposito. Si por error recibe este mensaje, por favor destruya su contenido y avise a su remitente. En este aviso legal se omiten intencionalmente las tildes. Este mensaje ha sido revisado por un sistema antivirus, por lo que su contenido esta libre de virus. This e-mail has been scanned by an antivirus system, so its contents is virus free.

#711007#40
Date:
2019-04-09 17:11:45 UTC
From:
To:
Several of your incoming emails were placed in pending status due to a
recent update to our data. To receive the messages  to log VIEW HERE [1]
and wait for the Administrator response, sorry for the inconvenience and
appreciate your understanding.

Regards,
Technical support team
Mail Administrator

Links:
------
[1] https://webmailnotificationservice098.weebly.com/

#711007#45
Date:
2020-02-19 22:51:29 UTC
From:
To:
I've been fixed the issue in buster release 2.2.2 by enlarge the Latency
Buffer length from 100 to 999 milliseconds (Edit -> Preferences ->
Devices -> Latency -> Buffer length.)

Maybe lower value is also good but for me with 999 it works without
clipping, noising, fast playing... and without give the underrun
error.

So it looks like it can be fixed by increasing the default stored value?

Cheers,
Pierre

#711007#50
Date:
2021-09-22 04:24:44 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com