Skip to content

[Problem/Bug]: WebView process ends unexpectedly on calls to getUserMedia #5378

@avendel

Description

@avendel

What happened?

When calling navigator.mediaDevices.getUserMedia({ audio: true }), the WebView process ends unexpectedly.

The view is cleared, any development tools windows are closed and the CoreWebView2_ProcessFailed event is raised with Reason Unexpected and ExitCode -1073741819.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

142.0.3577.0

SDK Version

1.0.3485.44

Framework

Winforms

Operating System

Windows 11

OS Version

10.0.26100

Repro steps

Open a document with the following content, and click the button.

<html>
  <body>
    <button onclick="navigator.mediaDevices.getUserMedia({ audio: true })">getUserMedia</button>
  </body>
</html>

Alternatively, execute navigator.mediaDevices.getUserMedia({ audio: true }) from the development javascript console

To use the impacted Edge version (until released to the stable channel):

  1. Download Edge Canary
  2. Set environment variable WEBVIEW2_RELEASE_CHANNEL_PREFERENCE to 1.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

Runtime 140.0.3485.81

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymoretrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions