Blank Screen when running CefSilmple and cef based app

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.

Blank Screen when running CefSilmple and cef based app

Postby diegoarize » Mon Oct 20, 2014 1:22 pm

Hi,
everytime that I am trying to run the cefSimple I get a white screen. I am developing a Cef Based app and the same issue occurs on the app as well.

Occasionally when the app starts to work the expected results show up first, then it looks like the window closes itself automatically and open the blank screen again.
Although most of the time the screen is white.

The CefApp class seems to be instaniated multiple times, and wWinMain is also being called multiple times. I tryed to see the log files, and the cef constructor is being called twice at least.
However when I am using the debug mode, setting breakpoints in the CefApp constructor, the issue goes away.

I have followed the building tutorial https://code.google.com/p/chromiumembed ... i/Tutorial

I am trying to build cef_binary_3.1750.1738_windows32, on Visual Studio 2010 on Windows 8.1 .

Do you folks have some ideas about what can be going on?

Thanks in advance!
diegoarize
Newbie
 
Posts: 5
Joined: Mon Sep 29, 2014 7:47 am

Re: Blank Screen when running CefSilmple and cef based app

Postby magreenblatt » Mon Oct 20, 2014 1:50 pm

wWinMain will be called multiple times to launch sub-processes. See http://www.chromium.org/developers/how-tos/debugging for debugging tips.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Blank Screen when running CefSilmple and cef based app

Postby diegoarize » Tue Oct 21, 2014 7:28 am

Hi magreenblatt,

Thank you for the fast reply!

I could understand that debugging instructions about the single process mode, I will try to reproduce it, nevertheless it doesn't explain about the white screen problem.
That one is my main issue, because the app can't run properly.
diegoarize
Newbie
 
Posts: 5
Joined: Mon Sep 29, 2014 7:47 am

Re: Blank Screen when running CefSilmple and cef based app

Postby diegoarize » Tue Oct 21, 2014 7:34 am

I tried to use the single process mode, in fact I could notice that the app executed the main only once, the white screen persists though.
diegoarize
Newbie
 
Posts: 5
Joined: Mon Sep 29, 2014 7:47 am

Re: Blank Screen when running CefSilmple and cef based app

Postby Czarek » Tue Oct 21, 2014 7:45 am

Black/white screen may be caused by incompatible GPU drivers. You can disable GPU hardware acceleration using --disable-gpu command line flag.
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: Blank Screen when running CefSilmple and cef based app

Postby diegoarize » Tue Oct 21, 2014 9:35 am

Hi Czarek, thanks for the reply

I tried to add this --disable-gpu to the command line flag, but the white screen remain the same, I was also trying to do it in the debug mode and it still the same.
I can only get results when I put a breakpoint when I am in the CefApp constructor
diegoarize
Newbie
 
Posts: 5
Joined: Mon Sep 29, 2014 7:47 am

Re: Blank Screen when running CefSilmple and cef based app

Postby Mayhew » Wed Oct 22, 2014 11:42 am

The only other time I have seen this type of thing is if you are behind a proxy/firewall.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: Blank Screen when running CefSilmple and cef based app

Postby atomy » Mon Nov 10, 2014 3:04 am

I also encountered this problem
How to solve the problem?
atomy
Newbie
 
Posts: 1
Joined: Mon Nov 10, 2014 3:00 am

Re: Blank Screen when running CefSilmple and cef based app

Postby djunges » Tue Jan 22, 2019 7:55 am

I also encountered this problem and it only occurs on the first start, it seems that the page is not rendered if the windows.form is not loaded completely.
At the moment i not found a solution for it.

can anyone help with this issue ?

best regards
djunges
djunges
Newbie
 
Posts: 4
Joined: Wed Jan 16, 2019 7:11 am

Re: Blank Screen when running CefSilmple and cef based app

Postby magreenblatt » Tue Jan 22, 2019 9:12 am

djunges wrote:I also encountered this problem and it only occurs on the first start, it seems that the page is not rendered if the windows.form is not loaded completely.
At the moment i not found a solution for it.

can anyone help with this issue ?

best regards
djunges

Please don't post on 4 year old topics. Also, it sounds like you're using some wrapper for CEF. You should ask on a forum appropriate to that wrapper.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

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