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

Audacity Bugzilla



Bug 963 - Control value may be out of range when using FloatingPointValidator
Control value may be out of range when using FloatingPointValidator
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Built-in FX
2.1.1
Per OS All
: P4 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-20 12:24 UTC by Steve Daulton
Modified: 2018-08-20 11:45 UTC (History)
5 users (show)

See Also:
Steps To Reproduce:
Two examples: * Amplify effect: 1) Generate a tone amplitude 0.8 2) Amplify by -50 dB Error. "Value not in range: -51.94 to 48.06" * Change Tempo effect: 1) select exactly 577 samples 2) Change Tempo by -99 % Error. "Value not in range: 0.00 to 1.31"
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
stevethefiddle: Regression+
petersampsonaudacity: Test‑OK‑Win-
petersampsonaudacity: Test‑OK‑Win-
petersampsonaudacity: Test‑OK‑Mac+


Attachments
Pseudo Freeze with extreme -99% Change Tempo (31.69 KB, image/png)
2017-12-19 06:24 UTC, Peter Sampson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2015-05-20 12:24:33 UTC
Some slider controls may give "out of range" errors when at the maximum or minimum settings (see steps to reproduce).

When using FloatingPointValidator and calculating the min / max range as floats or doubles, the validated control value has been rounded to 'n' decimal places, but the min / max range have not been rounded. It is therefore a matter of chance whether the rounded control value, when at the extreme limit of the range, is within the higher precision range or not.
Comment 1 Steve Daulton 2015-05-20 12:59:39 UTC
Commit 1a2486b
Comment 2 David Bailes 2015-05-21 05:50:50 UTC
(In reply to Steve Daulton from comment #1)
> Commit 1a2486b

I confirm that this fixes the two examples using windows 8.1
Comment 3 Peter Sampson 2017-08-04 12:57:37 UTC
Testing on W10 audacity-win-ra45f3bb-2.2.0-alpha-22-jul-17
Tested on macOS Sierra 10.12.6 aae0c4c 04Aug17

I do not get the error message with the Change Tempo on both platforms and the effect worked.

However on both platforms, with the Amplify use case #1, I still get the same error message when the Amplify when the amplification is set to the the extreme -50.0 - setting that to -49,9 though means that the Ammplify will work ok (effectively producing silence).

So although this is a fringe, extreme, case I still have to mark this minus on Windows and Mac and Reopen the bug
Comment 4 Steve Daulton 2017-12-11 17:06:55 UTC
(In reply to Peter Sampson from comment #3)
It was fixed, but then got broken again by the fix for bug 958.
Updated the fix to account for that.
https://github.com/audacity/audacity/commit/973577
Comment 5 Peter Sampson 2017-12-18 09:23:37 UTC
(In reply to Steve Daulton from comment #4)
Tested on macOS 10.13.2 High Sierra with  audacity-macos-nightly-2.2.2-63de7f0.dmg - 25.95 MB | version: 2.2.2--18Dec17

No error messages with either the extreme change temp or the extreme amplify - so looks to be good on Mac
Comment 6 Peter Sampson 2017-12-19 06:22:57 UTC
(In reply to Steve Daulton from comment #4)
Testing on James' 2.2.2 build of 18Dec17 on W10

On W10 the extreme Amplify is now fine.

But the extreme Change Tempo has an issue.
Withe the -99% 
1) the Change Tempo dialog pops up but empty and whited out (see attachment)
2) It looks as though Audacity is frozen (the first couple of tests I forced quit the app)
3) with subsequent testing I monitored with Task Manager which showed that in that state Audacity was actively using 30+ % of CPU and 100-150MB memory
4) I let it run and then after 2-3 minutes the Change Tempo dialog was properly populated and the progress bar progressed
5) the effect worked

But I feel that most users would bale out as step 2 (as I did the first couple of times).

Extreme settings at the other other end of the effect's slider work fine.

Using -98% has a similar "hanging" delay
-95% has a shorter but still noticeable delay
-90% has a brief delay

This also seems to affect Change Speed effect similarly

Marked as REOPENED
Comment 7 Peter Sampson 2017-12-19 06:24:22 UTC
Created attachment 748 [details]
Pseudo Freeze with extreme -99% Change Tempo

Not a real freeze - it eventually clears if you are patient enough
Comment 8 Steve Daulton 2017-12-19 06:50:43 UTC
(In reply to Peter Sampson from comment #6)
The Change Tempo effect is expected to be very slow at the extreme -99% setting because it is effectively processing 100 times the length of the selection. This is unrelated to the validation check, thus outside the scope of bug 963.

If you are satisfied that the validation error as described in the bug description no longer occurs, please close this bug. If you are not satisfied that that is the case, please clarify on the QA mailing list.

If necessary, raise new bugs for other issues.
Comment 9 Peter Sampson 2017-12-19 07:25:54 UTC
(In reply to Steve Daulton from comment #8)
I indeed get no validation errors - so yes the issue as explained in the titling of this bug no longer occurs.

But in using the Steps To Reproduce Use Case 2 - a residual issue emerges
a) on Widows as I describe in Comment #6 and the attachment

b) I retested today on Mac and similar now occurs - I get the spinning beachball of death - the Activity Monitor shows in red Audacity not responding and consuming 100% CPU - Which eventually clears and the effect shows a short progress dialog and works.

But in both cases the user is presented with a confusing GUI which looks as though Audacity is frozen with no progress report - with which many usesc would force abort.


We do not have a consistent Bugzilla policy for residual issues.  In some cases we add them to the existing bug - in other cases we create new bugs (usually linking back to the original bug).

I am happy to adopt either approach here - but since Steve has requested that we close this one as it now "does what it says on the tin" and create a new bug for this fringe case - that is what I shall do
Comment 10 Peter Sampson 2017-12-19 07:57:23 UTC
For the residual I created Bug #1806