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

Audacity Bugzilla



Bug 44 - Modal block circumventable using taskbar and shortcuts, leading to crash risk
Modal block circumventable using taskbar and shortcuts, leading to crash risk
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Application Core
1.3.14 alpha
PC Windows (all)
: P3 Repeatable
Assigned To: Default Assignee for New Bugs
http://n2.nabble.com/Method-to-circum...
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-28 12:40 UTC by James Crook
Modified: 2018-08-20 11:46 UTC (History)
4 users (show)

See Also:
Steps To Reproduce:
1) Start Audacity 2) Generate a 20 minute tone...length doesn't really matter, just needs to be long to give you time to work 3) Export it...format doesn't matter 4) Get into Preferences -> Keyboard 5) Assign a shortcut to "Import Audio..." 6) Click Ok to get out of Preferences 7) Close Audacity 8) Start Audacity 9) Select File -> New to create another project window (you should have 2 now) Here's where you need to be a little quick... 10) Start importing the file you saved above into one of the projects 11) Go the the taskbar and click the other project window 12) Press the shortcut you assigned above 13) Now select a different or the same file to import and click Open You should now have two imports going at once. You can do the same thing with Export. You can actually do it with any function where you can assign a key combination.
Release Note:
GROUP: Interface * (Windows) It is currently possible to perform simultaneous imports or exports by using Taskbar buttons to switch project windows then use shortcuts. Audacity is not yet capable of running these simultaneous operations safely, so attempting this may crash your project.
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Crook 2010-01-28 12:40:20 UTC
See URL.
Comment 1 James Crook 2010-02-12 10:45:08 UTC
To clarify:  

The steps give you a way to get two imports going at the same time, which should not be allowed.  This is possible on mac (using file > New) and on Windows (using shortcut keys and being quick).

This applies not just to imports, but to any command that can be bound to a key.

Leland points out "Even though we block input events to Windows, we're actually processing the keystrokes at the app level and not the window level."
Comment 2 Gale Andrews 2011-04-03 17:32:18 UTC
From http://bugzilla.audacityteam.org/show_bug.cgi?id=334#c36
> I'm not entirely certain multiple non-OD imports every really worked
> right...well, not on the Mac at least.  If you got 2 going together, Audacity
> would seem to hang until both of them were complete.
When I have tried it on Windows I always have to force quit - the freeze seems to last much longer than you would expect the imports to take.    

>> So we're happy that five OD imports at the same time in different projects is
>> OK (because threadsafe?) How about one OD import and one copy-in import
>> (toggle the pref in the new warning before the second import)? Seems to be
>>  OK but I did not wait for it to finish...
> That's a really good question and one I just don't know how to answer, or
> rather, it makes my head hurt trying to figure out the correct answer.  :-)
It occurred to me that a new user could do just that, investigating the speed and display (for 30 seconds + files) differences between the two different import types.
Comment 3 Gale Andrews 2011-04-03 17:40:23 UTC
There is a patch by Leland at http://bugzilla.audacityteam.org/show_bug.cgi?id=334#c33 to fix Windows users being able to do multiple copy-in imports by taskbar button click and shortcut. At the moment it's thought that patch fixes all other issues in the steps to repro and current bug title.  

"OD followed by copy-in import" being considered.
Comment 4 Gale Andrews 2011-05-15 15:26:46 UTC
(In reply to comment #3)
> There is a patch by Leland at
> http://bugzilla.audacityteam.org/show_bug.cgi?id=334#c33 to fix Windows users
> being able to do multiple copy-in imports by taskbar button click and shortcut.
A refreshed copy is now at:
http://bugzilla.audacityteam.org/show_bug.cgi?id=334#c38

At the moment it's thought that patch and others already committed in bug 334 fixes all issues in this bug, *IF* it's thought safe to start a copy-in import while an OD import is in progress...
Comment 5 Vaughan Johnson 2012-02-13 17:43:53 UTC
(In reply to comment #4)

Applied the patch.
Comment 6 Gale Andrews 2012-02-15 13:54:19 UTC
Tested the steps to reproduce on Windows 7 and it seems to be fine. You cannot use shortcuts for any actions in the second project while importing in the first.  

Tested simultaneous imports of hour-long WAV files on Windows 7 and Ubuntu. I tested by running all imports on-demand, then one or more on-demand followed by a copy-in import. I saw no freeze issue when all imports were on-demand; when the copy-in import starts, OD imports seem to be paused but resume after copy-in completes. 

If there is an issue with multiple OD imports on Mac, please test and start a new bug.