Window remains white with GPU enabled (macOS)

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.

Re: Window remains white with GPU enabled (macOS)

Postby magreenblatt » Tue Dec 12, 2017 3:11 pm

The 10.8 SDK version for Java is the problem. See https://bitbucket.org/chromiumembedded/ ... t-22035822
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Window remains white with GPU enabled (macOS)

Postby radar » Wed Dec 13, 2017 11:03 am

Thanks - at least it's clear now where the problem is.

Until I figure out away to get around the 10.8 SDK with java: Is it safe to set NSWindowHostsLayersInWindowServer?
radar
Techie
 
Posts: 12
Joined: Thu Nov 30, 2017 3:16 am

Re: Window remains white with GPU enabled (macOS)

Postby magreenblatt » Wed Dec 13, 2017 11:10 am

radar wrote:Thanks - at least it's clear now where the problem is.

Until I figure out away to get around the 10.8 SDK with java: Is it safe to set NSWindowHostsLayersInWindowServer?

Try it and let us know how it works for you?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Window remains white with GPU enabled (macOS)

Postby radar » Thu Dec 14, 2017 2:11 am

For a small standalone Java / SWT test application it looks all good.

We're in the process of integrating this into a large Eclipse/RCP-based application. I'll get back when I see how it goes there...


magreenblatt wrote:
radar wrote:Thanks - at least it's clear now where the problem is.

Until I figure out away to get around the 10.8 SDK with java: Is it safe to set NSWindowHostsLayersInWindowServer?

Try it and let us know how it works for you?
radar
Techie
 
Posts: 12
Joined: Thu Nov 30, 2017 3:16 am

Re: Window remains white with GPU enabled (macOS)

Postby Czarek » Thu Dec 14, 2017 3:00 am

From code comments in Chromium bug 626733 it shows that in 10.9 SDK and later window hosts layers in window server by default, thus registering `NSWindowHostsLayersInWindowServer` is not required anymore. It was just unnecessary code that was removed since Chromium started targetting 10.9 as minimum OS.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Window remains white with GPU enabled (macOS)

Postby radar » Thu Jan 25, 2018 7:30 am

To finally report back:
* With main executables that are compiled with 10.9 SDK and later: Everything is fine.
* Earlier: Chromium switch "--disable-remote-core-animation" as workaround.

I suspect however, that above switch might disappear at some point.

What we'll do in our case (Eclipse Equinox launcher 3.8.2, which hasn't even macOS min SDK compiled in): recompile the executable and specify min SDK. Then everything works fine.
radar
Techie
 
Posts: 12
Joined: Thu Nov 30, 2017 3:16 am

Re: Window remains white with GPU enabled (macOS)

Postby Czarek » Thu Jan 25, 2018 8:55 am

So calling `NSWindowHostsLayersInWindowServer` which you reported earlier that fixed the issue, didn't actually fix it? Looks to me there are two different issues here.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 104 guests