Audacity crash on exit

Hi,
Installed Audacity yesterday (2.4.1) on the current Catalina MAC OS.
Since that time, audacity has crashed frequently (at least 6 times), only upon Exiting Audacity.

The initial portion of log file generated by the latest crash is below. This is followed by the “Audacity.xml” DEBUG REPORT.

I am a enduser, and a novice with respect to the software.
Thank you.
reuser

==========
CRASH REPORTS BELOW

==========

Process: Audacity [2596]
Path: /Applications/Audacity.app/Contents/MacOS/Audacity
Identifier: org.audacityteam.audacity
Version: 2.4.1.0 (2.4.1.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Audacity [2596]
User ID: 501

Date/Time: 2020-05-23 01:22:15.633 -0400
OS Version: Mac OS X 10.15.4 (19E287)
Report Version: 12
Anonymous UUID: 53804C62-CACF-E7BF-37B3-98553FC76ABA

Sleep/Wake UUID: F687FD22-CFE2-4148-806E-6838F9CD9F38

Time Awake Since Boot: 31000 seconds
Time Since Wake: 5200 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff7061633a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff706d2e60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff7059d808 abort + 120
3 libwx_baseu_release-3.1.1.0.0.dylib 0x000000010bfbd011 wxFatalSignalHandler(int) + 33
4 libsystem_platform.dylib 0x00007fff706c75fd _sigtramp + 29
5 ??? 000000000000000000 0 + 0
6 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b9bd1fc wxWindowBase::GetClassDefaultAttributes(wxWindowVariant) + 108
7 Audacity 0x0000000109aceab4 wxWindowBase::GetDefaultAttributes() const + 20
8 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b9bd08a wxWindowBase::GetForegroundColour() const + 154
9 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b82b7a3 wxWindow::MacUpdateControlFont() + 67
10 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b82b8da wxWindow::SetFont(wxFont const&) + 26
11 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b824834 wxNonOwnedWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 404
12 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b8281ef wxTopLevelWindowMac::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&) + 47
13 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010b821932 wxDialog::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&) + 98
14 Audacity 0x000000010a374747 wxDialogWrapper::Create(wxWindow*, int, TranslatableString const&, wxPoint const&, wxSize const&, long, TranslatableString const&) + 119
15 Audacity 0x000000010a3724cf ProgressDialog::Create(TranslatableString const&, std::__1::vector<std::__1::vector<TranslatableString, std::__1::allocator >, std::__1::allocator<std::__1::vector<TranslatableString, std::__1::allocator > > > const&, int, TranslatableString const&) + 271
16 Audacity 0x000000010a372003 ProgressDialog::Create(TranslatableString const&, TranslatableString const&, int, TranslatableString const&) + 131
17 Audacity 0x000000010a371e93 ProgressDialog::ProgressDialog(TranslatableString const&, TranslatableString const&, int, TranslatableString const&) + 243
18 Audacity 0x0000000109b74ed8 ProgressDialog& Optional::emplace<TranslatableString, TranslatableString const&>(TranslatableString&&, TranslatableString const&) + 104
19 Audacity 0x0000000109b7594f DirManager::RecursivelyRemove(wxArrayStringEx const&, int, int, int, TranslatableString const&) + 239
20 Audacity 0x0000000109b78ac8 DirManager::CleanDir(wxString const&, wxString const&, wxString const&, TranslatableString const&, int) + 536
21 Audacity 0x0000000109b785c9 DirManager::CleanTempDir() + 233
22 Audacity 0x0000000109b77f80 DirManager::~DirManager() + 864
23 Audacity 0x0000000109b78c4e DirManager::~DirManager() + 14
24 Audacity 0x0000000109d454ff Track::~Track() + 383
25 Audacity 0x0000000109d492a8 TrackList::Clear(bool) + 1704
26 Audacity 0x0000000109d48a30 TrackList::~TrackList() + 48
27 Audacity 0x0000000109b59a38 Clipboard::~Clipboard() + 56
28 libsystem_c.dylib 0x00007fff7057813c __cxa_finalize_ranges + 319
29 libsystem_c.dylib 0x00007fff70578412 exit + 55
30 Audacity 0x0000000109ab2c2b start + 59

===========================================================

Audacity.xml DEBUG REPORT BELOW



\

<?xml version="1.0" encoding="UTF-8"?>

How are you exiting Audacity?

Hi Steve,
Thank you. Just reproduced the crash.

