-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Using contentView.addChildView with a closed WebContentsView results in EXCEPTION_ACCESS_VIOLATION crash #47074
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
Labels
36-x-y
bug 🪲
component/typescript
component/WebContentsView
crash 💥
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/windows
Comments
Thanks for reporting! So this looks like two separate issues:
I've encountered the types issue before, too. |
We hit this crash on Electron 35.2.0 too.
Here is my fix that seems working and solve the problem:
|
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
36-x-y
bug 🪲
component/typescript
component/WebContentsView
crash 💥
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/windows
Preflight Checklist
Electron Version
36.2.0
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 Pro Version 24H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
Electron does not crash but error is thrown.
For typescript types - WebContentsView.webContents property should be optional. When webContents is destroyed the webContents becomes undefined, however WebContentsView does not reflect that.
Actual Behavior
Electron crashes with the following stack:
Testcase Gist URL
https://gist.github.com/nikitakot/96ac070f7d7f835a2fa1f1249b878c9c
Additional Information
No response
The text was updated successfully, but these errors were encountered: