Bug 1189444 - Audacity cannot play audio
Summary: Audacity cannot play audio
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: audacity
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: David Timms
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-05 10:57 UTC by Frédéric COIFFIER
Modified: 2015-12-18 09:59 UTC (History)
7 users (show)

Fixed In Version: audacity-2.1.1-1.fc21 audacity-2.1.2-0.7.rc1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-18 09:59:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frédéric COIFFIER 2015-02-05 10:57:32 UTC
Description of problem:

Audacity is unable to play audio correctly with the pulseaudio backend.

Version-Release number of selected component (if applicable):

audacity-2.0.6-1.fc21.x86_64

How reproducible:

Pulseaudio is used in its default configuration as audio backend.

Steps to Reproduce:
1. Open audacity
2. 'Default' is selected for playing and recording
3. Load a WAV file (like /usr/share/sounds/alsa/Front_Left.wav )
4. Play it

Actual results:

Only noise/crackles are heard and the file is played too fast.
Lots of message in the console :

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

Expected results:

The audio file should be played correctly at the good speed.

Additional info:

This workaround gives good result :

env PULSE_LATENCY_MSEC=30 audacity

Comment 1 Darryl L. Pierce 2015-02-05 12:55:06 UTC
Doing a quick google search I found the following article:

  https://bbs.archlinux.org/viewtopic.php?id=185736

which links to:

  https://wiki.archlinux.org/index.php/PulseAudio#Setting_the_default_fragment_number_and_buffer_size_in_PulseAudio

for someone who's experienced similar problems; i.e., ALSA and Pulse Audio are fighting and poor Audacity seems caught in the middle. Then please let me know if that fixes things or not.

Comment 2 Frank Ch. Eigler 2015-04-04 19:02:56 UTC
In my case, the $env option didn't work, but adding

default-fragments = 5
default-fragment-size-msec = 2

to /etc/pulse/daemon.conf did.

Comment 3 Louis van Dyk 2015-05-30 00:34:13 UTC
I confirm the same problem when choosing "pulse" in Audacity.  It also got fixed when adding the above to /etc/pulse/daemon.conf.

@Darryl - Is there any reason not to implement these settings as standard when installing Audacity's RPM?

Comment 4 David Timms 2015-05-31 12:14:19 UTC
Guys, this was reported against -2.0.6.
Do you think this setting change is needed for audacity-2.1.0 package ?

Comment 5 Louis van Dyk 2015-06-01 02:32:26 UTC
I am running audacity-freeworld-2.0.6-1.fc21.x86_64.

Is there an RPM I can test with for 2.1.0?  I will gladly do so and report back.

Comment 6 Louis van Dyk 2015-06-01 02:49:17 UTC
Doh!

<sheepish grin>

You know those moments when you clicked SAVE and immediately afterwards realised you just made a BIG mistake!

So, ahem, I uninstalled the audacity-freeworld application and installed audacity-2.1.0-1.fc21.x86_64.

Sadly though, I am having the same problem still.

ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
.... repeated a million times!

Adding these to dameon.conf makes it work.

default-fragments = 5
default-fragment-size-msec = 2

.... although, when listening to the playback, every now and then is a "CHK" sound.  I don't know if it's my PC doing it, or if the settings changed in Pulse are causing it.  The glitch is not in the audio file, because when replaying the section again it's not there.

Comment 7 Fedora Admin XMLRPC Client 2015-06-12 13:11:08 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Update System 2015-07-01 11:03:50 UTC
audacity-2.1.1-0.1.dea351a.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.1.dea351a.fc21

Comment 9 Fedora Update System 2015-07-03 18:46:15 UTC
Package audacity-2.1.1-0.1.dea351a.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing audacity-2.1.1-0.1.dea351a.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-11114/audacity-2.1.1-0.1.dea351a.fc21
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2015-07-05 04:23:30 UTC
audacity-2.1.1-0.2.rc1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.2.rc1.fc22

Comment 11 Fedora Update System 2015-07-05 04:23:45 UTC
audacity-2.1.1-0.2.rc1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.2.rc1.fc21

Comment 12 Fedora Update System 2015-07-12 22:44:11 UTC
audacity-2.1.1-0.4.rc3.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.4.rc3.fc22

Comment 13 Fedora Update System 2015-07-12 22:44:29 UTC
audacity-2.1.1-0.4.rc3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.4.rc3.fc21

Comment 14 Fedora Update System 2015-07-19 09:04:42 UTC
audacity-2.1.1-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/audacity-2.1.1-1.fc22

Comment 15 Fedora Update System 2015-07-19 09:06:24 UTC
audacity-2.1.1-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/audacity-2.1.1-1.fc21

Comment 16 Sergio Durigan Junior 2015-07-26 01:44:17 UTC
I had to manually restart pulseaudio in order to make things work after installing the latest package.  Other than that, everything is now back on track.

Comment 17 Fedora Update System 2015-07-30 01:16:11 UTC
audacity-2.1.1-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2015-08-01 02:29:14 UTC
audacity-2.1.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 ell1e 2015-12-02 01:36:11 UTC
Is it possible to re-open this? I'm using Audacity 2.1.1 on Fedora 22 (which was supposed to fix it?), and I appear to be seeing the exact same issue: sound files play waaay faster than they should, and there are lots of artifacts. It likes to randomly crash too which seems to be connected.

Comment 20 Frank Ch. Eigler 2015-12-02 01:39:38 UTC
Likewise, still observing similar audio output corruption on f22.

Comment 21 Fedora End Of Life 2015-12-02 08:35:59 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 22 David Timms 2015-12-02 12:18:10 UTC
Can you please provide the package version you are using in F23 ? rpm -q audacity ?

If you haven't already tried the next version, can you test with the 2.1.2 RC1:
# dnf --enablerepo=updates-testing update audacity

Comment 23 ell1e 2015-12-03 01:28:17 UTC
I think my dnf-fu isn't really up to the required task (or the new version is not available on Fedora 22):

jonas@cyberman:~$ rpm -q audacity
audacity-2.1.1-1.fc22.x86_64
jonas@cyberman:~$ su
Password: 
[root@cyberman jonas]# dnf --enablerepo=updates-testing update audacity
Fedora 22 - x86_64 - Test Updates               451 kB/s | 2.6 MB     00:05    
Last metadata expiration check performed 0:00:02 ago on Thu Dec  3 02:24:47 2015.
Dependencies resolved.
Nothing to do.
Complete!
[root@cyberman jonas]# dnf --enablerepo=updates-testing install audacity
Last metadata expiration check performed 0:00:15 ago on Thu Dec  3 02:24:47 2015.
Package audacity-2.1.1-1.fc22.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[root@cyberman jonas]# 

Anyway, this should show the audacity version I'm currently using.
Full disclosure: I do have rpmfusion enabled, so I hope this has no involvement in this bug.

A bit more details on the installed package (which looks like it originates from the regular fedora core repos):

[root@cyberman jonas]# dnf info audacity
Last metadata expiration check performed 2:21:12 ago on Thu Dec  3 00:04:52 2015.
Installed Packages
Name        : audacity
Arch        : x86_64
Epoch       : 0
Version     : 2.1.1
Release     : 1.fc22
Size        : 17 M
Repo        : @System
From repo   : updates
Summary     : Multitrack audio editor
URL         : http://audacity.sourceforge.net
License     : GPLv2
Description : Audacity is a cross-platform multitrack audio editor. It allows
            : you to record sounds directly or to import files in various
            : formats. It features a few simple effects, all of the editing
            : features you should need, and unlimited undo. The GUI was built
            : with wxWidgets and the audio I/O supports PulseAudio, OSS and ALSA
            : under Linux.

[root@cyberman jonas]#

Comment 24 Fedora Update System 2015-12-04 11:09:21 UTC
audacity-2.1.2-0.7.rc1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-4320723725

Comment 25 David Timms 2015-12-04 11:26:16 UTC
(In reply to Jonas Thiem from comment #23)
> audacity-2.1.1-1.fc22.x86_64

OK, I hadn't built the Release Candidate version for F22, but it is now, and I created a testing-update which wont become available for some days, using my previous-updates testing command.

Right now you could test by downloading the rpm and -manual.rpm for your architecture from the build (and dnf install each):
http://koji.fedoraproject.org/koji/buildinfo?buildID=703016

Comment 26 Frank Ch. Eigler 2015-12-04 12:08:58 UTC
Same problem as before.  With a pulseaudio backend, playback occurs at nearly 100x the speed, all noise and crackle.

Comment 27 Fedora Update System 2015-12-04 17:20:33 UTC
audacity-2.1.2-0.7.rc1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update audacity'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-4320723725

Comment 28 Fedora Update System 2015-12-18 09:58:52 UTC
audacity-2.1.2-0.7.rc1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.