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

Audacity Bugzilla



Bug 1600 - (Mac) Export Multiple progress dialogs behind the main Export Multiple dialog
(Mac) Export Multiple progress dialogs behind the main Export Multiple dialog
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Formats
2.1.3
Mac macOS
: P3 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-24 16:27 UTC by Bill Wharrie
Modified: 2018-08-20 11:46 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
1 Do an Export Multiple on a project with export selections of a few minutes or more (enough to trigger the progress dialog). Export by labels or tracks does not matter. 2 For each file of the multiple export a progress dialog is put up with the name of the file as the title of the dialog. Once the first file has finished exporting, that dialog is removed and a new one is put up. Unfortunately this second dialog is _behind_ the Export Multiple dialog. Move the Export Multiple dialog out of the way and you can then see the progress dialogs come and go. 3 If you don't see the bug reliably, try turning off "Show Metadata Tags..." in Import / Export Preferences.
Release Note:
GROUP: Exports * (macOS) '''The Export Multiple progress dialogues may be hidden behind the Export Multiple window for each file after the first one.''' Files are still exported normally, and you can move the Export Multiple window to one side to view the subsequent progress dialogues. The confirmation dialogue listing the exported files appears normally on top of Export Multiple after export completes.
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
billwh: Regression+
petersampsonaudacity: Test‑OK‑Mac+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Wharrie 2017-02-24 16:27:00 UTC
For each file of the multiple export a progress dialog is put up with the name of the file as the title of the dialog. Once the first file has finished exporting, that dialog is removed and a new one is put up. Unfortunately this second dialog is _behind_ the Export Multiple dialog.
Comment 1 James Crook 2017-02-24 17:00:27 UTC
Tried:

  pWin->Iconize(false);
  pWin->SetFocus();
  pWin->Raise();
  pWin->Show(true); 

But that didn't work.  Only the first progress dialog is in front :-(
Comment 2 Gale Andrews 2017-02-24 20:46:26 UTC
Regression on 2.1.1. Added Release Note given it's P3.  

Just to say I did have one Forum user report (El Capitan) of this, using Export Multiple by labels, but I had failed to reproduce it reliably on Yosemite, El Capitan or Sierra. About one time in 20, I saw it happen, apparently randomly.  Now I see Bill mentions that he turns off "Show Metadata Tags..." in Import / Export Preferences. That for me makes the issue much more reproducible, but not fully.

The Forum user's experience was different. He said that reliably, the progress dialogue failed to appear only for the export corresponding to where the cursor was, otherwise it appeared. I can't reproduce that.   

I have tried moving or not moving the mouse during Export Multiple but it doesn't affect reproducibility for me.
Comment 3 Cliff Scott 2017-02-24 22:16:02 UTC
Just tested again on Sierra.

