microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.81k stars 29.12k forks source link

VS Code 1.54.x fails to redraw window contents after switching between virtual desktops in i3 window manager #118549

Closed zambal closed 1 year ago

zambal commented 3 years ago

This issue seems to occur only when using the i3 window manager. Other than using i3, my Ubuntu install is pretty standard. I just upgraded totday from 1.52.1 to 1.54.1, so this issue may have been introduced before 1.54.1.

Steps to Reproduce:

  1. Open a vscode instance
  2. Open a new window in vscode (Ctrl + x Ctrl + n)
  3. Navigate to another virtual desktop in i3
  4. Navigate back to the virtual desktop with the two vscode windows.
  5. If the issue occurs, you should see the contents of the previous virtual desktop, instead of the contents of the vs code windows.

As a workaround, you can switch the i3 container layout to stacked or tabbed and back again to force a redraw.

This is how it looks on my desktop:

Screenshot from 2021-03-09 15-28-15

Does this issue occur when all extensions are disabled?: Yes

vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

deepak1556 commented 3 years ago

Does launching with --disable-gpu help ?

zambal commented 3 years ago

@deepak1556 Just tried this, but using --disable-gpu doesn't seem to make a difference unfortunately.

If it helps, it's not the first time I have seen this behavior using an application with i3 as a window manager, but that was a long time ago (maybe even a different laptop, I'm not sure). One of those applications was Bitwig Studio (DAW/Music production software), but that was fixed a long time ago and they are using Java for the GUI.

zambal commented 3 years ago

I see this is labeled as an upstream issue, so I assume it'll take a while before this is tackled. Could someone give a broad estimate when this is addressed (days, weeks, or maybe even months)?

Spikatrix commented 3 years ago

--disable-gpu does fix the issue for me

deepak1556 commented 1 year ago

Unable to repro the issue with latest stable 1.74 on Ubuntu 22.04