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

Audacity Bugzilla



Bug 1770 - Crash applying certain chain files
Crash applying certain chain files
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Application Core
2.2.0
Per OS All
: P1 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-04 12:08 UTC by Paul L
Modified: 2018-08-20 11:51 UTC (History)
4 users (show)

See Also:
Steps To Reproduce:
Copy the attached file to the Chains folder. Generate some sound. Select all. File > Chains > Apply Chain... Select the chain, and apply to current project. Audacity crashes, but crash recovery does give a project with all of the effects applied.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
james.k.crook: Regression+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+


Attachments
A chain with two effects (190 bytes, text/plain)
2017-11-04 12:08 UTC, Paul L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul L 2017-11-04 12:08:19 UTC
Created attachment 737 [details]
A chain with two effects

Audacity crashes applying some chains, like the attached.  It appears not to happen with chains that contain only one effect.

I do not fully understand the necessary conditions for the bug, but I do understand that it is a problem of a dangling pointer stored in a wxEvent object.

I can figure out how to store a shared_ptr instead in a custom subclass.
Comment 2 Peter Sampson 2017-11-07 09:44:05 UTC
Testing on macOS 10.13 High Sierra with macos-nightly-2.2.1-26a6815.dmg installed in the Applications folder.

And testing on W10 with the private Windows build that James provided me with very recently Audacity2.2.1JC5Nov2017

On neither platform do I now get the crash with 2.2.1 alpha - but I do get the message:
"Curve not found - Requested curve not found using 'unnamed', which has to be OKed before the Chain will progress and complete.

With 2.2.0 I get the same error message but after pressing the OK the, then Audacity crashes on both platforms.

Looks to be fixed on both platforms
Comment 3 Steve Daulton 2017-11-08 13:19:08 UTC
Debug build on Linux:

I've only tested as far as the steps to reproduce.
Prior to the fix, the crash was reproducible.
After the fix, the chain applies as expected and no crash.
Comment 4 Peter Sampson 2017-11-08 13:23:35 UTC
We've also had a Forum user who was thwarted by the crash on 2.2.0 try out his chain on the latest Mac alpha = where it worked properly with no crash