How to properly shutdown when multi_threaded_message_loop

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.

How to properly shutdown when multi_threaded_message_loop

Postby Teotihuacan » Sun Jul 19, 2020 1:22 am

Sometimes my app crashed on exit somewhere in Cef internals and I realized that I cant simply call CefShutdown if multi_threaded_message_loop =true
and I've found out that I have to wait until CefLifeSpanHandler::OnBeforeClose is called for all existing CefBrowser object
and seems it helped to resolve the issues

but is there anything else that we need to care about to avoid unpredictable crushes on Cef exit?
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: How to properly shutdown when multi_threaded_message_loo

Postby digory » Thu Jul 30, 2020 6:39 am

There was this issue:

https://bitbucket.org/chromiumembedded/ ... with-multi

It was marked as "resolved", but there was no commit, it just wasn't reported any more.

I still see these crashes occasionally with the current CEF version. Apparently, it's just an assertion failure, so there is no crash in Release mode.
digory
Expert
 
Posts: 118
Joined: Wed Oct 26, 2016 3:13 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 66 guests