MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 chrome tasks getting killed often

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

@LiangTheDev is already working on this.

Since Jul 3, 2023.

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

Description

Description
We have a webview2 app in which we have noticed that chrome tasks get killed very often. We know this because whenever a task is killed we get ProcessFailed event and a lot of different kind of process failed events. One of the very likely event is RenderProcessExited and the only way to recover from this is by reloading the webview, otherwise it shows chrome error page. There are some utilities also that fails after which some of the app functionalities do not work.

The question is, why does this happen so often? Is there a way to handle this by the webview2 platform? Is there something the app can do to minimize these tasks failures?

Version
Runtime: 114.0.1823.58 (but happens on all runtimes)
Framework: UWP
OS: Win10/Win11

Regression
Was this working before but has regressed? no
If yes, what version did this last work on?

Repro Steps
Open a webview2 with browser task manager and kill the processes.

Screenshots

Additional context

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.