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

Audacity Bugzilla



Bug 1797 - Scrub/seek fails to produce sound output on projects longer than 13.5 hours
Scrub/seek fails to produce sound output on projects longer than 13.5 hours
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Audio IO
2.2.1
Per OS All
: P3 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-03 09:26 UTC by Peter Sampson
Modified: 2021-01-30 17:35 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
On Windows 1)get 14 hours of audio 2)use the Scrub Ruler to Scrub or Seek 3) observe that just after the mouse is moved for the scrub or seek - the green playhead triangle disappears and no sound is output 4)trim the final hour off the audio to leave 13 hours 5)use the Scrub Ruler to Scrub or Seek 6) Now observe that the scrub or seek now takes place properly and produces scrubbed/seeked sound output On Mac behavior is slightly different - I will detail this in the thread. This errant behavior appears to be independent of the zoom level in play. Also occurs when the Transport menu scrub commands are used.
Release Note:
Group: Scrubbing Scrubbing and Seeling fail to produce sound output on projects greater thn 13.5 hours long at 44100 Hz sample rate (2^31 samples).
First Git SHA:
Group: ---
Workaround:
None
Closed: 2021-01-30 00:00:00
stevethefiddle: Must‑Test‑All‑OS+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+
stevethefiddle: Test‑OK‑Lin+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2017-12-03 09:26:26 UTC
On Windows:
for projects of 14 hours or more when trying to use scrubbing or seeking, 
a) the green play-head triangle in the Timeline disappears when the mouse is moved to scrub/seek 
b) and no sound output is produced.  

For projects of 13 hours or less scrub/seek works fine (I have not bisected further to determine the precise cut-off point)

This errant behavior appears to be independent of the zoom level in play.

This also occurs when the Transport menu scrub commands are used rather than the scrub ruler



On Mac:
Hear the behavior is slightly different.   For a start projects of 14 hours seem to scrub seek fine.  

But for longer projects (I worked with a 40 hour one)
a) the green play-head triangle in the Timeline does not disappear
b) when the cursor is moved within half an hour or so of the green triangle the scrubbing/seeking works - and scrubbed/seeked sound is produced
c) however when the cursor is moved further from the geen play-head triangle the the sound output ceases
d) for scrubbing in c) the play-head remains static (it's meant to)
e) but for seeking in case c) the green play-head triangle moves while the cursor is within the 30 mins or so range - but once moved further away not only is there no sound but the green play-head triangle remais static and does not move
f) moving the cursor back to with in 30 mins or so range of the green play-head triangle will however caused the scrub or seek to recommence



On Linux:
I cannot test this - but I assume "All" on the basis of the other two platforms
Comment 1 Peter Sampson 2017-12-03 09:37:41 UTC
Note that for the Windows testing I tested on:

1) My new W10  laptop with the SSD (app and project files on SSD)

2) My new W10 laptop with the SSD (app on SSD - project files on 1TB spinning metal disk)

3) My older slower W10 laptop with spinning metal disk

In all three use cases the cut-off remained between the 13 hour and 14 hour mark - so the cut-off appears to be independent of disk speed or processor power.
Comment 2 Peter Sampson 2017-12-03 11:15:56 UTC
I don't know if this has any bearing at all - but in related testing I tried Studio Fade Out on the 14-hour project - and got the error message

>"Selection too long for Nyquist code
>Maximum allowed selection is 2147483647 samples
>(about 13.5 hours at 44100Hz sample rate."

hmmmm  13.5 hours ...
Comment 3 Peter Sampson 2017-12-03 11:21:19 UTC
(In reply to Peter Sampson from comment #2)
And further bisecting on the W10 14 four project indicates that the cutoff point at which the scrub/seek no longer works is indeed around the 13.5 hour mark.
Comment 4 Steve Daulton 2017-12-03 12:26:56 UTC
13.5 hours at 44100Hz sample rate is the maximum number of samples that can be represented as a signed 32-bit integer.

As Nyquist is a 32-bit application, this length limitation is intended, and while the error message is not infallible, it provides protection against overflow for at least some Nyquist plug-ins.

In the case of this bug 1797, comment 3 seems to suggest that we are using an int somewhere that we should be using a 64-bit sampleCount.
Comment 5 Steve Daulton 2021-01-30 14:38:25 UTC
This appears to be working correctly in Audacity 3.0.0 7aa264 on Linux.

As Peter mentioned "slightly different behaviour" on MacOS, I'm marking this as must test all OS.
Comment 6 Peter Sampson 2021-01-30 17:13:25 UTC
(In reply to Steve Daulton from comment #5)
Now tests OK on W10 with Audacity 3.0.0 6c44b4f
Comment 7 Peter Sampson 2021-01-30 17:35:30 UTC
(In reply to Steve Daulton from comment #5)
Testing on macOS 11.1 Big Sur with Audacity 3.0.0 6c44b4f

This now appears to work fine on Mac as well - I tested with a 40-hour mono track
and then made a 40-hour stero track from that - all fine.