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]: webview crashes #38238
Comments
Attached a Gist to reproduce. And also a gif: |
Thanks for the detailed bug report, all of the information and the repro is very appreciated! We'll bring this in front of our Releases WG and have someone take a look for you. |
I went back a few versions of Electron trying to understand where these crashes were introduced, and the last working version seems to be Looking at the changes made in 16.1.1, I think the most likely culprit is this change: #33207 as this issue doesn't happen in < 16, so we can eliminate anything that was backported and given the behaviour it seems like it could be related to process reuse. Since the option to disable process reuse was removed in version 14, I'm having a hard time trying to find a way to work around it. Any tips would be appreciated. @deepak1556, would you have any feedback on this? |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Bump! Still need help on this |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
Preflight Checklist
Electron Version
22.3.8
What operating system are you using?
Windows
Operating System Version
Windows 10.0.19044
What arch are you using?
x64
Last Known Working Electron version
16.1.0
Expected Behavior
An active webview should not crash when another webview is destroyed.
Actual Behavior
With a large number of active webviews (~80 webviews), when one webview is closed/destroyed, another active webview is crashing unexpectedly.
Testcase Gist URL
https://gist.github.com/dtychshenko/d2b07e47988504a7b81865faaa09863c
Additional Information
We have an application that is visually similar to a Chrome browser. We have a renderer window that hosts and controls multiple tabs and each tab is a webview element that loads a web app. When we have about 10 windows open with 1-10 tabs within each window (a total of about 80 webviews across the multiple windows), everything starts up and run fine; however, as soon as one tab (webview) or window is closed, it causes a random tab in another random window to crash.
The crash always happens with exit code
134
or-1073741819
at about 50/50 split rate.The crash seems to be happening within v8 according to the crash dump with the following error:
Here is the stack trace:
This issue was not happening with Electron version
14.2.9
; however, due to a race condition issue in this version (fixed in #32734) we had to upgrade to Electron16.2.6
and started seeing the webview crashes.We then tried to upgrade to
22.3.8
and the crashes are still happening. Here is a crash dump using version 22.3.8: 6c86d02f-8f69-4414-87c6-6c93c8bf35e7.zipWould appreciate any help or pointers for what could possibly be prompting these crashes or where to look. Thanks!
The text was updated successfully, but these errors were encountered: