Skip to content

OSX processes fail to shut down on close #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yoDon opened this issue Nov 26, 2017 · 3 comments
Closed

OSX processes fail to shut down on close #68

yoDon opened this issue Nov 26, 2017 · 3 comments
Assignees
Labels

Comments

@yoDon
Copy link
Contributor

yoDon commented Nov 26, 2017

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
Copy link

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
Copy link
Member

@yoDon do you try out the newest version of API and CLI (0.0.9)?

@netpoetica
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants