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

Audacity Bugzilla



Bug 1840 - Most effects fail silently when no audio selection
Most effects fail silently when no audio selection
Status: CLOSED WORKSFORME
Product: Audacity
Classification: Unclassified
Component: Built-in FX
2.2.1
Per OS All
: P5 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-12 05:16 UTC by Steve Daulton
Modified: 2019-08-09 09:28 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
1) Create a project with a short audio track as the first track and a longer audio track as the second track. 2) Click on the first track 3) In the selection toolbar, set the selection to start after the end of the first track, and end before the end of the second track. The wrong track is selected, so the effect would reasonably be expected to error. The only built-in effects to show an error are "Amplify", "Click Removal" and the"Get Noise Profile" stage of "Noise Reduction". The "Repeat" and "Truncate Silence" effects act on the empty selection. All other built-in effects fail silently.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2019-08-09 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2018-02-12 05:16:23 UTC
1) Create a project with a short audio track as the first track and a longer audio track as the second track.

2) Click on the first track

3) In the selection toolbar, set the selection to start after the end of the first track, and end before the end of the second track.

The wrong track is selected, so the effect would reasonably be expected to error.

The only built-in effects to show an error are "Amplify", "Click Removal" and the"Get Noise Profile" stage of "Noise Reduction".

The "Repeat" and "Truncate Silence" effects act on the empty selection.

All other built-in effects fail silently.

Only tested on Linux but I expect this is the same on all platforms.
This is arguably an enhancement to handle user error better, but imo the inconsistency from one effect to another is a bug (user input is not handled in a planned way).
Comment 1 Peter Sampson 2018-02-12 07:34:07 UTC
on Mac with 2.2.2 Beta - with Amplify I don't get an error message 

Rather, the dialog is popped up  - but the OK button is grayed-out - I can select the allow clipping and the OK becomes availablele - but clicking on it produces no error.

Others on Mac appear to be as Steve describes
Comment 2 Peter Sampson 2018-02-12 07:44:29 UTC
(In reply to Peter Sampson from comment #1)
On w10 2.2.2RC1 with Ampl,ify it is similar to Mac - but here when I click OK I get the error message "Value overflow"
Comment 3 Peter Sampson 2018-02-12 07:47:31 UTC
What I would expect to see in these circumstances is the "Friendly educational error message" that you get when there is no selection but just a zero-length cursor position - the "No audio selected ..." message
Comment 4 Peter Sampson 2018-02-12 07:50:29 UTC
The same effect can be seen just by crating an empty track.

1) drag a selection in it - and you get the silent fails abd others as Steve reports

2) click in it and then you get the "Select the audio ..." error message
Comment 5 Peter Sampson 2018-08-15 04:28:28 UTC
Residual of Bug #1934 is a use case of this involving Nyquist Prompt
Comment 6 Peter Sampson 2019-04-15 07:20:37 UTC
This is a bit of a fringe case - do we really need this is an open Bugzilla entry?

The user should be able to see quite clearly that they have an effectively null selection
Comment 7 Steve Daulton 2019-04-15 07:27:06 UTC
(In reply to Peter Sampson from comment #6)
> The user should be able to see quite clearly that they have an effectively
> null selection

Not so simple for VI users.
I agree that this is a relatively minor issue, hence the P5 rating.
Comment 8 Cliff Scott 2019-04-15 07:35:25 UTC
I would add that it is also a question of principle, i.e. should an effect be allowed to fail silently due to an error condition or should it refuse to run like Amplify does now.
Comment 9 Peter Sampson 2019-08-09 09:28:46 UTC
Testing on W10 with audacity-2.3.3-alpha-315-84d57170054857ff97919c7a2c9cf33b1f2c6053

And testing onmacOS 10.14.6 with 2.3.3 alpha jc006 of 08Aug19

On bothe platforms this noa appears to work properly - wity a "no-selection" error meassgae for all effects, including, Repeat and Truncate Silence.