cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.88k stars 2.92k forks source link

Error code: Crashpad_NotConnectedToHandler #4912

Closed sergey-prokhorov closed 3 months ago

sergey-prokhorov commented 3 months ago

Is there an existing issue for this?

CefSharp Version

127.3.50.0

Operating System

Windows 11

Architecture

x64

.Net Version

4.8.2

Implementation

WinForms

Reproduction Steps

randomly time by time

Expected behavior

loaded content

Actual behavior

Screenshot 2024-08-22 224755

Regression?

happens after upgrade 124->127 and CefSharpSettings.RuntimeStyle = CefRuntimeStyle.Chrome; never seen before on earlier versions.

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

not tested

Other information

No response

n303ef commented 3 months ago

Yes, it happens when CEF was not shutdown properly (application terminated) and when PersistSessionCookies set to True. It seems that Chromium tries to restore window but it doesn't work with CEF. And "--hide-crash-restore-bubble" which is now default doesn't help.

sergey-prokhorov commented 3 months ago

my app doesn't stores sessions. this is 100% not a window restore issue.

amaitland commented 3 months ago

Try enabling crashpad see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#crash-reporting

If the problem persists then you'll need to raise an issue at https://github.com/chromiumembedded/cef/issues

Please post a link back here for reference if you do.

There have been major upstream changes see https://github.com/chromiumembedded/cef/issues/3685 for background

sergey-prokhorov commented 3 months ago

@amaitland thanks! after I add crash_reporter.cfg the error changed to

image

upd: after reload with button click the page shows normal

amaitland commented 2 months ago

Check the log file for a more detailed error.

If there isn't one then analyse the crash dump generated by crashpad, get a stack trace

Search the CEF issue tracker for existing issues.

https://github.com/chromiumembedded/cef/issues

If you cannot find an issue that matches then create a new one.