Page 1 of 1

black blocks in page when enable gpu

PostPosted: Sun Feb 19, 2017 9:17 pm
by smallFish
I have a app with multiple cefbrowser windows,when a cefbrowser window shows from hidden state,black blocks appears sometimes in the web page.If I disable gpu,there is no black blocks any more.I have tested on different computer,all computers have this problem.Can anyone help?

Re: black blocks in page when enable gpu

PostPosted: Mon Feb 20, 2017 12:05 am
by magreenblatt
What OS and CEF version? Does the problem reproduce in the cefclient sample application?

Re: black blocks in page when enable gpu

PostPosted: Mon Feb 20, 2017 1:39 am
by smallFish
win10
cef3.2623.1401 x32
The cefclient sample does not have the same problem,I just see the scrollbar of the web page become black when I run the cefclient sample.

Re: black blocks in page when enable gpu

PostPosted: Mon Feb 20, 2017 2:03 am
by smallFish
Another situation: when I use spy++ to catch messages on cefclient ,the cefclient also show black blocks in page,but not every time.
If I just run the cefclient,I never see black blocks in the web page.
Is there any key points for showing and hiding the cefbrowser window? or any command line paramenters to set the gpu feature?
I have multiple cefbrowser windows, they have the same parent main window.I show a window while I hide another.
I think the problem is gpu,but I have no idea to resolve it.
My computer has ATI video card, the other two have NVIDIA video card, all of them have this problem.

Re: black blocks in page when enable gpu

PostPosted: Mon Feb 20, 2017 3:08 pm
by magreenblatt
2623 branch is old and unsupported. Try using a supported version: https://bitbucket.org/chromiumembedded/ ... -supported

Re: black blocks in page when enable gpu

PostPosted: Mon Feb 20, 2017 7:27 pm
by smallFish
I need to support windows XP

Re: black blocks in page when enable gpu

PostPosted: Tue Jun 08, 2021 2:17 am
by shdj111
smallFish wrote:I need to support windows XP


Have you solved this problem? And how did you solve it?

Re: black blocks in page when enable gpu

PostPosted: Tue Jun 08, 2021 2:24 am
by shdj111
magreenblatt wrote:2623 branch is old and unsupported. Try using a supported version: https://bitbucket.org/chromiumembedded/ ... -supported


I met the same problem. when app starts up, the first time i open a page, it will occur:
1. with small page, it's whole black;
2. with full screen page, partial black, and page offsets several pixels right-down .
then if i start another new page , it ok, no black block, no pixels offset;
My os is windows 10 with 4k screen, high dpi supported(scaling), gpu enabled, cef version is 84.3.10. Can see d3dwindow with spy++;
however, it's ok when using 3.2623.1401.0, with the same enviroment;
And also, it's OK if GPU is closed, but we donot want to disable GPU.
Can you give me some help?

Re: black blocks in page when enable gpu

PostPosted: Tue Jun 08, 2021 4:19 am
by amaitland
Try a supported version as linked above.