Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1159 - Sound Activated Recording crashes or Freezes
Sound Activated Recording crashes or Freezes
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Audio IO
2.1.2
Per OS Linux
: P1 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks: 327
  Show dependency treegraph
 
Reported: 2015-08-24 09:49 UTC by Steve Daulton
Modified: 2018-08-20 11:45 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
stevethefiddle: Regression+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2015-08-24 09:49:52 UTC
On starting Sound Activated Recording, the recording meter "lights up" but then Audacity immediately crashes or freezes. This occurs for all device / host settings.

If the sound activation level is set to -60 dB, Audacity records without crashing, but recording does not pause even if the input level drops to absolute  silence.

Occasionally the crash can cause the entire Desktop to freeze, requiring a hard power-off of the computer, which could cause data loss in any running applications.
Comment 1 Leland Lucius 2015-08-26 00:15:17 UTC
Man, this is a nasty one.
Comment 2 Leland Lucius 2015-08-26 01:17:47 UTC
Fix committed in:

 https://github.com/audacity/audacity/commit/133c0ec61d672b557bed71a310d3ea4d7d76c4ea

But, can you verify that recording actually works?  I don't have the ability to feed audio into my Linux VMs.

What was happening is that the status bar was being updated from the Audio thread and this is a no-no.  Actually, calling any function that messes with any of the GUI objects (like buttons, windows, etc) from any thread other than the main one is walking on thin ice, but we have gotten pretty lucky so far.  The status bar was the final straw.  :-)
Comment 3 Gale Andrews 2015-08-26 04:03:37 UTC
Just to note I could reproduce this on Ubuntu 14.04 but not on Mac or Windows. 

Will update and post results.
Comment 4 Steve Daulton 2015-08-26 04:16:37 UTC
(In reply to Leland Lucius from comment #2)
Yes, recording works now and no crash.
Comment 5 Gale Andrews 2015-09-01 10:08:14 UTC
No crashes now for me, and recording works correctly, on Ubuntu 14.04 32-bit and 64-bit (and on Mac and Windows).