-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
4.0 crashes on shutdown when using BrowserView #15133
Comments
I'm getting this without a BrowserView too. Simply open the unmodified Electron.app from the NPM bundle for 4.0.0-beta.5, and quit it, and it crashes as above. But only on macOS. Or at least I only get a Problem Report pop up on macOS, but maybe I wouldn't notice anything on other platforms. |
Detailed stack trace:
|
The crash happens when we force destroying a WebContents ( |
After further investigation, I think the crash is caused by |
|
The same crash was present in 69 upgrade, and the reason there was the destruction task never ran, https://github.com/electron/electron/blob/master/patches/common/chromium/content_browser_main_loop.patch was added to force that. Maybe it regressed ? |
After adding some logging it looks like the cleanup task now runs after I'm going to try tweaking our destroying strategy of WebContents, we should be able to avoid this situation at all. |
node_modules/.bin/electron --version
: 4.0.0-beta.3node_modules/.bin/electron --version
on last known working Electron version (if applicable): 3.0.3Expected Behavior
Electron shouldn't crash.
Actual behavior
A crash occurs.
To Reproduce
electron-quick-start
, and add the following tomain.js
:Crash report:
The text was updated successfully, but these errors were encountered: