CEF Crash During Application Close

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF Crash During Application Close

Postby Greg » Sun Nov 03, 2019 4:47 pm

Using CEF WinForms 75.1.141 in Windows Desktop Application on Windows:

Occasionally, when closing the application, the following is observed in the Windows Application Event Log:
Faulting module name: libcef.dll, version: 75.1.14.0, time stamp: 0x5d071e50
Exception code: 0x80000003
Fault offset: 0x00000000020a24bb

(Also, a dialog is shown that the application has "stopped working").

In know these can be very vague. Is there anything in general that should be done when closing an app, to ensure that the CefSharp is closed gracefully? Any other thoughts appreciated. Thank You
Greg
Newbie
 
Posts: 2
Joined: Wed Jan 23, 2019 10:53 am

Re: CEF Crash During Application Close

Postby ndesktop » Mon Nov 04, 2019 2:40 am

0x80000003 is STATUS_BREAKPOINT (or EXCEPTION_BREAKPOINT).
This means the execution is hitting a failed CHECK on close. Usually this is an unreleased object, libcef checks for a number of objects to have refcount zero on shutdown.

Without a crash dump and log, is hard to say which is it.
Try to run from a command prompt with --enable-logging --v=1 (or 2, 3 etc.) and make sure you have the corresponding libcef.dll.pdb (and perhaps others if needed) files near your libcef.dll. This normally displays a stack trace which may help i9n diagnosing which object or objects are not released.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: CEF Crash During Application Close

Postby amaitland » Mon Nov 04, 2019 3:30 am

It's most likely https://bitbucket.org/chromiumembedded/ ... closing-if you are seeing.

Try disabling the network service see https://github.com/cefsharp/CefSharp/is ... -521892919 for an example.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 49 guests

cron