-
Notifications
You must be signed in to change notification settings - Fork 51
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
WebView2 crashes after downloading anything #1723
Comments
@frank-liu-toronto same for my youtube.com just goes black and then crashes 7-zip ^^^ for all above it crashes |
@champnic major bug when downloading stuff |
Thanks for the bug report! I've added it to our backlog and we'll take a look right away. @jarno9981 Are you also seeing this on the latest 1.0.961.33 nuget package? |
@champnic yes the latest release from the nuget As you metioned 1.0.961.33 I have edge beta and normal edge but no change .net framework 4.8 winforms |
@champnic Win32 is affected as well: (#1712 (comment)). This bug doesn't appear in Canary channel (95.0.1010.0). |
@champnic, Can we have any release date for the fix or can you please give an approximate date for this fix, since we are going for release after this fix on webview2 |
The fix is getting checked in today, and will be flowing to the channels shortly afterwards. |
The fix is now available in Canary 96.0.1023.0. Can you verify that this fixes the issue for you? |
@vickiez we are using Microsoft.Web.WebView2 version 1.0.961.33, Can you please confirm, when are we getting the above mentioned updated |
@Deepanghoshs latest pre-release 1.0.1018-prerelease works fine now with edge & edge beta it will not crash anymore for my then |
@jarno9981 I have updated to the pre-release 1.0.1018-prerelease in the sample project and our releasing project. But both showing the same error as previously shown. I am afraid the latest fix did not worked for my workflow. I have attached the sample project in Ticket with Sample Project |
Will the fix for this issue just require updating the WebView2 runtime? We are currently using version 93.0.961.52 of the runtime, will it be in the next version whenever that is released? |
Just FYI I tested using the Canary Edge version and our issue is resolved in that |
Thanks for testing - yes, the fix will come with a Runtime update soon |
I am trying to test the sample mentioned by @frank-liu-toronto. My Environment Details But still getting the crashing error. Can you provide link to download the patch containing the fix |
@Deepanghoshs You can have your app pickup the Dev runtime using these instructions: Thanks! |
Why is this fix not being actively pushed to the stable channel? In my opinion this is a serious bug and needs to be addressed as soon as possible, we cannot afford to wait until canary propagates to dev, beta and then stable. |
@fvanheeswijk The fix was pushed to stable and should be available in versions 94.0.992.29+ (in the current stable). Are you still seeing this issue in runtimes newer than this? |
Yes, it is still crashing the same for us, we are running the 94.0.992.31 stable build. |
@fvanheeswijk for me its oke it works not crash anymore |
Sorry, even with Canary 96.0.1043.0, I still get exceptions: after opening 2 new-windows with download, the original window crashes on resize. SDK: 1.0.1018-prerelease Exception:
|
@kolozsaron and others: I've reopened this issue and the linked bug. We're going to take another look. Thanks for verifying that the issue (or a very similar one) persists and for the repro steps/app! |
For us now one download in a WebView2 form works, but in a second form the original issue reproduces again... We'll try to see if we can reproduce it outside our application. |
So we have finally managed to reproduce the (new) download bug, we have the following source code:
When you keep repeating the following steps after opening the application it will eventually crash (between two and five repetitions necessary usually):
The message box shown is as follows for me: @champnic Could you please take another look at this issue? This is the only big issue remaining that is preventing our application from going into production. I tested this for 1.0.961.33 through 1.0.1018-prerelease and it reproduces on all versions, the runtime I'm using is 94.0.992.50. |
@fvanheeswijk We are currently looking into this. Thanks for the repro steps! @vickiez FYI |
We recently put in another fix in runtimes 97.0.1060.0+. Would you be able to test the latest Canary build and see if you are still seeing the issue? |
Hi, I had same problem with WPF and 97.0.1060.0 fix it. Thank you!!! When this version rollout in production? |
By default this will be in the 97 release, sometime around the beginning of January. I realize this is a long time, so we'll see about getting it backported to 96 and shipped in mid-November. Thanks! |
@champnic Unfortunately this issue is still not fixed for us, it still reproduces with the test project listed on #1723 (comment). I tested it with the latest Microsoft.WebView2 version 1.0.1056-prerelease together with Canary build 97.0.1060.0. |
Hi @fvanheeswijk , do you have a crash dump you can share? We have not been able to repro with the test project you provided. |
@vickiez Thank you for checking again, it should still reproduce. However I think I have found the issue! It only seems to reproduce when you do not close the Downloads popup in the right top before closing the form. |
Maybe i'm wrong but it seems to be related to "view" management as @fvanheeswijk wrote for this download popup. I've reported the same issue elsewhere (i did not notice this one) #1777 . In this reported issue, the developer encounters issue by using devtools, the stack trace seems to be the same. @vickiez I provided a crash dump #1777 (comment) . |
@fvanheeswijk @r-cass thanks for the info! Just to double check, do you get the same dump as the one in #1777 with the latest Canary? We made a change to how the popup is closed that resolved this kind of crash for others |
@vickiez It still reproduces for us with NuGet package 1.0.1056-prerelease and user agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4691.0 Safari/537.36 Edg/97.0.1071.0 (so we should be in the prerelease mode). However we didn't realize that crashdumps are being written automatically, this is the crashdump we got: ec89732c-e4c9-44cb-a442-d8b1a0468cce.zip It looks like an access violation has occurred within the browser process. |
SDK: 1.0.1056-prerelease |
Thanks everyone for verifying! I'm going to close this issue as fixed, but if you do run into a downloads related crash again, please include stack, crash dump (if available), and what runtime you are using and we'll take a look. Thanks! |
Thank you! With the latest Canary 98.0.1084.0 it seems to be fixed indeed (haven't tested other 98.0.x builds). Can this fix be applied on the current stable release as well? |
Description
WebView2 crashes after downloading anything
Version
SDK: 1.0.961.33
Runtime: Stable Channel, Version 93.0.961.38 (Offcial Build) (64-bit)
Framework: WinForms with .net framework 4.8 (I also tried .net framework 4.6.2)
OS: Windows 10
Repro Steps
System.InvalidOperationException
HResult=0x80131509
Message=CoreWebView2 members cannot be accessed after the WebView2 control is disposed.
Source=Microsoft.Web.WebView2.Core
StackTrace:
at Microsoft.Web.WebView2.Core.CoreWebView2Controller.MoveFocus(CoreWebView2MoveFocusReason reason)
at Microsoft.Web.WebView2.WinForms.WebView2.OnGotFocus(EventArgs e)
at System.Windows.Forms.Control.InvokeGotFocus(Control toInvoke, EventArgs e)
at System.Windows.Forms.Control.WmSetFocus(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Microsoft.Web.WebView2.WinForms.WebView2.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Inner Exception 1:
COMException: The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
Screenshots
![image](https://user-images.githubusercontent.com/20232640/132706180-7098bf66-46a4-4eca-8780-7b04457a7059.png)
Additional context
AB#35907166
The text was updated successfully, but these errors were encountered: