cefsimple and cefclient show big blue rectangles mostly in D

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.

cefsimple and cefclient show big blue rectangles mostly in D

Postby Tonygeek » Mon Jan 13, 2020 8:29 pm

When I run both cefsimple and cefclient in Debug build the Web pages (the default Google one, but also pages visited from Google searches) display rather large blue rectangles covering parts of the rendered page.

Refreshing the page several times usually gets rid of them.

It happens in Debug every time I run these two clients. In Release build one often sees them as well, for a very short time when clients display initial page, but they usually quickly disappear.
Using Windows 32 bit distribution cef_binary_78.3.9+gc7345f2+chromium-78.0.3904.108_windows32
Tonygeek
Techie
 
Posts: 16
Joined: Mon Jan 13, 2020 7:39 pm

Re: cefsimple and cefclient show big blue rectangles mostly

Postby Czarek » Tue Jan 14, 2020 4:50 am

Can you check latest version v79 from Spotify? What OS? Do you use any custom settings?
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: cefsimple and cefclient show big blue rectangles mostly

Postby Tonygeek » Tue Jan 14, 2020 9:15 am

Ok, I'll try 79.

Program was built and run on Windows 10 version 1709 64 bit machine

Yes, I have custom options:

Code: Select all
cmake -G "Visual Studio 14" -DUSE_SANDBOX=OFF -DCEF_RUNTIME_LIBRARY_FLAG="/MD" -DCEF_COMPILER_FLAGS="/wd4800" -DCMAKE_SYSTEM_VERSION=8.1 ..\cef_source\cef_binary_78.3.9+gc7345f2+chromium-78.0.3904.108_windows32


I chose 8.1 version of Windows SDK because I hope to run on WIndows 7 as well.
Tonygeek
Techie
 
Posts: 16
Joined: Mon Jan 13, 2020 7:39 pm

Re: cefsimple and cefclient show big blue rectangles mostly

Postby Tonygeek » Tue Jan 14, 2020 6:48 pm

Ok, I downloaded and built cef_binary_79.1.27+gd2449e5+chromium-79.0.3945.117_windows32

I have VS 2017 and VS 2019 IDE and also VS 2015 (v140) tools installed. I usually build with v140 tools because the app where I intend to integrate CEF is still built with VS 2015 aka v140 tools.

I went through the process of elimination (like removing -DCMAKE_SYSTEM_VERSION=8.1 so that Windows 10 SDK will be used) and finally ended up with VS 2019 Windows 10 SDK build generated with this:

Code: Select all
cmake -G "Visual Studio 16" -A Win32 -DUSE_SANDBOX=OFF -DCEF_RUNTIME_LIBRARY_FLAG="/MD" -DCEF_COMPILER_FLAGS="/wd4800" ..\cef_source\cef_binary_79.1.27+gd2449e5+chromium-79.0.3945.117_windows32


Bad news:
In Debug build runs blue rectangles keep appearing in all combinations.

Good news:
It is hard to be certain but it looks like there is some improvement. Blue rectangles tend to appear on visiting some page but disappear faster than before. However, going back and forth between visited pages they eventually look rather bad (see attached img).

Using VS 2019 sln generated with the command above and running Release builds I have not seen even a very brief blue rectangle flash in the same circumstances where, in Debug runs, they would be very noticeable.
Attachments
cef_2019_Win32_build_blue_rectangles.PNG
cef_2019_Win32_build_blue_rectangles.PNG (27.7 KiB) Viewed 8437 times
Tonygeek
Techie
 
Posts: 16
Joined: Mon Jan 13, 2020 7:39 pm

Re: cefsimple and cefclient show big blue rectangles mostly

Postby amaitland » Tue Jan 14, 2020 10:37 pm

I've recently upgraded to 79.1.10+g7ec49fa+chromium-79.0.3945.117 and on Windows 10 1903 x64 I've yet to see a blue area as described.

Have you tested on a different machine?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: cefsimple and cefclient show big blue rectangles mostly

Postby Czarek » Wed Jan 15, 2020 5:03 am

What if you disable GPU via --disable-gpu and --disable-gpu-compositing switches? Try updating your OS and GPU drivers. Do you see similar issue in Google Chrome on that machine?
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: cefsimple and cefclient show big blue rectangles mostly

Postby Tonygeek » Wed Jan 15, 2020 8:00 am

Adding --disable-gpu and --disable-gpu-compositing definitely gets rid of the blue rectangles.

No, I haven't seen this in Chrome, running on the same machine, which is why I reported it. Then again, installed Chrome isn't Debug build.

I tried on other machines, with different AMD and NVidia GPUs, and didn't see it. However, it was Release build as I didn't install VC++ Debug libraries on those machines.

I guess that my AMD FirePro W5000 (FireGL V) Graphics Adapter is pretty ancient. Windows says it is the latest driver and doesn't offer update option.

I'll let you know if I see the rectangles on other GPUs, once I get around installing VC++ Debug libraries.
Tonygeek
Techie
 
Posts: 16
Joined: Mon Jan 13, 2020 7:39 pm

Re: cefsimple and cefclient show big blue rectangles mostly

Postby Czarek » Wed Jan 15, 2020 12:32 pm

Are you using High DPI?
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: cefsimple and cefclient show big blue rectangles mostly

Postby Tonygeek » Wed Jan 15, 2020 2:58 pm

No, I wasn't.
Just added CefEnableHighDPISupport(); to my app. Let me set up and rebuild everything with 79 from scratch as I made too many quick tests, switching back and forth between 78 and 79, Debug and Release, so I am not sure my builds are consistent.
Tonygeek
Techie
 
Posts: 16
Joined: Mon Jan 13, 2020 7:39 pm

Re: cefsimple and cefclient show big blue rectangles mostly

Postby Tonygeek » Wed Jan 15, 2020 6:23 pm

So no. After deleting all traces of 78 and fresh rebuild of 79, with added DPI, that I didn't have before

Code: Select all
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // Enable High-DPI support on Windows 7 or newer.
    CefEnableHighDPISupport();


I don't see any differences in Debug run. Still the same blue rectangles on my AMD FirePro W5000 . None in Release runs.
Tonygeek
Techie
 
Posts: 16
Joined: Mon Jan 13, 2020 7:39 pm

Next

Return to Support Forum

Who is online

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