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

Audacity Bugzilla



Bug 1812 - Drag&drop import of Audio considerably slowed/delayed
Drag&drop import of Audio considerably slowed/delayed
Status: RESOLVED QUICKFIXED
Product: Audacity
Classification: Unclassified
Component: Application Core
2.2.2
Per OS All
: P1 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-01 10:33 UTC by Peter Sampson
Modified: 2018-08-20 11:45 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
1) Open Audacity 2.2.2 01Dec18 build 2) drag and drop audio files to import them 3) note the delay especially with WAV files
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
james.k.crook: 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 2018-01-01 10:33:23 UTC
something has gone wrong, got a lot worse, for import of audio files using drag&drop with#the latest Mac alpha nightly
audacity-macos-nightly-2.2.2-7ec5fd7.dmg - 26.11 MB | version: 2.2.2--01Jan18

1) with both MP3 and MP4(AAC) files I get a 6-7 second delay with
a) 1-2 seconds of a green circle with white plus sign - with a black arrow at 10 o'clock on the circle
b) 5-6 seconds of the spinning beach-ball of death
Only then does the import progress dialog show and the file is imported OK

2) With WAV files it is similar but worse - the delay her is around 41 secods
with step b's spinning beach-ball present for 39 seconds.

And remember my Mac is a fast one with a 256 SSD

These were all 2-3 minute single song files

This is a regression on 2.2.1 (and earlier 2.2.2 alphas) where the imports took place immediately.


Imports via the menu File>Import are not affected by this

Drag&Drop of Note Tracks is not affected - with import taking place immediately.
Comment 1 Peter Sampson 2018-01-01 10:35:28 UTC
Steve confirms that this happens on Linux and wrote by email:

The delay increases with file size. When dropping a 1 hour stereo WAV
file, Audacity freezes while thrashing one CPU core for about 5
minutes, whereas the import would previously take about 5 seconds on
this machine.

Also, drag and drop of MP3 in debug build gives a non-fatal assert:

../src/common/txtstrm.cpp(94): assert "Assert failure" failed in
NextChar(): unexpected decoding result
Comment 3 Peter Sampson 2018-01-02 07:44:33 UTC
(In reply to Paul L from comment #2)
Testing on macOS 10.13.2 High Sierra with  audacity-macos-nightly-2.2.2-e0970ad.dmg - 26.15 MB | version: 2.2.2--02Jan18

Looks to be back to normal with no delays no beach-balls prior to the loading.  Marked as OK on Mac.


With no Windows nightlies I cannot text on W10
Comment 4 James Crook 2018-01-02 07:54:00 UTC
Can we be a bit bolder in marking bugs resolved?

This bug only needed to be tested on one platform.  It has been tested by two people who were not the fixer, so I am marking it:

RESOLVED FIXED.
Comment 5 Peter Sampson 2018-01-02 08:00:58 UTC
(In reply to James Crook from comment #4)
We can be "bolder" - but personally I would ideally prefer to see this working on Windows, as our major platform by far, before marking this resolved.

With a Windows nightly build re-established, this could be realized.
Comment 6 Steve Daulton 2018-01-02 08:12:03 UTC
(In reply to James Crook from comment #4)
Paul initially suggested that the problem could be platform dependent, so in this case I think it was reasonable to wait for confirmation on all platforms.
Comment 7 James Crook 2018-01-02 09:04:32 UTC
Flagged as Must-Test-All-OS and moving back into DEVEL - FIX MADE
Comment 8 Peter Sampson 2018-01-08 06:08:48 UTC
Tested on a 2.2.2 Windows build that Hames made for me 2.2.2 JC002 07Jan18

I confirm this is fine on W10 with no delay before import.

A side issue (also reso9lved - a recent forum post indicated thet we had introduced a slowdown on WAV import for 2.2.0 and 2.2.1 - this appears to be OK again in 2.2.2 alpha:  https://forum.audacityteam.org/viewtopic.php?f=46&t=98363