The rendering process hangs in CEF 2357.

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.

The rendering process hangs in CEF 2357.

Postby crast » Thu Jun 25, 2015 1:25 pm

When function CefShutdown calls browser process and gpu process cleanly shutdowns, render process hangs.
When i debug render process OnBrowserDestroyed function does not get called.
When i debug both render process and browser process OnBrowserDestroyed function is called when debugger stays on line "browser->DestroyBrowser()", render process clenly shutdowns.
In CEF 2272 everything works fine.
What might be the issue?

Thanks.
crast
Techie
 
Posts: 15
Joined: Tue Sep 23, 2014 2:30 am

Re: The rendering process hangs in CEF 2357.

Postby crast » Mon Jun 29, 2015 5:58 am

My browser does not get released context.
Reference counter for CefBrowserContext does not decrement when browser->GetHost()->CloseBrowser(true) ( function CefBrowserHostCToCpp::CloseBrowser(bool force_close) ) is called.
In CEF example program reference counter is decrements when CefBrowserHostImpl::CloseBrowser(bool force_close) is called.
How to release context? I think this is cause of the error.
Is there any documentation about CEF internals?
crast
Techie
 
Posts: 15
Joined: Tue Sep 23, 2014 2:30 am

Re: The rendering process hangs in CEF 2357.

Postby crast » Tue Jun 30, 2015 1:26 pm

I've figured out the core of my problem.
When program executes in cef message loop, message loop waits for the end of a task queue( renderer process is being terminated at this point).
In my case, timer event calls function CefDoMessageLoopWork() function every 10ms. When multiple CefDoMessageLoopWork() functions are being called in the end of the programm, renderer process gets terminated as well.
How to wait until message queue reaches its end?
crast
Techie
 
Posts: 15
Joined: Tue Sep 23, 2014 2:30 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 55 guests