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]: Crash in WebFrameMain::Connect() -> GetInterface -> GetInterfaceByName #33880
Comments
Some testing results: |
I can see that each time before the crash it seems like a renderer is crashing first and then 2-3s later electron crashes |
Thanks for including the stacktrace! This seems to be occurring when a speculative RenderFrameHost is created upon navigating with Here we prevent emitting the "frame-created" event with speculative render frames. A potential fix would be to prevent calling electron/shell/browser/api/electron_api_web_contents.cc Lines 1525 to 1539 in 6a1748d
To write a reproducible test case, it will have something to do with cross-origin navigation. |
Thanks for the quick investigation, once the pull request is available I will give it a try. |
Hey @t57ser. The PR I created should fix the issue, but I still was never able to reproduce the crash. Did you have any luck in reproducing a minimal case in Electron Fiddle or would you be open to it? Could you maybe describe what happens in your app which leads up to the crash? It seems like you were able to reproduce it reliably. |
I am not 100% sure what causes it, but I can tell what fixed it. |
Preflight Checklist
Electron Version
17, 18
What operating system are you using?
Windows
Operating System Version
Windows 10 19042.985
What arch are you using?
x64
Last Known Working Electron version
14
Expected Behavior
No crash
Actual Behavior
Electron crashes
This does not happen consistently but fairly often and can be reproduced in the app.
I have not been able yet to make a small/standalone reproducable example
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: