CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

WinForms - CefSharp 151.3.170 crashes in libcef.dll with 0xC0000005 when typing in HTML input fields

Open nullQ opened this issue 3 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched both open/closed issues, no issue already exists.

CefSharp Version

151.3.170

Operating System

Windows 11

Architecture

x64

.Net Version

.NET 4.8

Implementation

WinForms

Reproduction Steps

  1. Run a CefSharp WinForms application using CefSharp.WinForms 151.3.170 on Windows 11 x64 with .NET Framework 4.8.

  2. Create a ChromiumWebBrowser and navigate to a page containing a normal HTML text input, for example:

    https://www.baidu.com/

  3. Click the search input field.

  4. Start typing several characters.

  5. Continue typing/interacting with the text field and autocomplete suggestions.

  6. The main application process intermittently terminates with:

    3221225477 (0xC0000005) Access violation

There is no managed exception.

IRequestHandler.OnRenderProcessTerminated is not called.

The CEF log contains normal page/network activity immediately before the application terminates. There is no corresponding CEF FATAL or CHECK failure.

A native minidump captured from MyBrowser.exe shows:

Exception code: 0xC0000005 Operation: Read Invalid read address: 0x0000000000000010 Faulting module: libcef.dll Architecture: x64

The fault is consistent with a null-pointer dereference inside libcef.dll.

Most importantly, the exact same application, operating system, input method and webpages are stable after downgrading to CefSharp 150.0.110.

Expected behavior

Typing into standard HTML and