Bugzilla – Bug 1677
Swap two tracks and escape leads to crash on exit.
Last modified: 2018-08-20 11:45:46 UTC
After swapping two tracks and undoing, and then exiting, Audacity crashes. The crash is in code attempting to clean up temporary files, when the code tries to put up a message about that. It looks as if wxTheApp has already been torn down, and so using wxTheApp->GetTopWindow() as a parent for the progress dialog is not possible, hence the crash.
*** STEPS UPDATED *** Undo isn't required.
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/9ab40113b78b48160f037057bb024cef665965be
*** STEPS UPDATED *** TrackSelectHandle::Release() may not be called if ESC is pressed before releasing the mouse, leading back to the original crash. Steps updated (and priority reduced to P2) to reflect this.
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/d903845a6b4fc30ff135f3d8bb28bdeb472eedbe
(In reply to James Crook from comment #4) Tested on W10-CE audacity-win-ra9a6f01-2.2.0-alpha-18-jul-17 Tested the Steps to reproce - no crash after step 5 Repeated the test with several tracks moving them up and down aborting with ESC- no crashes. Looks to be fixed on Windows
(In reply to James Crook from comment #4) Tested on macOS Sierra 10.12.5 Cliff's build 19-jul-17 Tested the Steps to reproduce - no crash after step 5 Repeated the test with several tracks moving them up and down aborting with ESC- no crashes. Looks to be fixed on Mac