Was able to eventually bring the progress dialog to the front with CMD+` (Apple switch task within an app), BUT the Cancel and Stop buttons do not function. Mouse click, Enter, ESC nothing will kill that process. Canceled the large Export dialog, but it did not cancel the export process, just left the "Beach Ball" spinning (By design?). Even CMD+Q would not close Audacity until the export was finished (By design?). Did not try force quit. At least the Cancel-Stop buttons should work on the individual file progress dialogs. Should this should be a separate bug from the hidden progress dialog?
Comment 4 James Crook 2017-02-25 07:13:43 UTC
Hidden progress problem happens 100% reliably for me on El Capitan.
Second and subsequent progress dialogs are behind Audacity window, not just behind the Export-Multiple dialog.
Comment 5 Cliff Scott 2017-02-25 07:56:37 UTC
Noticed the progress window behind Audacity window as well on Sierra.

Also noticed that the apparent reason the Cancel & Stop buttons don't work is that the dialog isn't active, for lack of a better word. In other words it isn't setup to receive input as indicated by neither of the buttons is blue as they are in other dialogs when the dialog can receive input.
Comment 6 James Crook 2017-02-25 10:11:02 UTC
I've also tried adding code that guarantees the progress dialog has the ExportMultiple dialog as its parent (it does not otherwise).  I've also tried disabling the initial transparency.  Neither worked.  I do now get the progress dialog appearing over Audacity and under ExportMultiple dialog (which definitely is its parent) now.
Comment 7 Cliff Scott 2017-02-25 10:20:31 UTC
More playing with Export Multiple. The Stop & Cancel buttons work on the progress dialog for the first file exported. After that it causes a variety of issues. One issue is that Audacity RC2 cannot be closed or quit in some cases of clicking Close or Quit. Also noted that at least in one case there were 2 dialogs going at the same time on different files. The dialogs were on top of each other so only can see this if the top one is drug off the other one. Moral of the story, at this point, don't mess once it is on file number 2.
Comment 8 James Crook 2017-02-25 10:55:51 UTC
Comment#7 chimes with something I've suspected.  Two progress dialogs at the same time are bad news.  That's likely causing a problem with wxWindowDisabler.  Two progress dialogs at the same time probably does not happen with Windows.  Can be checked by adding some more log/debug messages.  However, unless Gale promotes this to P2 in the light of the recent findings, I am unlikely to investigate further for 2.1.3 RC3.
Comment 9 Peter Sampson 2017-02-26 08:19:45 UTC
James wrote in Comment #8
>Comment#7 chimes with something I've suspected.  Two progress dialogs 
>at the same time are bad news. 

In which casew this may be a good opportunity to tidt up the Export Multiple GUI.


I've always thought the the secondary dialog as eah labelled section is exported is inelegant an clumsy.  I would much prefere to see progress indicated on the dialog that intitates the multiple export.  Or on invokeking the exports, slose the setupup dialog and hand over to a progress dialog (as we do with Timer Record).

Apart from any other consideration the text in the mini dialog as we expoert each label defined piece of audio is totally inaccurate as is says:
"Exporting the entire project ..."

a) this is not true with point labels unless the initial label is at T=0

b) and for a project with range labels only the parts of the project with ranges so defined is exported.

We either need a single progrees bar as the mutiple exports proceed or if we continue to advise which label delineated chunk is being deleted we should say which chunk is being deleted (i.e. as defined by the label name)
Comment 10 Peter Sampson 2017-02-26 09:23:01 UTC
(In reply to Peter Sampson from comment #9)
OOPS - export NOT delete ...

>We either need a single progrees bar as the mutiple exports proceed 
>or if we continue to advise which label delineated chunk is being 
>exported we should say which chunk is being exported (i.e. as defined 
>by the label name)
Comment 11 Paul L 2017-11-07 09:14:13 UTC
I looked a bit at this.

I think that this may be a wxWidgets 3 and Mac thing only, involving the interaction of wxWindowDisabler with an existing modal dialog.  It seems you can create and destroy a wxWindowDisabler only once with the correct effects.

If I make no wxWindowDisabler at all in ProgressDialog, then all progress dialogs are hidden.

I think a solution could involve recycling of ProgressDialog objects, so that there is only one object for the duraction of the ExportMultiple, but it can appear and disappear and change its text.

This is more work than I want to do in 2.2.1.
Comment 12 Peter Sampson 2017-11-07 12:50:33 UTC
(In reply to Paul L from comment #11)
>This is more work than I want to do in 2.2.1

Cliff was only flagging up this for attention in 2.1.2 (or wahtever subsequent release is) not 2.2.1
Comment 13 Cliff Scott 2017-11-07 14:38:53 UTC
I'm sure Peter meant to say 2.2.2 or subsequent. IMO, the earlier the better for the Audacity reputation.
Comment 14 Peter Sampson 2018-01-25 06:11:33 UTC
It looks like this bug may be impacting the testing of Bug #1831
See:http://bugzilla.audacityteam.org/show_bug.cgi?id=1831#c5

As it appears that bot only are these progress dialogs "hidden" - when you do make them visible by sliding the Audacity window and the Export Multiple dialog around - then you find that the Stop and Cancel buttons in the progress dialog are not operable.
Comment 15 Paul L 2018-01-25 16:01:30 UTC
Try this out:

https://github.com/audacity/audacity/commit/d4b21bb33e54ef7b568dd165040adb4dcbb1bbb8

Be sure nothing goes wrong on Windows either.
Comment 16 Peter Sampson 2018-01-26 05:17:43 UTC
(In reply to Paul L from comment #15)
Testing on macOS 10.13.2 High Sierra with  audacity-macos-nightly-2.2.2-60ea8a6.dmg - 27.48 MB | version: 2.2.2--26Jan18

This now works correctly with all the progress dialogs top-showing and no longer hidden behind the main Export Multiple dialog 


And this fix does indeed facilitate testing of Bug #1831