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

Audacity Bugzilla



Bug 2456 - audacity 2.3.3 config with Spectral Selection toolbar corrupts lower dock in 2.4.x and can crash
audacity 2.3.3 config with Spectral Selection toolbar corrupts lower dock in ...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.4.2
Per OS All
: P2 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-27 11:46 UTC by Peter Sampson
Modified: 2020-05-30 09:37 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
1) Down the attached 2.3.3 audacity.cfg file 2) clear the audacity settings folder 3) copy the 2.3.3 audacity.cfg into the audacity settings folder 4) Launch 2.3.3 5) Observe all is well with the toolbars in the bottom dock (no-default Spectral Selection is "on") 6) close 2.3.3 7) launch 2.4.1 (or 2.4.2) 8) Observe: in the bottom tooldock the Spectral Selection toolbar overlays the Selection toolbar (see second attachment) 9) View >Toolbars 10) turn off the Spectral Selection toolbar 11) Observe Audacity crashes
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2020-05-30 00:00:00
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+
stevethefiddle: Test‑OK‑Lin+


Attachments
2.3.3 audacity.cfg file (13.49 KB, text/plain)
2020-05-27 11:46 UTC, Peter Sampson
Details
corrupted lower tooldock (40.08 KB, image/png)
2020-05-27 11:51 UTC, Peter Sampson
Details
Toolbars after fix (521.39 KB, image/png)
2020-05-29 09:38 UTC, Leland Lucius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2020-05-27 11:46:29 UTC
Created attachment 979 [details]
2.3.3 audacity.cfg file

This was reported by a user on the Forum.

They supplied the carefully worked configuration file they had been using on 2.3.3 (first attachment).  When they upgraded to 2.4.1 without a reset they observed that the bottom tooldock toolbars were corrupted with the Spectral Selection toolbar overlaying the Selection toolbar.

If you use View toolbars to turn off Selection toolbar at Step 10 then both the Selection Toolbar and the Spectral Selection toolbar disappear.

If at Step 10 you turn off the Spectral Selection toolbar the Audacity crashes.


If at Step 10 you use Reset Tollbars and then turn on Spectral Selection toolbar all seems to be well.


This is not really a regression as prior to 2.4.x we had an integrated Selection toolbar with audio position.  Now we have the truncated Selection toolbar and the new Time toolbar.

This is an "upgraders" issue.
Comment 1 Peter Sampson 2020-05-27 11:51:45 UTC
Created attachment 980 [details]
corrupted lower tooldock
Comment 2 Leland Lucius 2020-05-29 01:39:29 UTC
Actually, there's nothing real special about the cfg.  It's pretty easy to create:

1) Delete existing audacity.cfg
2) Start 2.3.3
3) Show Spectral Selection toolbar
4) Quit Audacity

Now, if you start 2.4.x it will crash as soon as you try to hide the Spectral Selection toolbar (plus you get the corruption).

I've yet to figure out why though.
Comment 3 Leland Lucius 2020-05-29 03:07:52 UTC
Fix in:

https://github.com/audacity/audacity/commit/1b5370b

https://github.com/audacity/audacity/actions/runs/118734016

One thing you'll notice is that if the user had the Spectral Selection toolbar visible in 2.3.3 and the start 2.4.0, then the new Time toolbar will be shown below the Selection toolbar.  If desired, the user can move Time toolbar to the right of the Spectral Selection toolbar.

Otherwise, the new Time toolbar will be shown to the right of the Selection toolbar.

I think this is an acceptable compromise.
Comment 4 Peter Sampson 2020-05-29 07:44:35 UTC
(In reply to Leland Lucius from comment #3)
Testing on W10 with Audacity 2.4.2 ef98e5d

using Leland's simplified steps from Comment #2 (and thanks for that clarification and simplification os steps to reproduce Leland).

Sadly I still get:

a) the Spectral Selection Toolbar overlaying and corrupting the Selection toolbar

b) the crash when I try to hide the Spectral Selection toolbar.

So reopening this one
Comment 5 Peter Sampson 2020-05-29 07:56:11 UTC
(In reply to Leland Lucius from comment #3)
Testing on macOS 10.15.5 with Audacity 2.4.2 ef98e5d

I get the same corruption of the bottom tooldock and the same crash.

But the crash is worse on Mac as it sends me into a spinning beach-ball-of-death from which I can't even force quit - I have to reboot the Mac !
Comment 6 Leland Lucius 2020-05-29 09:38:41 UTC
Created attachment 985 [details]
Toolbars after fix

That's odd.  I've attached what I get after doing:

1) Delete existing audacity.cfg
2) Start 2.3.3
3) Show Spectral Selection toolbar
4) Quit Audacity
5) Start latest Github Action artifact
Comment 7 Cliff Scott 2020-05-29 10:33:33 UTC
Building on MacOS Mojave Commit 5bede6 all seems well. 

Started from a fresh Audacity config directory. Ran 2.3.3 and added the Spectral Selection Toolbar. Exited from 2.3.3

Started the above build and I got exactly what Leland's attachment showed. Moved the Time tool bar to after the Spectral selection toolbar and all looked just fine. Hid the Spectral Selection toolbar and all was normal. Brought it back up and it just added to the end of the toolbars. No corruption or crashes.
Comment 8 Peter Sampson 2020-05-29 11:07:04 UTC
(In reply to Cliff Scott from comment #7)
Testing again now with Leland's latest alpha Audacity 2.4.2 5bede69 on macOS 10.15.5  and on W10

this now works properly for me too.


I would like to be sure this works properly on Linux too before closing this bug
Comment 9 Steve Daulton 2020-05-30 09:37:08 UTC
Works for me on Linux.