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]: App crashes when you try to create WebView2 and CEF browsers. #4343

Closed
salvadordf opened this issue Feb 3, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@salvadordf
Copy link

What happened?

When you try to use create a WebView2 browser and a CEF browser in the same application you get a 0xC000001D system exception and the application crashes.

We have detected this issue in CEFSharp, CEF4Delphi and WebView4Delphi projects. See this discussion :
cefsharp/CefSharp#4703

This issue starts as soon as Windows updates WebView2 to 121.x or CEF is updated to 121.x

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

120.0.2210.144

SDK Version

1.0.2210.55

Framework

Other

Operating System

Windows 10

OS Version

19045.3996

Repro steps

Create a CEF browser control and add it to the form. Then create a WebView2 browser control and add it to the form.

If you use CEF 120 and WebView2 121 then the crash occurs if the CEF control is created first. This is the case of the C# example in the linked discussion.

If you use CEF 121 and WebView2 120 then the crash occurs if the WebView2 control is created first. This is the case of Delphi applications.

Repros in Edge Browser

No

Regression

Don't know

Last working version (if regression)

No response

@salvadordf salvadordf added the bug Something isn't working label Feb 3, 2024
Copy link

github-actions bot commented Feb 3, 2024

Hi, @salvadordf!

It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?

WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): <UDF>\EBWebView\Crashpad\reports\. By default, the user data folder is created in the app's folder with a name like <App Exe Name>.exe.WebView2. Refer to Crash Diagnostics for more information.

Thank you for your cooperation!

@salvadordf
Copy link
Author

The \EBWebView\Crashpad\reports\ directory is empty but the CEF browser creates a debug.log file with this FATAL error :
[0204/174539.842:FATAL:hwnd_util.cc(64)] 1400

Here you have a C# demo to reproduce the crash and the debug log :
CrashTest.zip
debug.log

@salvadordf
Copy link
Author

After further investigation I could see that this issue only happens when the application uses different versions of Chromium and Edge.
CEF 120 + Webview2 120 -> Not affected.
CEF 121 + Webview2 121 -> Not affected.
CEF 120 + Webview2 121 -> Affected.
CEF 121 + Webview2 120 -> Affected.

@vtuizat
Copy link

vtuizat commented Feb 7, 2024

Experiencing the same issue (crash when loading CEF) with CEF 114 and WebView2 121 in an application containing both browsers.

I'm getting an unhandled exception in libcef.dll : "0xC000001D: Illegal Instruction." in debug.

We did not have the issue before the 02/05 WebView2 121.0.2277.98 update.

Using a fixed version 120 for WebView2 fixes the issue but it's not ideal.

@salvadordf
Copy link
Author

salvadordf commented Feb 7, 2024

Consider updating CEF and WebView2 to 121 if possible.

@vtuizat
Copy link

vtuizat commented Feb 7, 2024

Thanks for the answer.
Unfortunately updating CEF is not an option, the WebView2 browser is part of a plugin for an external app with its own embedded CEF browser.

It also seems any old CEF version is incompatible with WV2 121. We've tried CEF 86, 100, 114 with no success.

I'll update this thread if I find a way to get CEF and WV2 running reliably with disjointed versions.

@ralish
Copy link

ralish commented Feb 10, 2024

We were affected by this issue and I've posted an analysis here which may be helpful if any Edge developers are watching this:
cefsharp/CefSharp#4703 (comment)

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

3 participants