Skip to content
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

[Problem/Bug]: All WebView2 controls fire ProcessFailed events and controls are not responsive #4587

Open
WildlifeSOS opened this issue May 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@WildlifeSOS
Copy link

WildlifeSOS commented May 24, 2024

What happened?

I first hit this issue and logged #2544 but I rewrote my code and that circumvented this problem

My vb.net application currently uses

Version
SDK: .Net 4.8
Runtime: 125.0.2535.51
Framework: WinForms
OS: Windows 10 Enterprise Version 21H2
WebView2: 1.0.1245.22

It has two dashboards which are jsp files hosted in two WebView2 controls which the user can interact with to navigate to other parts of the application.

When I first hit this problem, the dashboards were being loaded at the same time. I changed it to load them in series and that circumvents the problem when running interactively.

We use a testing tool called UFT for automated regression tests and initially that tool couldn’t cope with the new WebView2 control. However now it can, and it connects via the same additional browser arguments --remote-debugging-port that all our WebView2 controls are configured with.

However when running those tests we are hitting this problem again where both WebView2 controls trigger the WebView CoreWebView2 ProcessFailed event with

ExitCode=-1073741819
Reason=Unexpected
ProcessDescription=
ProcessFailedKind=BrowserProcessExited

Importance

Important. We can't run automated tests to test for regression at releases

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

125.0.2535.51

SDK Version

WebView2: 1.0.1245.22

Framework

Winforms

Operating System

Windows 10

OS Version

Windows 10 Enterprise Version 21H2

Repro steps

Start my application with the two WebView2 controls having a --remote-debugging-port specified
Connect opentext UFT one to my application using that remote debugging port
Both controls work fine for a while and then both controls trigger the WebView CoreWebView2 ProcessFailed event
ExitCode=-1073741819
Reason=Unexpected
ProcessDescription=
ProcessFailedKind=BrowserProcessExited

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@WildlifeSOS WildlifeSOS added the bug Something isn't working label May 24, 2024
@WildlifeSOS
Copy link
Author

I tried changing the application so that the WebView2 control that generated the process failed events had it's own CoreWebView2Environment and it's own User Data Folder. Using this setup only one WebView2 generated the process failed events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants