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
Shutdown crashes since CEF 77 #230
Comments
Use the latest CEF4Delphi stable release to avoid this issue : |
Some demos in the last stable release don't disable the "Network Service". If you see shutdown issues with that release, add this before the GlobalCEFApp.StartMainProcess (or GlobalCEFApp.StartSubProcess) call in the DPR file : The MiniBrowser demo in that release already has that code line here :
|
The update to CEF 78.3.9 fixed this issue |
Some demos crash due to an access violation when they shutdown.
It looks like the CEF binaries are trying to reinitialize the network context after the PrefService has been cleared :
https://bitbucket.org/chromiumembedded/cef/issues/2703/crash-when-closing-if
This issue is much easier to detect if you use :
Using the TCEFSentinel component seems to be a valid workaround for the rest of the demos. It adds an extra step to the destruction sequence and checks the number of child processes before triggering the TCEFSentinel.OnClose event. Read the code comments in the demos for more details.
Other CEF shutdown issues :
https://bitbucket.org/chromiumembedded/cef/issues/2316/crash-during-shutdown-due-to
https://bitbucket.org/chromiumembedded/cef/issues/2798/dcheck-exception-on-cefclient-shutdown
The text was updated successfully, but these errors were encountered: