Bug 1301390 - Audacity 2.1.1 application crashes during recording a second track due to ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred
Summary: Audacity 2.1.1 application crashes during recording a second track due to ALS...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: audacity
Version: 23
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: David Timms
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-24 18:20 UTC by Stefan Seefeld
Modified: 2016-03-05 22:21 UTC (History)
2 users (show)

Fixed In Version: audacity-2.1.2-3.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-05 22:21:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
error log of crashed application (3.40 KB, text/plain)
2016-01-24 18:20 UTC, Stefan Seefeld
no flags Details
gdb output (7.95 KB, text/plain)
2016-01-25 01:25 UTC, Stefan Seefeld
no flags Details
gdb output (12.45 KB, text/plain)
2016-01-26 15:52 UTC, Stefan Seefeld
no flags Details

Description Stefan Seefeld 2016-01-24 18:20:26 UTC
Created attachment 1117654 [details]
error log of crashed application

I'm trying to record multiple tracks with audacity. The first track is generated fine, but as soon as I add a second one, the application crashes with the attached error.
It doesn't appear to matter whether one of the tracks is actually synthesized (a beat, for example) or recorded. The application always crashes as soon as I start to add a new track to an existing one.

Comment 1 David Timms 2016-01-24 22:10:27 UTC
Hi Stefan, 
I am able to record 3 or more tracks (adding first, stopping, recording, stopping, recording stopping.

Could you please list the package version eg: rpm -q audacity
audacity-2.1.1-1.fc23.x86_64.

Have you used a previous version that worked as you expect (and which version) ?

Are you able to capture debug information for me, using the following steps ?

$ gdb audacity
run
(make it crash), then take the advice to install the needed debuginfo.
quit

$ gdb audacity
run

make it crash, 

then capture the text printed by gdb into an a file and attach to this bug.

Also, can you please check Edit|Preferences, and list the Recording tabs settings:
Playthrough: 
Overdub ?
Software Playthrough ?

If you could list out the actual steps you take, in case I'm not doing it right, that would be helpful as well. Thanks.

Comment 2 Stefan Seefeld 2016-01-25 01:25:57 UTC
Created attachment 1117748 [details]
gdb output

Hi David,

thanks for the quick follow-up !
My version of audacity (as of Fedora 23) is audacity-2.1.2-0.7.rc1.fc23.x86_64.
I haven't used any previous version, just tried to experiment a bit to record some sound. (And I may have done something stupid, given my total lack of experience with the application. Still, it shouldn't crash...)

Here is what I did:
* open the application
* click the record button to record a few seconds, then stop.
* click the record button again

   > application crashes

Please find attached the output obtained from gdb.

Comment 3 David Timms 2016-01-26 13:29:40 UTC
Thanks Stefan, unfortunately I forgot to ask you to follow the: dnf debuginfo-install command in the bottom of the gdb terminal session. This will probably install 100MB+ of debuginfo files (which you can later remove), but this provides me with the actual function calls that lead to the crash.

I also forgot to ask you to then restart gdb, cause the crash, and then:
thread apply all bt
which provides the backtrace of calls, and attach that result. ?

By the way, did Abrt detect this crash, or have you disabled it ?

Also, if you can check whether the recording tab checkboxes are ticked or unticked, that may also be helpful. And try with the checkboxes inverted...maybe.

I agree that it shouldn't crash, and you aren't the only one to experience a similar issue, yet I don't see the problem on my machines.

Audacity 2.1.2 has been released, and I have built for all Fedora versions, and tested a little myself, but not yet created an updates-testing update. If you are willing to test this issue with the freshly built version:
http://koji.fedoraproject.org/koji/packageinfo?packageID=1352
and use the link to your fedora release and then grab the audacity, audacity-manual and audacity-debuginfo packages and manually install them using dnf install.

Comment 4 Stefan Seefeld 2016-01-26 15:52:14 UTC
Created attachment 1118550 [details]
gdb output

OK, here is the updated gdb output. I hope all the relevant info is in it. (For some reason gdb kept asking me about some missing debuginfo libs, despite me issuing the requested dnf command - and it telling me that all libs were up-to-date.)

(On a side-note: while playing around with the UI I also get this error message frequently:

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

which however seems entirely separate, since GUI related.)

The "Playthrough" >> "Overdub" checkbox was indeed selected. If I unselect it, the application does not crash.

Thanks,

Comment 5 Fedora Update System 2016-03-03 19:28:59 UTC
audacity-2.1.2-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ee19511560

Comment 6 Fedora Update System 2016-03-05 02:23:01 UTC
audacity-2.1.2-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ee19511560

Comment 7 Fedora Update System 2016-03-05 22:21:27 UTC
audacity-2.1.2-3.fc23 has been pushed to the Fedora 23 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.