Opened audacity by clicking on the icon in the DOCK (where all the icons are present). Dragged a video recording into the audacity window. This caused the audio to be imported using ffmpeg plugin.
Modified an audio file (chopped of the initial part). Exported it as MP3. The audacity window is active but blank (i.e. no audio file is present).
Minimized the audacity window.
Then gave a right click on the audacity icon present in the lower dock and clicked on “Quit”. The application crashed.

For some reason, trying to ‘Quit’, by right clicking on the icon in the dock is causing this (but not every time).

It does not happen when I exit by using the task bar on top of screen (Audacity > Quit Audacity).

It happens after right clicking on the icon in the dock (especially if an active window is still minimized to the dock).

Possible that my older mac (2014 model), running Catalina, is the cause.

The crash report is enclosed below.

Thank you.
reuser


TODAY’S CRASH REPORT-(Part of it)-1 is ENCLOSED BELOW (apologize that I cannot send the whole report due to word limitation).

Path: /Applications/Audacity.app/Contents/MacOS/Audacity
Identifier: org.audacityteam.audacity
Version: 2.4.1.0 (2.4.1.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Audacity [755]
User ID: 501

Date/Time: 2020-05-23 11:33:15.660 -0400
OS Version: Mac OS X 10.15.4 (19E287)
Report Version: 12
Anonymous UUID: 53804C62-CACF-E7BF-37B3-98553FC76ABA


Time Awake Since Boot: 1300 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff7276e33a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff7282ae60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff726f5808 abort + 120
3 libwx_baseu_release-3.1.1.0.0.dylib 0x000000010e395011 wxFatalSignalHandler(int) + 33
4 libsystem_platform.dylib 0x00007fff7281f5fd _sigtramp + 29
5 ??? 0x0000000000001400 0 + 5120
6 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dd951fc wxWindowBase::GetClassDefaultAttributes(wxWindowVariant) + 108
7 Audacity 0x000000010beafab4 wxWindowBase::GetDefaultAttributes() const + 20
8 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dd9508a wxWindowBase::GetForegroundColour() const + 154
9 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dc037a3 wxWindow::MacUpdateControlFont() + 67
10 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dc038da wxWindow::SetFont(wxFont const&) + 26
11 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dbfc834 wxNonOwnedWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 404
12 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dc001ef wxTopLevelWindowMac::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&) + 47
13 libwx_osx_cocoau_release_core-3.1.1.0.0.dylib 0x000000010dbf9932 wxDialog::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&) + 98
14 Audacity 0x000000010c755747 wxDialogWrapper::Create(wxWindow*, int, TranslatableString const&, wxPoint const&, wxSize const&, long, TranslatableString const&) + 119
15 Audacity 0x000000010c7534cf ProgressDialog::Create(TranslatableString const&, std::__1::vector<std::__1::vector<TranslatableString, std::__1::allocator >, std::__1::allocator<std::__1::vector<TranslatableString, std::__1::allocator > > > const&, int, TranslatableString const&) + 271
16 Audacity 0x000000010c753003 ProgressDialog::Create(TranslatableString const&, TranslatableString const&, int, TranslatableString const&) + 131
17 Audacity 0x000000010c752e93 ProgressDialog::ProgressDialog(TranslatableString const&, TranslatableString const&, int, TranslatableString const&) + 243
18 Audacity 0x000000010bf55ed8 ProgressDialog& Optional::emplace<TranslatableString, TranslatableString const&>(TranslatableString&&, TranslatableString const&) + 104
19 Audacity 0x000000010bf5694f DirManager::RecursivelyRemove(wxArrayStringEx const&, int, int, int, TranslatableString const&) + 239
20 Audacity 0x000000010bf59ac8 DirManager::CleanDir(wxString const&, wxString const&, wxString const&, TranslatableString const&, int) + 536
21 Audacity 0x000000010bf595c9 DirManager::CleanTempDir() + 233
22 Audacity 0x000000010bf58f80 DirManager::~DirManager() + 864
23 Audacity 0x000000010bf59c4e DirManager::~DirManager() + 14
24 Audacity 0x000000010c1264ff Track::~Track() + 383
25 Audacity 0x000000010c12a2a8 TrackList::Clear(bool) + 1704
26 Audacity 0x000000010c129a30 TrackList::~TrackList() + 48
27 Audacity 0x000000010bf3aa38 Clipboard::~Clipboard() + 56
28 libsystem_c.dylib 0x00007fff726d013c __cxa_finalize_ranges + 319
29 libsystem_c.dylib 0x00007fff726d0412 exit + 55
30 Audacity 0x000000010be93c2b start + 59

I can’t reproduce this on my Macbook Pro with 10.15.4 Catalina - testing with both 2.4.1 and the latest alpha test build I have for the upcoming 2.4.2

Peter.