Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When you open Visual Studio Code you get a black screen and cant see anything #13799

Closed
rahdev opened this issue Oct 15, 2016 · 10 comments
Closed
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@rahdev
Copy link

rahdev commented Oct 15, 2016

  • VSCode Version: Latest Stable Release from download
  • OS Version:Ubuntu 64 bit running in Virtual Box VM

Steps to Reproduce:

  1. Log into Virtual Box Ubuntu VM
  2. Download and install VSC .deb
  3. Start Application from Developer folder
  4. You get a black screen and cant see anything.
@amritanshu-pandey
Copy link

visual-studio-code-bug
I am also facing the same issue. In the screen shot, the window appears to be white, but actually its black.

@tomcumming
Copy link

tomcumming commented Oct 16, 2016

can reproduce on ubuntu 16.04 running on virtualbox latest stable

works ok when starting with code --disable-gpu

@isidorn
Copy link
Contributor

isidorn commented Oct 17, 2016

Dup of some issue opened 7 days ago - please search our github issues for details.
In short: an electron rendering problem in the meantime please start with the flag you already found

@isidorn isidorn closed this as completed Oct 17, 2016
@isidorn isidorn added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 17, 2016
@MehmetKaplan
Copy link

As a workaround, I have edited file /usr/share/applications/code.desktop

Replacing
Exec=/usr/share/code/code --unity-launch %U
with
Exec=/usr/share/code/code --disable-gpu --unity-launch %U
solved my problem of launching code through launcher.

Just in case one may need...

@jradxl
Copy link

jradxl commented Mar 13, 2017

Indeed I did, Thankyou!

@jgeorgeson
Copy link

The --disable-gpu option isn't working for me, though it's just the application text that isn't displayed for me (file contents are displayed. . Maybe just missing some fonts?

vscode-no-content

Version info:

Version 1.10.2
Commit 8076a19fdcab7e1fc1707952d652f0bb6c6db331
Date 2017-03-08T14:00:46.854Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

Running on CentOS 7.3 in Xfce4 under vnc4xserver, connected via TightVNC Viewer.

@ArtStepanyuk
Copy link

code --disable-gpu Workaround works just fine for me

@jgeorgeson
Copy link

@ArtStepanyuk thanks for commenting as I couldn't find this issue again to follow-up! In my case it's a matter of unmet dependencies rather than the GPU rendering. I'm running on an AWS EC2 instance of the official Centos 7.x AMI, and had only installed the xfce4 group and vnc4xserver. Once I also installed the "Server with GUI" group then the application text started rendering. So there's a runtime dependency that's not declared in the RPM.

@nighto
Copy link

nighto commented Oct 2, 2017

On Windows 10, after last update (Help > About says version 1.16.1) when I open Code the screen goes totally black, as if I have powered my monitor off (if that was possible on a notebook). Running with --disable-gpu fixes the problem.

@nicolasayotte
Copy link

nicolasayotte commented Nov 14, 2017

I'm running on Windows 10 with Code v1.18.0 and I have the black screen bug too. For me, Zen Mode renders correctly even with this bug (CTRL-K, Z) if that can give a clue to the devs.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

10 participants