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
[Bug]: BrowserWindow.removeBrowserView will crash the app if the browserView is destroyed #37642
Comments
Hello @guoqikai. Thanks for reporting this and helping to make Electron better! Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use. 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. Now adding the |
@codebytere do you mean you can't open the link I provided or the code itself cannot be loaded? I've fixed the link if you meant the later one |
Currently also struggling with this issue, although I'm trying to close my window and therefore quit the app, when the view is destroyed. I'm suspecting this might have the same root cause. |
Fiddle gist for the original issue: https://gist.github.com/oold/87e07c1ac296bff2c01ac03d702fa2a6 |
It needs to be loadable by pasting the link here: That means you need to export your code from the Electron Fiddle app. |
you can try remove the browserview first, and then destory the webcontents with a private method which not documentd |
#37642 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
#37642 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
#37642 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
… `webContents` (electron#38842) fix: crash calling removeBrowserView() with destroyed webContents electron#37642
Preflight Checklist
Electron Version
23.1.4
What operating system are you using?
macOS
Operating System Version
13.0
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
BrowserWindow.removeBrowserView should remove the browserView regardless of whether browserView is destroyed or not.
Actual Behavior
The app will exit with code SIGSEGV.
Testcase Gist URL
Additional Information
No response
The text was updated successfully, but these errors were encountered: