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]: Render process exited before DOMContentLoaded event #4552

Closed
YukiiOyama opened this issue May 13, 2024 · 4 comments
Closed

[Problem/Bug]: Render process exited before DOMContentLoaded event #4552

YukiiOyama opened this issue May 13, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@YukiiOyama
Copy link

What happened?

My wpf application is not working on a client PC.
This app works fine on other PCs.

In a client PC, the ProcessFailed event is raised.
Other PCs, the ProcessFailed event is not fired and the DOMContentLoaded event is raised insted.

ExitCode = 3
Reason = Crashed
ProcessDescription = (blank)
ProcessFailedKind = RenderProcessExited

No crash report is created in '(UDF): \EBWebView\Crashpad\reports'.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

124.0.2478.97

SDK Version

1.0.2420.47

Framework

WPF

Operating System

Windows 10

OS Version

No response

Repro steps

private async void InitializeMyApplication()
{
    CoreWebView2EnvironmentOptions options = new CoreWebView2EnvironmentOptions(
    	"--disable-features=RendererCodeIntegrity, msWebAppWidgets, msEdgeHubAppDesigner, msEdgeDesignerDriverFix,msWebView2CancellableAboutNavigations");
    string path = [set UDF path here (\AppData\Local\MyAppName)]
    var environment = await CoreWebView2Environment.CreateAsync(null, path, options);
        myWebView.CoreWebView2InitializationCompleted += WebViewOnCoreWebView2InitializationCompleted;
    ContentRendered += async (sender, e) =>
    {
        await myWebView.EnsureCoreWebView2Async(environment);
    }
}

private async void WebViewOnCoreWebView2InitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
{
    if (e.IsSuccess)
   {
        myWebView.CoreWebView2.ProcessFailed += CoreWebView2OnProcessFailed;
        myWebView.CoreWebView2.Navigate([My app URL]);
    }
}

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

@YukiiOyama YukiiOyama added the bug Something isn't working label May 13, 2024
@YukiiOyama YukiiOyama changed the title [Problem/Bug]: Render process exited bofore DOMContentLoaded event [Problem/Bug]: Render process exited before DOMContentLoaded event May 13, 2024
@LiangTheDev
Copy link
Member

@YukiiOyama could you please collect an ETW trace of the repro (https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/diagnostics/etw.md) and share with lzhao@microsoft.com?

Please note that RendererCodeIntegrity feature has been deprecated from Chromium and "--disable-features=RendererCodeIntegrity" will be ignored, and there should be no space between disabled features. In your case, you might want to update the switches to be "--disable-features=msWebAppWidgets,msEdgeHubAppDesigner,msEdgeDesignerDriverFix,msWebView2CancellableAboutNavigations".

@YukiiOyama
Copy link
Author

Thank you. I'll try.

@YukiiOyama
Copy link
Author

@LiangTheDev
I could not get client's ETW trace, but I was able to check the client's PC by connecting remotely.
My app in that PC was checked Windows compatibility mode. So I turned this check off, then the app worked fine.
Thank you for your reply.

@LiangTheDev
Copy link
Member

Closing the issue as the app works now.

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