Setting CefSettings.background_color causes failed assert

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.

Setting CefSettings.background_color causes failed assert

Postby cloudshao » Tue Apr 11, 2017 2:09 am

Hey all,

When I try to set the background_color through CefSettings or CefBrowserSettings, I hit the following assert:

Code: Select all
[0411/145342.981449:FATAL:PaintLayer.cpp(2629)] Check failed: isAllowedToQueryCompositingState().
2017-04-11 14:53:43.035795+0800 cefsimple Helper[58112:18100000] GVA info: preferred scaler idx 0


Steps:
    1. Clone cef-project
    2. Go into the cefsimple project
    2. In main, add:
    Code: Select all
    settings.background_color = CefColorSetARGB(255, 0x18, 0x18, 0x18);

    3. Build and run

Repro rate: 100%

OS: Mac OSX 10.12.4
CEF: 3.2924.1570.g558741c, 3.2987.1601.gf035232
Compiler: Apple LLVM 8.0

Anyone know what's going on, or if there's a workaround?
cloudshao
Newbie
 
Posts: 3
Joined: Thu Nov 17, 2016 1:39 am

Re: Setting CefSettings.background_color causes failed asser

Postby magreenblatt » Tue Apr 11, 2017 11:26 am

Does it reproduce when using the Release build of the CEF libraries?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Setting CefSettings.background_color causes failed asser

Postby cloudshao » Tue Apr 11, 2017 11:39 pm

magreenblatt wrote:Does it reproduce when using the Release build of the CEF libraries?

No, we don't hit the assert on Release build. Only on Debug.
cloudshao
Newbie
 
Posts: 3
Joined: Thu Nov 17, 2016 1:39 am

Re: Setting CefSettings.background_color causes failed asser

Postby magreenblatt » Wed Apr 12, 2017 10:19 am

Looks like you also filed https://bitbucket.org/chromiumembedded/cef/issues/2144. See that issue for additional information.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Devyre and 83 guests