Display Error with Visual Studio Code under Ubuntu

I have a problem with Visual Studio Code for several days: it cannot be started (in fact, the window is almost completely black), but here is the console output when I launch it from the terminal:

bash: impossible de rรฉgler le groupe de processus du terminlal (-1): Ioctl() inappropriรฉ pour un pรฉriphรฉrique bash: pas de contrรดle de tรขche dans ce shell [3267:0609/135005:ERROR:buffer_manager.cc(361)] [.CommandBufferContext.Compositor-0xc0a90cb29a0]GL ERROR :GL_INVALID_ENUM : glBufferData: <- error from previous GL command [3267:0609/135007:ERROR:texture_manager.cc(2278)] [.CommandBufferContext.RenderCompositor-0x29650b4d9c60]GL ERROR :GL_INVALID_ENUM : glTexImage2D: <- error from previous GL command [3267:0609/135007:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWorker-0x29650b4d96e0]GL ERROR :GL_INVALID_ENUM : GLES2DecoderImpl::DoBindTexImage2DCHROMIUM: <- error from previous GL command [3267:0609/135007:ERROR:gles2_cmd_decoder.cc(2113)] [.CommandBufferContext.RenderWorker-0x29650b4d96e0]GL ERROR :GL_INVALID_OPERATION : ScopedTextureBinder::ctor: was unhandled [3267:0609/135007:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWorker-0x29650b4d96e0]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command [3267:0609/135007:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWorker-0x29650b4d96e0]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command [3267:0609/135007:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWorker-0x29650b4d96e0]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command [3267:0609/135007:ERROR:gles2_cmd_decoder.cc(2109)] [.CommandBufferContext.RenderWorker-0x29650b4d96e0]GL ERROR :GL_INVALID_VALUE : ScopedTextureBinder::dtor: <- error from previous GL command 
+6
source share
2 answers

I had the same problem and installing virtualbox guest add-ons version 5.0.16 really solved the problem. However, as noted in the FAQ section of the VS Code project website, you can also run VS code with the --disable-gpu option, which also solves the problem. From the official FAQ:

Is the VS code main window empty?

The Electron shell used by Visual Studio code has problems with some hardware acceleration of the GPU. If the VS code displays a blank (empty) main window, you can try disabling GPU acceleration when running the VS code by adding the Electron command-line switch -disable-gpu.

+14
source

On ubuntu, first try running the visual studio code from the terminal with:

 code 

If there is any package error, install it. Then, if there is a black screen, go to:

 sudo vi /usr/share/applications/code.desktop 

Add disable gpu line as follows:

 Exec=/usr/share/code/code --disable-gpu %U 
+2
source

All Articles