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

Audacity Bugzilla



Bug 964 - Windows 7: Support data generated if quitting using task manager when "About Audacity" is open.
Windows 7: Support data generated if quitting using task manager when "About ...
Status: CLOSED WONTFIX
Product: Audacity
Classification: Unclassified
Component: User Interface
2.1.1
Per OS Windows 7
: P5 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-21 18:30 UTC by Gale Andrews
Modified: 2019-06-10 06:08 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
Windows 7 crash - (In Windows 10, Task Manager seems to force-quit applications): a1 Launch Audacity. a2 Add some audio. a3 Help > About Audacity... a4 End Task for Audacity from the Applications tab of Task Manager. Choose "Cancel" in the Windows dialog. Choose either Yes or No to "Save Changes?". Support Data is generated. If you chose to save Project then the project is saved correctly. Mac: Worked around, no longer reproducible, but per comment 2, Leland requested leaving the steps here so we can rework/simplify the quit process on Mac sometime: b1 Launch Audacity. b2 Audacity > About Audacity... b3 Right-click Audacity's icon in the Dock > Quit. Support Data is generated.
Release Note:
GROUP: Interface * Crashes on force quit: ** (Windows 7) '''Audacity crashes after quit if quit from the Task Manager and "About Audacity" is open.''' If you save changes to a project, these changes are saved correctly.
First Git SHA:
Group: ---
Workaround:
Closed: 2019-06-10 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2015-05-21 18:30:10 UTC
2.0.0 and 2.1.0 also crash on Mac and Linux so a long standing issue.

Also crashes on Mac if audio is added before quit but for Mac that step is not needed to provoke the crash. 

On Windows, right-click > Close window over the Audacity icon in the Taskbar does not quit or prompt for changes when About Audacity is open. This appears to be usual behaviour on Windows when the app has a modal window open.
Comment 1 Leland Lucius 2015-09-02 13:34:58 UTC
I think you are correct about associating this and 1174.  What I was finding last night was that if the Nyquist Workbench window is left open and then you "COMMAND+Q", Audacity would crash during shutdown.

All of these may possibly be related.
Comment 2 Leland Lucius 2015-09-04 01:59:55 UTC
I see what's going on and can probably come up with a simple "workaround".  It has to do with the wxEVT_QUERY_END_SESSION and wxEVT_END_SESSION events being used instead of the normal wxEVT_CLOSE_WINDOW.  It's supposed to do that in these instances, but we haven't handled it properly.

But, I'd like to leave the ticket open since the whole application quit process needs to be reworked.  It has gotten unnecessarily complicated over the years.
Comment 4 Gale Andrews 2016-08-23 20:58:24 UTC
As Leland pointed out in Comment 2, the crashes on Mac with About Audacity open have been worked around, but steps to reproduce have been retained as he requested.

So this is currently a Windows-only bug. Title changed from "Crash on Quit with "About Audacity" open (changes are saved OK before the crash)" to "Windows: "About Audacity" causes safe crash on quit, or prevents quit". Steps to reproduce and release note updated.
Comment 5 James Crook 2018-09-21 04:25:03 UTC
*** STEPS UPDATED ***

This is a Windows 7 AND Windows 10 problem, so title updated.
Comment 6 Peter Sampson 2018-09-21 04:37:29 UTC
I'm failing to see the problem here.

With 2.3.0 RC2 
1) Run Audcity
2) get some Audio
3) invoke Help > About Audacity
4) launch Windows Task manger
5) select Audacity and use the "End Task" button
6) Audacity aborts (as intended) - 
7) I get no "Save Project" dialog 
8) relaunch Audacity
9) automatic recovery is offered an works fine

I think this is expected behavior - using task Manager to "close" Audacity is an unusual and not recommended way of closing a project - it's an "abort" (it's not a recommended way to gracefully close ANY app).


And on 2.3.0 RC2 on Mac, Force Quit is also an "abort" and the similar steps produce the same resukt.
Comment 7 David Bailes 2018-09-21 07:14:43 UTC
(In reply to Peter Sampson from comment #6)
> I'm failing to see the problem here.

In steps to reproduce, the section:
Windows 7 crash - (In Windows 10, Task Manager seems to force quit applications):

this only applies to Windows 7, and I can reproduce this with 2.3.0 RC2.
But how many people are going to do this? Doesn't seem very important to me.

the section:
Windows 7 or 10 About Audacity prevents quit from Task Bar icon:

I think this is normal behaviour, and so not a bug.

> 
> With 2.3.0 RC2 
> 1) Run Audcity
> 2) get some Audio
> 3) invoke Help > About Audacity
> 4) launch Windows Task manger
> 5) select Audacity and use the "End Task" button
> 6) Audacity aborts (as intended) - 
> 7) I get no "Save Project" dialog 
> 8) relaunch Audacity
> 9) automatic recovery is offered an works fine
> 
> I think this is expected behavior - using task Manager to "close" Audacity
> is an unusual and not recommended way of closing a project - it's an "abort"
> (it's not a recommended way to gracefully close ANY app).
> 
> 
> And on 2.3.0 RC2 on Mac, Force Quit is also an "abort" and the similar steps
> produce the same resukt.
Comment 8 Peter Sampson 2018-09-21 09:12:35 UTC
There are many other things that prevent W10 from closing an Audacity Window from the Task bar, the File>Close menu - or the closes obtainable by clicking on the top left Audacity icon or the top right "X":

a) open EGA dialogs
b) open error message dialogs
c) open Nyquist dialog
d) Open Preferences dialogs
e) Edit>Metadata dialog open
f) etc.

These are normal and expected behaviors - if one insiste on closing in that state one either has to close the dialog and then close audacity - or adopt the sledgehammer abort from Task Manager - which exits safely enough, offering to restore the project on restart.

I agree with David that as the actual "bug" logged here is restricted to W7 - so I shall leave this bug open but reduce its priority to P5.
Comment 9 James Crook 2018-09-21 09:25:48 UTC
*** STEPS UPDATED ***

Removed steps involving not closing Audacity from task bar (when a dialog such as About Audacity is open).  Testing on other apps shows that this is common behaviour.
Comment 10 Peter Sampson 2019-05-27 09:27:40 UTC
I can no longer test this as I have W10 (and XP) but not W7.

This problem will disappear in early 2010 when Microsoft make W7 End-Of-Life
Comment 11 Peter Sampson 2019-05-30 09:38:13 UTC
Nyquist Workbench has been declared obsolete for Audacity 2.3.3 onwards.

there is a Proposal for a replacement: https://wiki.audacityteam.org/wiki/Proposal_Nyquist_IDE
>Proposal Nyquist IDE
Comment 12 Peter Sampson 2019-06-08 11:17:28 UTC
Correction

This problem will disappear in early 2020 when Microsoft make W7 End-Of-Life
Comment 13 Peter Sampson 2019-06-10 06:07:57 UTC
a) this is W7 which becomes End-Of-Life in early 2020
b) using force quit is not the "usual way" of closing Audacity - especially when "About Audacity" is open
c)it looks like a Microsoft W7 problem and not an Audacity one

No one will fix this in the remaining few months of W7 (9it hasn't been touched for 4 years now)