[Bug]: App crashes when unloading webview before it finished rendering since Electron 26.1.0 #40391
Closed
3 tasks done
Labels
26-x-y
27-x-y
28-x-y
bug 🪲
component/webcontents
component/webview
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
27.0.2
What operating system are you using?
Windows
Operating System Version
Windows 10/11
What arch are you using?
x64
Last Known Working Electron version
16.0.0
Expected Behavior
The application should just move on and not crash.
Actual Behavior
The application closes without any error message shown or logged.
Testcase Gist URL
https://github.com/wartab/electron-bug
Additional Information
I previously reported this here, but another customer of ours had this issue happen on a fast PC and I could reproduce it on mine as well.
#40288
I can't reproduce it in Electron Fiddle, but the following repository reproduces the issue.
It attempts to load a webview with inline HTML in the src attribute. That HTML is > 3 MB large with inline images. Electron never manages to render this webview, but when unloading the webview, the app crashes.
Simply removing the webview with removeChild() didn't crash the application, so my minimum reproduction is a bit closer to what we actually do. It is in an Angular application. The reproduction contains the app already built in
dist-angular
.To reproduce:
npm i
Optionally:
ng build --base-href .
npm run-script build-electron
The text was updated successfully, but these errors were encountered: