check failed !features::IsSurfaceSynchronizationEnabled()

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.

check failed !features::IsSurfaceSynchronizationEnabled()

Postby robs » Wed Jun 13, 2018 3:38 pm

Hi,

I just updated to CEF 3396.1777 and now when I try to use off screen rendering I get an assertion:

Code: Select all
FATAL:render_widget_host_view_osr.cc(244)] Check failed: !features::IsSurfaceSynchronizationEnabled().


Looking at the code I see this:

Code: Select all
// Surface synchronization is not supported with OSR.
DCHECK(!features::IsSurfaceSynchronizationEnabled());


It works properly in cefclient but I can't seem to tell what the difference is with my implementation.

I did find this issue which sounds relevant. But, since it works with cefclient, it seems I should be able to get it to work too.

Does anyone have a suggestion on what I'm missing that is causing surface synchronization to be enabled and the above check to fail?

Thanks!
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm

Re: check failed !features::IsSurfaceSynchronizationEnabled(

Postby magreenblatt » Wed Jun 13, 2018 4:10 pm

Are you setting --enable-features on the command-line?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: check failed !features::IsSurfaceSynchronizationEnabled(

Postby robs » Wed Jun 13, 2018 4:34 pm

No, I don't have any switches on the command line, but I figured out the issue!

It turns out I was simply missing setting windowless_rendering_enabled to true in the CefSettings in the call to CefInitialize(). Apparently this was not actually necessary on CEF3.3239.1723 which is the version I was updating from.

Thanks for the reply and sorry for the noise!

Rob
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm

Re: check failed !features::IsSurfaceSynchronizationEnabled(

Postby DanKegel » Mon Jun 25, 2018 4:35 pm

I got bitten by this, too! Symptom was blank window in 3396 and up, when 3282 worked fine.

Note to self: try the debug build of cef sooner next time :-)
DanKegel
Mentor
 
Posts: 59
Joined: Fri Nov 08, 2013 12:46 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 35 guests