Black screen on browser launch before the web page opens

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: Black screen on browser launch before the web page opens

Postby ldidit1 » Tue Feb 27, 2018 4:41 pm

I am also having the same issue. Does it matter if

Code: Select all
command_line->AppendSwitch("disable-gpu");


is called before commandLineHandler or other command_line related code are called? I applied it to both OnBeforeCommandLineProcessing and OnChildProcess. The black screen I get only occur occasionally and it's not consistent.
ldidit1
Newbie
 
Posts: 1
Joined: Tue Feb 27, 2018 1:53 pm

Re: Black screen on browser launch before the web page opens

Postby ndesktop » Wed Feb 28, 2018 12:10 pm

You might try also disable-gpu-compositing and disable-win32k-renderer-lockdown as well.
Not sure if renderer lockdown has something to do with the initial black screen.

A comprehensive list of flags is here.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Postby uwekeim » Fri Jun 29, 2018 2:05 am

Having a similar issue using CefSharp, I was able to successfully fix the short black screen/flickering by calling CefSettings.DisableGpuAcceleration().

Code fragment:

Code: Select all
var settings = new CefSettings
{
    // Set BrowserSubProcessPath based on app bitness at runtime.
    BrowserSubprocessPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
        Environment.Is64BitProcess ? @"x64" : @"x86",
        @"CefSharp.BrowserSubprocess.exe")
};

settings.DisableGpuAcceleration();

Cef.Initialize(settings, false, null);
User avatar
uwekeim
Techie
 
Posts: 17
Joined: Wed Jun 05, 2013 12:34 pm

Re: Black screen on browser launch before the web page opens

Postby Dhvaj17 » Fri Mar 12, 2021 9:17 am

I am still seeing the issue.
I am using CefSharp - V86.

I have tried setting the below flags in cef commandline args, but it didn't worked for me.

--disbale-gpu
--disable-gpu-compositing

Can someone help?
Dhvaj17
Techie
 
Posts: 36
Joined: Fri Oct 16, 2020 4:51 am

Re: Black screen on browser launch before the web page opens

Postby amaitland » Fri Mar 12, 2021 2:47 pm

Load chrome://gpu in the browser and confirm GPU acceleration is actually disabled.

M86 is old and unsupported now, try M88
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 31 guests