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
Electron main process crashes on exit (version 10.1.3) #26019
Comments
Hi @vyunikov, thanks for reaching out! Researching issues that depend on third-party code is usually not feasible for the Electron team due to the time that would be required to research reported issues with open-ended dependencies. Would it be possible for you to fork electron-quick-start for a small app that reproduces the issue by itself without other code? Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests. I'm adding the |
Hi @ckerr |
One of my users reports the same issue. This is what he got from
|
In my case, the bug starts to occur after updating to Electron 10. As the app crashes when exit, it doesn't log anything in the console (where can I get the stack trace?). But it always shows up in the Windows Reliability Monitor every time I exit the app
Btw, I'm working on an Electron-based app builder so users can create apps with different names (that's why the EXE name is different). But they all use the same code. |
In the case, I managed to resolve bug by |
Thanks @quanglam2807 for pointing our the problem and potential work around for this. |
@ckerr As per the comments above the problem happens when In order to reproduce you can just clone my fork: https://github.com/vyunikov/electron-quick-start.git In order to apply a workaround mentioned by @quanglam2807 you can set a variable |
Just noticed this PR: #25411 |
We're also getting lots of crash reports about this with Electron 10.1.6. 99% are on Windows 7. I can reliably repro on Windows 7 SP1 when closing a window with a browser view attached.
cc @zcbenz |
Here's a viable workaround: browserWindow.on('close', () => {
browserWindow.setBrowserView(null);
}); |
@poiru That happens on Windows 10 either, that's not just Win 7 issue |
Here's a Fiddle-ready repro: https://gist.github.com/1d1190d6c6d971fe7b938d0d12be8071 I can repro on Win 10, but not Mac. |
This appears to be fixed in 11.x, in the range 11.0.0-nightly.20200709...11.0.0-nightly.20200716, likely by #23578. |
Closing as fixed. |
Preflight Checklist
Issue Details
Expected Behavior
Electron app should exit normally
Actual Behavior
My electron-based app crashes on exit
I recently updated from electron 9.2.1 to 10.1.3 and my app started crashing on exit (crashes when I close the main window).
It didn't crash earlier on 9.x. I use my custom native module with electron, so maybe it's related somehow.
Stack trace:
The text was updated successfully, but these errors were encountered: