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

VSCODE flickers in full screen mode #41513

soveckyFonarik opened this issue Jan 12, 2018 · 51 comments

VSCODE flickers in full screen mode #41513

soveckyFonarik opened this issue Jan 12, 2018 · 51 comments


Copy link

@soveckyFonarik soveckyFonarik commented Jan 12, 2018

Version 1.19.2
Fixation 490ef76
Date 2018-01-10T15: 55: 03.538Z
Shell 1.7.9
Drawer 58.0.3029.110
Host 7.9.0
Architecture x64

Steps to Reproduce:

  1. press f11
  2. coding....

there are unpleasant flickering, orange in full screen mode

Copy link

@jhasse jhasse commented Jan 12, 2018

On which operation system?

Copy link

@bpasero bpasero commented Jan 12, 2018

Can you share a screen cast?

Copy link

@soveckyFonarik soveckyFonarik commented Jan 12, 2018

@bpasero, @jhasse
I can not, because there is a flicker for a second. The effect is amplified if the virtual desktop changes
Microsoft Windows [Version 10.0.16299.192]
orange color - my color cheme in windows....

Copy link

@bpasero bpasero commented Jan 12, 2018

@soveckyFonarik does it reproduce when you run "code --disable-gpu"?

Copy link

@soveckyFonarik soveckyFonarik commented Jan 12, 2018

@bpasero Cool, apparently my amd radeon hd 7750 is to blame? 👍 :D
with this flicker key I do not watch

Copy link

@demestav demestav commented Jan 15, 2018

I am recently experiencing the same behavior on Ubuntu 16.04. Parts of the screen flicker briefly.

The --disable-gpu argument suggested by @bpasero seems to resolve the issue.

Copy link

@Hammster Hammster commented Jan 18, 2018

Had the same issue and --disable-gpu resolved it. My GPU is the R9 270X.

Copy link

@radutomy radutomy commented Feb 3, 2018

I'm experiencing the same flickers on Ubuntu 17.10. Very annoying

Copy link

@developerruhul developerruhul commented Mar 18, 2018

same here in ubuntu!! I've been experiencing the issue for like 2-3 months. It's not a new issue

Copy link

@slayer slayer commented Apr 26, 2018

Same on Ubuntu 17.10 with external monitor (in full screen mode only)

Copy link

@n-3-0 n-3-0 commented May 20, 2018

I'm running Debian Sid, kernel 4.16.0-1-amd64, with Intel HD Graphics 630 & NVIDIA GeForce GTX 1050 Mobile, and was able to remove all flickering in vscode 1.23.1 with Bumblebee by not using --disable-gpu, and running optirun code.

Copy link

@Duelsik Duelsik commented Jul 6, 2018

Same on Ubuntu 18.04 LTS with GTX1080Ti with removed stock drivers and installed latest nvidia drivers. --disable-gpu fixed problem.

Copy link

@theFroh theFroh commented Jul 9, 2018

Same on Ubuntu 18.04 with a GeForce GT 610.
However, for other GNOME users here's a workaround that seems to behave fine for me:

  1. Open Settings > Keyboard
  2. Search for "Toggle fullscreen mode" and assign a shortcut to it (I've chosen Super+F11)
  3. Instead of using F11 or the application's own fullscreen mode, use GNOME's via your shortcut

This works without flickering for me, though I imagine it might not bring with it any GPU fullscreen optimisations (on that front it is probably better, performance-wise, than disabling GPU acceleration altogether!).

Copy link

@ylxdzsw ylxdzsw commented Aug 16, 2018

Hi, I'm experiencing the same problem on Manjaro with Gnome. Using Super+F11 to enter gnome's "fullscreen" mode does not help, while "--disable-gpu" fixed it for me.

Copy link

@alexamy alexamy commented Aug 18, 2018

Same problem with VSCode 1.26.1, Ubuntu 18.04.1, GeForce GTX 760
Have the same issue with nvidia-driver-390, nvidia-340 drivers.
--disable-gpu solves the problem.

Copy link

@mayrbenjamin92 mayrbenjamin92 commented Aug 30, 2018

Question: Is there anybody who does not have this issue? :D

Copy link

@Hammster Hammster commented Aug 31, 2018

Yes, my windows machines don't have this issue.

Copy link

@alexamy alexamy commented Aug 31, 2018

I dont have this issue on windows 7 too.

Copy link

@radutomy radutomy commented Aug 31, 2018

The issue is just on Linux-based systems.

Copy link

@Hammster Hammster commented Aug 31, 2018

@radutomy not entirely true, soveckyFonarik the issue creator has windows 10. The issue is more likely to be some error caused by electron or the driver/hardware constellation.

Apparently most or maybe all nvidia-driver-* packages on linux are affected which explains the high density of this issue on Linux based systems. The strange part is it works on my gnome ubuntu 16.04 without any issues but my Debian installation still flickers on the same machine (Dualboot).

Copy link

@SerhiiCho SerhiiCho commented Sep 13, 2018

Ubuntu 18.04 same issue, maybe it's related to Intel HD Graphics 520 (Skylake GT2) video card

Copy link

@freifrauvonbleifrei freifrauvonbleifrei commented Oct 10, 2018

I have the same problem - with Ubuntu 18.04.1. I see the flickering

  • with and without --disable-gpu flag
  • on fullscreen and windowed mode

Copy link

@tkuraku tkuraku commented Oct 14, 2018

vscode was working perfectly. However, after update 1.28.1 while fullscreen I get a persistent flicker in the vscode window making it unusable. If the window is not maximized it seems to be fine.

OS: Centos 7.5
Graphics: AMD RX 470

Copy link

@iahmedov iahmedov commented Nov 2, 2018

Same issue as @tkuraku described

VS Code Version: 1.28.2
Ubuntu: 16.04
Grpahics: Integrated

Copy link

@matthewphilyaw matthewphilyaw commented Nov 3, 2018

I have a similar issue I think. I'm currently running Feodora 29, but also noticed this issue on ubuntu 18.04 on the same hardware setup described below.

For all my notes below I had started VS Code with the disable gpu flag.

Specifically I'm getting flicker when in full screen mode primarily when a tool tip pops in the explorer bar and my mouse runs through it (the cursors passes through the tool tip). This also seems to happen for tool tips in the tab bar as well, however not an issue for completion pop ups etc.

Oddly enough if I click to on a second monitor to put focus on what ever is on that monitor and then move my mouse back to VS Code (not clicking to bring focus back) and hover over items in the explorer that pop tool tips the flicker goes away. However, simply click to bring focus back to VS Code the flicker returns.

A few other things that I have noted:

  • Only happens for me in full screen mode
  • Seems to only be triggered by mousing over tool tip or clicking into the VS Code from another monitor to gain focus on the window.
  • Sometimes it clears up (e.g. I didn't restart the app) if there are fullscreen apps behind it (I had terminal app on the same workspace), but this doesn't always happen - bear in mind I'm also moving the window between workspaces when this clears up so that could be a factor as well. Not entirely sure how the window is handled as it moves between workspaces.
  • It's not 100% clear what starts the flicker, its not something that is there from the start of the app. Just a moment ago it started after I clicked "open folder" from the explorer bar. Typically persist until I restart VS Code with the exception of what I noted about about how sometimes it clears up if another full screen app is behind it.
  • The flicker for the most part is really the entire window disappearing exposing the desktop then the screen snaps back (it's really fast, but I can see the desktop as well as other apps behind the window).
  • I get the flicker on both monitors (see xrandr output below), which are different resolutions

System Info

code --version

uname -a
Linux localhost.localdomain 4.18.16-300.fc29.x86_64 #1 SMP Sat Oct 20 23:24:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

lspci -k | grep -EA3 VGA             
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 371a
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

cat /proc/driver/nvidia/version 
NVRM version: NVIDIA UNIX x86_64 Kernel Module  410.66  Wed Oct 10 12:01:53 CDT 2018
GCC version:  gcc version 8.2.1 20180801 (Red Hat 8.2.1-2) (GCC)

Screen 0: minimum 8 x 8, current 4160 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 798mm x 334mm
   2560x1080     60.00*+
   1920x1080     60.00    59.94    50.00    29.97    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DVI-D-1 connected 1600x900+2560+0 (normal left inverted right x axis y axis) 442mm x 249mm
   1600x900      60.00*+
   1280x800      59.81  
   1280x720      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  

cat /usr/share/gnome/gnome-version.xml 
<?xml version="1.0"?>

Copy link

@eugenebnd eugenebnd commented Nov 4, 2018

ubuntu 18.04 - same issue
Switched to wayland - no flickering
--disable-gpu is really not an option.
Guys, let's try to fix it.

Copy link

@robzon robzon commented Nov 7, 2018

Having this issue on Ubuntu 18.10 on a Librem13 laptop.

Copy link

@makanbeling makanbeling commented Nov 12, 2018

Got this issue in Ubuntu 18.10 with VSCode 1.28.2, please fix this soon.

Copy link

@mofax mofax commented Nov 19, 2018

Upgraded my Dell XPS 13 9370 to Ubuntu 18.04 from 16.04 and started having this problem.

$ code --version

$ lsb_release -irc
Distributor ID:	Ubuntu
Release:	18.04
Codename:	bionic

issue seems to disappear when I revert to using the native title bar

"window.titleBarStyle": "native"

Copy link

@eldarshamukhamedov eldarshamukhamedov commented Dec 1, 2018

I believe this is related to the version of Electron that is shipped with VSCode by default, which I believe is still 1.x? I first ran into this issue a few months back, when I switched to an Ubuntu 18.04 Dell XPS laptop. I noticed the same issues in another app, Slack, which also uses Electron 1.x. Same flickering, only on Linux, and only when the apps are fullscreen (or maximized) on an external 4K monitor. After trying a bunch of things, I switched to VSCode Insiders, which uses Electron 2.x, and the flickering went away. I know Insiders isn't for everyone, but maybe this will help someone until VSCode ships Electron 3.x, which seems to be in the works.

For VSCode devs, some symptoms:

  1. "Flickering" isn't the perfect word to describe the effect. It actually looks like some DOM layers are either not rendered, or rendered partially.
  2. Not unique to VSCode. Slack on Electron 1.x has the same flickering issues.
  3. Only occurs when the editor window is larger than a certain size. When I have VSCode take up half the width of a 4K screen, flickering goes away, but as I stretch the window closer and closer to full width, the effect get worse and worse. I can repro this in VSCode and in Slack.
  4. I have never seen this come up on macOS or Windows, despite using those VSCode builds heavily.

My hardware:
Ubuntu 18.04
Dell XPS 13 2018 9370
i7-8550U Processor
Intel® UHD Graphics 620

This bug describes the issue perfectly: #45492

Copy link

@snailuj snailuj commented Dec 5, 2018

I had been experiencing the same problem intermittently for a couple weeks after setting "window.titleBarStyle": "custom". Setting it back to "native" as referred to by @mofax fixed it for me.

code --version

Distributor ID: Debian
Release:        9.6
Codename:       stretch

Using Dell 24" Ultrasharp UHD monitor and an AOC 27" UHD with onboard Intel graphics on an ASRock K6 Z370 mboard.

Copy link

@DanielJoyce DanielJoyce commented Dec 15, 2018

Weird. Ubuntu 18.04 and setting title bar style to custom fixed it for me.

Else the entire window when full screen would flicker in brightness...

Copy link

@DanielJoyce DanielJoyce commented Dec 15, 2018

Okay switching back to native cured it there too.

Copy link

@FelipeGdM FelipeGdM commented Dec 18, 2018

Had the same problem on Debian 9.6 Gnome 3.22.2
Adding the --disable-gpu fixed the issue

Copy link

@rahil051 rahil051 commented Dec 20, 2018


"window.titleBarStyle": "native"

adding this configuration literally solves the problem for me. I remember that the last time I updated VSCode on my Mint Linux machine, the window title bar style was changed to Microsoft Windows style, and after that the flickering problem started to happen. The solution was to force the editor back to the native styled title bar.

Copy link

@Akuukis Akuukis commented Dec 20, 2018

"window.titleBarStyle": "native"

Had the same problem, solves also for me.

OS: Debian 9.5
Kernel: Linux 4.19.0-rc4-amd64
Videocard: ASUSTeK Computer Inc. Baffin [Radeon RX 460/560D / Pro 450/455/460/555/560] [1043:054d]

Copy link

@mofax mofax commented Dec 21, 2018

another discovery I made on a different computer
if you set

"window.titleBarStyle": "native"

but the flikering continues ... also add this

"terminal.integrated.rendererType": "dom",

completely solved the flickers on all my machines, on both regular and insider releases

Copy link

@dreamsComeTrue dreamsComeTrue commented Dec 29, 2018

--disable-gpu - did trick for me :)

Copy link

@sohail042414 sohail042414 commented Jan 16, 2019

Adding this worked for me, on ubuntu 16.04 .
"window.titleBarStyle": "native"

Copy link

@dork1 dork1 commented Feb 12, 2019

On a fresh install and machine, changing my display resolution back to my 'recommended' setting did it for me it seems.

Copy link

@DanielJoyce DanielJoyce commented Feb 12, 2019

For me it was "Dynamic Brightness" on my dell xps 13. Why they though this was a good idea I don't know. When sections on the screen got bright enough, it'd bounce off my shirt, triggering the light sensor, causing the brightness to adjust. Scrolling would cause a flicker as brighter areas of the screen would scroll into/out of view.

So dumb.

If you own a fancy laptop, check in the bios for "Dynamic Brightness" and turn it off.

Copy link

@francisceril francisceril commented Mar 5, 2019

--disable-gpu seems to solve for me as well. Now, how can I make this permanent?

Copy link

@atharvajohri atharvajohri commented Apr 11, 2019

"window.titleBarStyle": "native" . fixed it for me on my MacOS Mojave 10.14

Copy link

@FDiskas FDiskas commented May 16, 2019

Same for me: 😴

Version: 1.34.20-insider
Commit: e83e24a0c9225becd7341e56952177a20d5d4629
Date: 2019-05-14T16:08:09.042Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-30deepin-generic

Copy link

@methodbox methodbox commented May 22, 2019

On a fresh install and machine, changing my display resolution back to my 'recommended' setting did it for me it seems.

Are you saying toggling to recommended and back to the setting you actually wanted, or just leaving it on Recommended? Because that's not really a solution.

Copy link

@Wunkolo Wunkolo commented Jun 27, 2019

I get this on windows as well. --disable-gpu seems to fix it.

When I press F11 or when I enter Zen-Mode my screen flashes black and certain elements would vibrate around as well. I also notice that I get a shadowplay notification when going full-screen. That only tends to happen when a game is ran or something. I am on a 2080ti with driver version 425.31. This seems to happen to others on Intel and AMD gpus though and might just be a rendering issue with Electron like some of the other tickets say.

I hope the --disable-gpu mitigation doesn't have to be required anymore.

Copy link

@bpasero bpasero commented Oct 9, 2019

This can be configured now. Closing as duplicate of #15211

@bpasero bpasero closed this Oct 9, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet