Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

White Screen Tracking Issue #7619

Closed
srirambv opened this issue Mar 8, 2017 · 56 comments
Closed

White Screen Tracking Issue #7619

srirambv opened this issue Mar 8, 2017 · 56 comments
Assignees
Labels
bug/driver needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. project-tracking

Comments

@srirambv
Copy link
Collaborator

srirambv commented Mar 8, 2017

No description provided.

@srirambv srirambv added this to the Backlog milestone Mar 8, 2017
@alexwykoff alexwykoff changed the title New tab or old session opens as a white window White Screen Tracking Issue Mar 9, 2017
@alexwykoff alexwykoff modified the milestones: 0.13.6, Backlog Mar 9, 2017
@osilvab
Copy link

osilvab commented Mar 9, 2017

Starting Brave browser just give a full white screen (no bars), still one can change the vertical limits of its size. and respond to the alt+f4 to close it and ctrl+n to open a new one. the new one opens perfectly.

windows 10
Brave 0.13.5
rev 1db81cb
Muon 2.56.8
libchromiumcontent 56.0.2924.87
V8 5.6.326.50
Node.js 7.4.0
Update Channel dev
os.platform win32
os.release 10.0.14393
os.arch x64

it happens every time i need to open the browser. and start happening after lat update.

@bsclifton
Copy link
Member

@osilvab do you have payments enabled? We found and recently fixed an issue which causes similar symptoms, but it would only affect folks who have payments enabled

@osilvab
Copy link

osilvab commented Mar 10, 2017

yes I have it enabled. without balance thought. I just deactivated the payments and it works well now.

@bsclifton
Copy link
Member

@osilvab awesome- hang in there 😄 We'll have a fix with our next version. Thanks for verifying!

@bsclifton
Copy link
Member

Since this is a tracking issue and there is no action to take (other than to investigate), I'm going to remove the milestone

@bsclifton bsclifton modified the milestones: Backlog, 0.13.6 Mar 14, 2017
@bsclifton bsclifton added bug needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. labels Mar 14, 2017
@bsclifton
Copy link
Member

+1 report from #4113 (comment) (which would be fixed with #7498)

possible +1 report from #7706 (root cause not known)

@luixxiul
Copy link
Contributor

@cndouglas cndouglas added bug/driver and removed bug labels Mar 24, 2017
@appurist
Copy link

I have the same white screen on startup. I think I may have enabled payments just prior to the problem too, and don't have a balance set up, so similar to the comments above. Is there a way to disable that when Brave won't even start? (e.g. config file somewhere?) Is the problem known/understood now? Fix coming?

@osilvab
Copy link

osilvab commented Mar 26, 2017

@appurist what I did was on the white screen press Ctrl+n and then i got a usable new page where I could set up everything

@appurist
Copy link

@osilvab Thanks for that, it sounded like a great idea. Unfortunately, it didn't have the same effect in my case. It created a new staggered blank white screen.

In the image below, I pressed Ctrl-N twice. The image only captures the top-left corner here, but the rest of the screen was all white except for the top and left edges of these new layers. (There are actually 3 windows below, you the top-left window doesn't show an edge since it goes to screen edge.)

Top-left corner after pressing Ctrl-N twice

@appurist
Copy link

This really sucketh greatly since it means I can't use Brave at all. I've tried full uninstalls, nuking AppData, etc. Nothing seems to reset it. Since Ctrl-N helped in @osilvab's case, I'm thinking this may indicate there is a race condition here (or it's just a completely different problem).

I should mention that I have other Electron-based apps installed (e.g. Atom, VS Code, etc) and they start fine. Also that this is a Windows 10 Pro, 64-bit, 16GB i7 developer machine with an nVidia 980 for graphics and lots of tools installed (VS2015, VS2017, many JetBrains tools, etc).

And finally, I read somewhere that Brave uses port 8080, and won't work if it's in use. Is that accurate? I almost certainly often have something on port 8080 with my various web work. If Brave is relying on port 8080 being open, I'd suggest that change to something a lot more obscure, as it is very common for it to be in use.

@appurist
Copy link

appurist commented Mar 26, 2017

Also, I forgot to mention that Ctrl-Alt-J has no effect. Alt-F4 does a nice clean exit though.

@appurist
Copy link

appurist commented Mar 26, 2017

FYI, I've also now tried Brave 0.14.0 Preview 3 and the same problem persists. Just a plain white screen; no visible window borders, titlebar, min/max/close buttons, nothing.

I also tried uninstalling, then nuking, the brave subfolders from both AppData/Local and AppData/Roaming before installing 0.14.0 Preview 3, and that didn't help.

Alt-Space does give me the system menu, and 'S'ize did allow some keyboard-based resizing via the arrow keys. I cannot drag the window (there's no title or other area to drag), but once an edge is visible, I can resize it. And as I said, Alt-F4 closes it cleanly.

@NejcZdovc
Copy link
Contributor

@appurist thank you for a really extensive report. Can you please try with our development version? This way we can see all errors in the browser console (shift+f8) and cmd.

Here are steps how to build it on Windows: https://github.com/brave/browser-laptop/wiki/(setup)-Windows-build-guide

Thank you very much for your help

@appurist
Copy link

@NejcZdovc I'm running through that now. I already had most of that installed, including version matches. Having a bit of trouble with that "__pfnDliNotifyHook2: redefinition" problem, but I ran npm run win-fixnpm and hopefully taking care of things. Hopefully have some results for you soon, although I need to go out for errands in about 30 minutes. If you don't get a reply before then, I'll see what I can do later tonight.

@NejcZdovc
Copy link
Contributor

@appurist Thank you, much appreciated

@appurist
Copy link

@NejcZdovc no luck yet. I have VS2015 and VS2017 (Community Ed for both) installed, and I found when I ran the VS2015 setup -> Modify that I didn't have the 8.1 SDK installed (I had 10.0 SDK installed though). That seemed to be a hint when reading this which seems related since it's the nodegyp rebuild that seems to be generating the error. So I installed the 8.1 SDK for VS2015, started a VS2015 MSBuild shell, and reran npm config -g set msvs_version 2015 just to be safe, and npm install bloom-filter-cpp is still failing with the "__pfnDliNotifyHook2: redefinition" problem. I also ran npm run win-fixnpm again just in case it needed all this before it ran. No luck yet.

A couple of things to note. I do have the "anniversary update" of Windows 10 installed. I have VS2017 installed, and with the optional web tools in VS2017 and even VS2015, I may have another version of node installed. If I just start a command prompt or gitbash it reports node 7.6.0 though. I need to run out now but I'll check in again later. Hopefully we can learn something about why I'm getting the white screen.

@bsclifton
Copy link
Member

@anyong
Copy link

anyong commented Aug 29, 2017

@bsclifton --disable-gpu had no effect - still blank white screen.

@eduardocorral
Copy link

Same here, --disable-gpu and --ignore-gpu-blacklist have no effect.
Happening frequently in

Brave: 0.19.3 
rev: 053c863b789c864bc83782520818ae91e4b7df49 
Muon: 4.4.9 
libchromiumcontent: 60.0.3112.101 
V8: 6.0.286.54 
Node.js: 7.9.0 
Update Channel: Beta 
OS Platform: Linux 
OS Release: 4.10.0-33-generic 
OS Architecture: x64

This is in dmesg

[ 7438.735157] traps: brave[28429] trap int3 ip:1af009d sp:7ffedda41550 error:0
[ 7438.735165]  in brave[400000+5e38000]

glxinfo

$ glxinfo | egrep -i "vendor|renderer"
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile

Card

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
02:00.0 VGA compatible controller: NVIDIA Corporation GK208M [GeForce GT 730M] (rev a1)

@anyong
Copy link

anyong commented Sep 12, 2017

I finally did get this working, not sure what I did differently or what changed but a fresh clone and npm install worked, I can now launch brave from source... still can't launch it from the package installer though. I'll try to look into the issue if I have some time.

@appurist
Copy link

That makes me think this is related to having other (probably incompatible) versions of some of the key files on my machine somewhere, perhaps in my search path.

So I updated the PATH to put c:\Users\Paul\AppData\Local\brave\ first in the list, but I still have the same problem. Now there's only really the Brave.exe file there, but if it searched the path for key dependencies in a relative way, I was hoping that might result in a different response. No luck. I realized there was a second Brave.exe in the app directory and I tried adding the --disable-gpu and --ignore-gpu-blacklist directly to a shortcut directly there, but again no improvement.

I also noticed that there were two app-0.nn.nn folders, so I removed the older 0.17 version, didn't help. I then uninstalled it all, and downloaded and reinstalled the latest. Also tried running the BraveDefaults.exe but still no joy.

So it doesn't seem to be anything in my path; perhaps just an incompatible version of something installed somewhere else like the system folder. Or it's not related to files installed at all but perhaps my hardware (although I would assume a Dell XPS box with an i7 processor and an nvidia 980 would be pretty common).

@anyong
Copy link

anyong commented Sep 25, 2017

Alright, I have solved this issue - at least for myself. I haven't started to look through the code yet, but somewhere there is code that runs differently with NODE_ENV === 'development' and causing this issue. This should be fixed & development stuff needs to be removed from release builds.

If I get more time I will try digging through code to see if I can find anything.

@appurist
Copy link

appurist commented Sep 25, 2017

@anyong You are the hero of the issue! Working for me now too, after I removed the NODE_ENV environment variable set to 'development' that I had set up system-wide. I did indeed have that set. (I'll use something project-specific going forward.) This is the kind of environmental setting that I suspected but couldn't figure out which setting was troublesome. Thank you!

Note that after I removed it, a new installer run still opened a white window at the end, so at first I thought it didn't work. However, when I launched it manually/directly from the desktop shortcut created by the installer, it opened just fine. I closed it and repeated that, and again it was fine. It looks like this is indeed somehow triggering the problem. So at least that gives the Brave developers something to test with, to try to reproduce the problem locally.

Much appreciate the update with the workaround!

@luixxiul
Copy link
Contributor

CC @bsclifton for investigation.

@bsclifton bsclifton self-assigned this Sep 25, 2017
@Roobyx
Copy link

Roobyx commented Sep 28, 2017

Amazing !!! I can confirm the exact same result as @appurist and @anyong. Changing the global NODE_ENV does fix the problem (after you run the browser from the shortcut, not the initial start)

@jonathansampson
Copy link
Collaborator

I was just coming to file an issue after I too realized that NODE_ENV = 'development' was causing a white-box/hang during startup. I tried several other values (' ', 'production', etc), which didn't reproduce the issue. Only development repro'd, which makes sense.

@bbondy bbondy removed this from the Backlog milestone Oct 19, 2017
@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@s-horn
Copy link

s-horn commented Jan 25, 2018

Had the same symptoms: completely white screen, no bars. Windows 10, x64. Responded to resizing, ALT+F4, and CTRL+N. In the developer console, there were two errors:

localhost:9017/gen/app.entry.js Failed to load resource: net::ERR_CONNECTION_REFUSED
localhost:9017/gen/lib.devTools.js Failed to load resource: net::ERR_CONNECTION_REFUSED

I noticed that in the npm run watch window, it had two different ports logged:

Project is running at http://localhost:8081/
webpack output is served from http://localhost:9017/gen/
Content not from webpack is served from C:\Users\Stephen\Documents\git\browser-laptop\app\extensions\brave

ran npm config set brave:port 8081, and now it comes up fine. The message from npm run watch is now

Project is running at http://localhost:8081/
webpack output is served from http://localhost:8081/gen/
Content not from webpack is served from C:\Users\Stephen\Documents\git\browser-laptop\app\extensions\brave

I hope this is useful to anyone else experiencing the same issue.

@knowler
Copy link

knowler commented May 3, 2018

We are experiencing this issue with Webpack/Browsersync running in Sage on both Windows and macOS. I was able to reproduce it in a Laravel Mix (Webpack)/Browsersync setup as well. The above NODE_ENV=production fix worked in both situations.

Related thread: https://discourse.roots.io/t/blank-browsersync/12362?u=knowler

@bsclifton
Copy link
Member

Since we have a documented workaround and also because we're moving to Brave Core and won't be addressing this before then, I believe it makes sense to close this issue

@bsclifton bsclifton removed this from the Triage Backlog milestone Jul 25, 2018
@brightintegration
Copy link

brightintegration commented Aug 6, 2018

I have this issue after a first time install of Brave on my iMac. Documented workaround doesn't document a workaround for Mac. What to do?

@LaurenWags
Copy link
Member

@okebaja what version of Mac are you seeing this with? not sure if it will work, but you could try closing Brave, opening up your Activity Monitor and seeing if there are any zombie Brave processes. If so, kill them and try launching Brave again. or just restart your machine and see if that does the trick?

@bsclifton
Copy link
Member

bsclifton commented Aug 6, 2018

@okebaja do you happen to have the NODE_ENV set globally? I know this can interfere with things

edit: see #915 for more info

@brightintegration
Copy link

brightintegration commented Aug 7, 2018

@bsclifton No I do not have it set. echo $[NODE_ENV] yields '0' on my system, and PRINTENV does not list NODE_ENV.
@LaurenWags I am running High Sierra on an early 2009 Mac. Activity Monitor shows 1 Brave process and 6 Brave helper processes. Pls note that I had this issue even at first run.

To add to this: it seems to be a system wide problem. Chrome does not show web pages anymore nor does it show its own settings pages. Links are present on the white screen, I see them when I move the mouse around and accidentally hover on them. Clicking the link even loads it, but yields another white (or the same) white screen. That is not the case with Brave, however, since it did not load a page yet, no links are observed in this way. Toolbar apps that use web tech to show their menus (like Crashplan) do not show anything anymore (except the 'ghost' links).

@bsclifton
Copy link
Member

@okebaja can you try launching Brave via the command line? You can try the disable GPU flag to see if that helps. The command would look like:
/Applications/Brave.app/Contents/MacOS/Brave --disable-gpu

@brightintegration
Copy link

Hi @bsclifton, did as you suggested. This is the output of the command:
[1090:775:0807/203144.054996:ERROR:gpu_process_transport_factory.cc(1016)] Lost UI shared context.
Crash reporting enabled
[1090:775:0807/203149.984756:ERROR:display_ca_layer_tree.mm(89)] Frame had neither valid CAContext nor valid IOSurface.
[1090:775:0807/203149.987186:ERROR:display_ca_layer_tree.mm(89)] Frame had neither valid CAContext nor valid IOSurface.

the last error is repeated over and over again after this.

@bsclifton
Copy link
Member

@okebaja no change in the user interface after launching? (ex: still white inside the GUI?)

@brightintegration
Copy link

brightintegration commented Aug 7, 2018

@bsclifton Nope, the GUI never shows. The process in the terminal shows some 10 ~ 20 errors (all the same) then stops. As said, the GUI does not show. If the terminal process is terminated, a popup shows saying that Brave stopped responding, with option to ignore or relaunch.

@brightintegration
Copy link

brightintegration commented Aug 7, 2018

@bsclifton As said before, this was a system-wide problem and probably not even related to Brave. I did a reinstall of Mac OS X, and now Brave does show normally and I can use it. Thanks for the support! (I suspect this problem started after installation of Firefox; I completely wiped Firefox, then did a reinstall of OS X which solved the issue - brute force)

@bsclifton
Copy link
Member

bsclifton commented Aug 7, 2018

@okebaja awesome! Thanks for reporting back- and glad to hear you're up and running now 😄 👍

@Roobyx
Copy link

Roobyx commented Aug 9, 2018

My problem was the NODE_ENV (some other people had it too) Brave worked depending on the PROD or DEV environment setting.
I am glad to say that that seems like its not a problem anymore. I have not changed anything on my system since the start of this problem, but Brave works now!

@strider72
Copy link

I got the same issue (transparent or white windows in Brave) after installing the latest version of Duet Display. (v1.5.3.2) www.duetdisplay.com . Running Brave with --disable-gpu fixes the issue. I've submitted an issue with Duet as well. As Duet emulates a display (specifically, uses an iPad as a display), I would guess it's a driver-related issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/driver needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. project-tracking
Projects
None yet
Development

No branches or pull requests