CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
383 stars 89 forks source link

WebView Crash - Winforms, Kit 5.1.1 VS2019, #200

Open ghost opened 4 years ago

ghost commented 4 years ago

WebView in a standard Winform, with nothing else present, navigates perfectly to "https://twitter.com/login". So pretty.

After successful login, twitter page loads well, and immediately upon fully loaded, twitter HTML throws a modal that crashes WebView. Full Stop.

A clear and concise description of what the bug is.

Toolkit 5.1.1 is the first time I've seen this and have not tried earlier versions.

Steps to reproduce the behavior:

  1. Make new winform
  2. Add WebView control to form.
  3. Navigate to "https://twitter.com/login"
  4. Login with valid twitter account - (notice: some logins with trigger modal, some not. The modal is a 'verify identity' scheme.)
  5. Form continues but WebView 'disappears' - form seems to keep running. Debugger indicates WebView crashed.

Expected behavior

I expected the WebView to not crash. lol.

Environment


NuGet Package(s): 
Microsoft.Toolkit.Forms.UI.Controls.Web.WebView

Package Version(s): 
5.1.1

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [X ] May 2019 Update (18362)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [X ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [X ] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [X ] 2019 (version: ) 
- [ ] 2019 Preview (version: )
ghost commented 4 years ago

This issue has been marked as "Needs: Attention 👋" due to no activity for 7 days. Please triage the issue so the fix can be established.

ghost commented 4 years ago

This issue has been marked as "Needs: Attention 👋" due to no activity for 7 days. Please triage the issue so the fix can be established.

ghost commented 4 years ago

This issue has been marked as "Needs: Attention 👋" due to no activity for 7 days. Please triage the issue so the fix can be established.

SBMasatoKato commented 4 years ago

I got the same crash under me.

It occurs not only on twitter.com but also on youtube.com.

Thread 0x4b5c ended with code 0 (0x0). Exception thrown at 0x76C04402 (in EdgeBrowserTestApp.exe): Microsoft C++ exception: EETypeLoadException (memory location 0x00EFB198). onecoreuap\inetcore\edgemanager\webview\webviewcontrol\win32webviewhostprocess.cpp(439)\EdgeManager.dll! 79CC8947: (caller: 79CC84EA) ReturnHr (5) tid (487c) 8007042B The process was killed midway. onecoreuap\inetcore\edgemanager\webview\webviewcontrol\win32webviewhostprocess.cpp(362)\EdgeManager.dll! 79CC84DD: (caller: 0A551415) ReturnHr (6) tid (487c) 8007042B The process was killed midway.