MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WinAppSDK: Webview2 crash when console message event raises at N times

Open
#3,807 3 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Sep 21, 2023.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Originally opened by @khoabui1412 here: https://github.com/microsoft/microsoft-ui-xaml/issues/8421

Repro Steps
Register an event:

CoreWebView2.GetDevToolsProtocolEventReceiver("Runtime.consoleAPICalled").DevToolsProtocolEventReceived += CoreWebView2_consoleAPICalled;
CoreWebView2.CallDevToolsProtocolMethodAsync("Runtime.enable", "{}");

when CoreWebView2_consoleAPICalled is received at N times, webview is crashed with "Access violation":
image

NuGet package version
WinUI 3 - Windows App SDK 1.2.5: 1.2.230313.1

Windows version
Windows 11 (22H2): Build 22621

AB#46242775

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.