mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
OSX processes fail to shut down on close #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yoDon on GitHub (Nov 26, 2017).
Originally assigned to: @robertmuehsig, @GregorBiswanger on GitHub.
In both dev and packaged builds, closing the macOS application window kills the Host process but leaves the inner application process running as a high-cpu-consuming zombie that needs to be manually killed via the Activity Monitor.
@BrianAllred commented on GitHub (Nov 28, 2017):
This can happen if you use invisible windows (for background processes) and don't close them out or an error occurs before they close. I was experiencing the same thing on Windows until I added a try-catch-finally where the finally called the close all windows method.
Might try that and see if it helps.
@GregorBiswanger commented on GitHub (Feb 25, 2018):
@yoDon do you try out the newest version of API and CLI (0.0.9)?
@netpoetica commented on GitHub (Jun 3, 2019):
Two things: 1) I am still seeing this issue on Mac OSX for sure. Electron window will close, but background process remains relentlessly. And 2) I do not see a CloseAllWindows method anywhere - is there one? I have confirmed in the WillQuit event that there is only 1 window in my application, yet when closed, background process remains.
Additionally, the .Quit() function says "It is possible that a window cancels the quitting by returning false in the beforeunload event handler." however, there is no BeforeUnload event handler on Electron.App. Is there supposed to be?