You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Highlighting, flickering, and rendering graphics display issues #154705
chromiumIssues and items related to Chromiumelectron-18-updategpuIssues concerning GPU related itemsupstreamIssue identified as 'upstream' component related (exists outside of VS Code)virtual-machineIssues related to virtualbox, parallels etc
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.69.0
OS Version: Fedora 36 (VMware guest VM)
Steps to Reproduce:
Upgrade from 1.68.1 to 1.69.0
Open a code file and start to try and highlight blocks of code with your mouse
After a few seconds of doing this repeated you will get strange flickering and blocking display issues
This appears to be a regression from 1.68.1 since didn't happen on my system with this version, and when I downgrade back to 1.68.1 the problem of course disappears, so doesn't appear to be caused by any very recent Fedora system package updates. In 1.69.0, if I launch with --disable-gpu, then the issue also disappears.
This is the same problem that I'm getting on Ubuntu 22.04 that I described in #152816 (comment). Starting VS Code with --disable-gpu also fixes the issue for me. It also works if I set "disable-hardware-acceleration": true as described here in the v1.40 release notes.
I hope this is getting looked at with some urgency. VS Code is still usable with the graphical glitches but it's distracting.
Same issue with macOS (12.4) guest in VMware - VS Code 1.69 is completely unusable.
Fixed by reverting VS Code to version 1.68.1 or using flag "disable-hardware-acceleration": true (--disable-gpu).
Unfortunately, I've started noticing another issue where dropdown menus don't always paint fully when selected. For example if I left-click the "View" option in the menu bar at the top, perhaps it will just display an empty white rectangle. The various options like "Command Palette..." and "Open View..." then appear in blocks as I move my cursor down. If I leave "View" and try again, it might be fully filled out. Sometimes it might only be partially filled out.
This new problem only seems to happen with GPU acceleration disabled, so it's either/or for me to choose which problem I want to have. I can make a new issue for this if the VS Code developers think I should, please let me know.
I want to stress how bad this all is, especially the glitchiness with GPU acceleration enabled. It's only bearable since it just happened and clearly the developers are hard at work fixing emergency issues. If this were ignored or marked as some distant roadmap item I would probably move to a different product.
The fix of setting "disable-color-correct-rendering": false described in #152816 (comment) does not fix the glitchiness with GPU acceleration, so these really must be different problems.
The fix of setting "disable-color-correct-rendering": false described in #152816 (comment) does not fix the glitchiness with GPU acceleration, so these really must be different problems.
Both the original problem and the dropdown menu problem I described above in #154705 (comment) are still in v1.69.2.
Robo (@deepak1556) I see this issue has been assigned to you. Please let me know if you want me to open another issue for the dropdown menu problem. I don't want to take focus from Leandro Hermida (@hermidalc) 's reported problem unless you think they're related or otherwise specifically want to keep them together in this issue for some reason.
Jeremy Nation (@jeremyn) absolutely don't worry about being chatty, that's what GitHub issues and discussions are all about. Every little bit helps them find the source of the problem
Neither Electron nor VSCode are responsible for hardware acceleration support, the work is done by chromium. This bug is a usual case were the runtime did not disable hardware acceleration by default for drivers it cannot support using this blocklist. The reason for asking to test with exploration build is to see if newer chromium runtime has addressed it. Looks like it has been addressed with Chromium 104 https://bugs.chromium.org/p/chromium/issues/detail?id=1327939, Electron 19 only uses Chromium 102. I will backport the fix to Electron 19 branch and it will be available with insiders next week.
For now, please continue to use with --disable-gpu or the runtime argument "disable-hardware-acceleration": true as a workaround.
Robo (@deepak1556) Reading the Chromium bug report carefully it looks like the "fix" is going to be just disabling GPU acceleration by default, meaning I can remove "disable-gpu-acceleration": true from argv.json but acceleration will still be disabled. Is that right?
I can't tell from your comment whether you mean that v1.68.1 already had GPU acceleration disabled automatically or not. I've tried v1.68.1 and v1.69.2 with acceleration manually enabled and disabled. In both versions enabling acceleration seems to make editing feel snappier, though I might be imagining at least some of that, but it's also definitely the case that in both versions, without GPU acceleration, I get the menu painting problem I described at #154705 (comment). (Also please note that I asked in that comment whether I should make a separate issue for that, and didn't get a response.) So acceleration makes an objectively noticeable difference in both versions.
So if you could explain the different behavior between v1.68.1 and v1.69.2 in more detail and the intended behavior with the incoming fix, that would help, because I'm confused.
Also none of this explains why the problem went away for Leandro Hermida (@hermidalc) in Fedora 36 with the exploration build that apparently does not have the incoming fix. Any ideas there?
Robo (@deepak1556)Jeremy Nation (@jeremyn) it was very hard to see it, my bad, but even in the video no one saw it. But in the vscode-exploration build you gave yes there are still highlighting graphics rendering issue. See the left vertical lines:
Neither Electron nor VSCode are responsible for hardware acceleration support, the work is done by chromium. This bug is a usual case were the runtime did not disable hardware acceleration by default for drivers it cannot support using this blocklist. The reason for asking to test with exploration build is to see if newer chromium runtime has addressed it. Looks like it has been addressed with Chromium 104 https://bugs.chromium.org/p/chromium/issues/detail?id=1327939, Electron 19 only uses Chromium 102. I will backport the fix to Electron 19 branch and it will be available with insiders next week.
For now, please continue to use with --disable-gpu or the runtime argument "disable-hardware-acceleration": true as a workaround.
And to push on Jeremy Nation (@jeremyn) question, do you mean that 1.68 and the underlying Chromium build inside it already had gpu acceleration hardcoded disabled? Or at least part of the graphics is?
Robo (@deepak1556) Reading the Chromium bug report carefully it looks like the "fix" is going to be just disabling GPU acceleration by default, meaning I can remove "disable-gpu-acceleration": true from argv.json but acceleration will still be disabled. Is that right?
I can't tell from your comment whether you mean that v1.68.1 already had GPU acceleration disabled automatically or not. I've tried v1.68.1 and v1.69.2 with acceleration manually enabled and disabled. In both versions enabling acceleration seems to make editing feel snappier, though I might be imagining at least some of that, but it's also definitely the case that in both versions, without GPU acceleration, I get the menu painting problem I described at #154705 (comment). (Also please note that I asked in that comment whether I should make a separate issue for that, and didn't get a response.) So acceleration makes an objectively noticeable difference in both versions.
So if you could explain the different behavior between v1.68.1 and v1.69.2 in more detail and the intended behavior with the incoming fix, that would help, because I'm confused.
Also none of this explains why the problem went away for Leandro Hermida (@hermidalc) in Fedora 36 with the exploration build that apparently does not have the incoming fix. Any ideas there?
Jeremy Nation (@jeremyn) I tried same and manually disabled hardward acceleration on my 1.68.1 and don't notice any difference really. It would be very hard to notice any difference in performance, so I imagine at least parts of VSCode and Chromium already had this hardcoded disabled regardless of what is set in argv.json. I'm continuing with latest 1.69 and onward with it disabled manually until Chromium can get things working because all the same to me really.
Leandro Hermida (@hermidalc) I created a separate issue #156719 for the menu display problem I mentioned earlier. In my case that other problem starts when GPU acceleration is disabled and stops when it's enabled. So even if I'm imagining smoother cursor movements with GPU acceleration on, the menu problem shows me that GPU acceleration definitely has some effect. It's a better problem to have than the graphical glitches this issue is about, though, but it's not all the same to me, since I get one problem or the other depending on whether acceleration is enabled or not.
It would be great to get some guidance from Robo (@deepak1556) on all these questions and on the other issue. If the coming patch doesn't fix both problems for me, and based on this discussion I don't think it will, we might want to reopen this issue, or I might make a new one if you want to get out of this one.
Reading the Chromium bug report carefully it looks like the "fix" is going to be just disabling GPU acceleration by default, meaning I can remove "disable-gpu-acceleration": true from argv.json but acceleration will still be disabled. Is that right?
Robo (@deepak1556) Thanks. Would you please comment here when the automatic disabling fix has made its way into VS Code stable?
Also both Leandro Hermida (@hermidalc) and I asked whether Chromium (and VS Code) has always had GPU acceleration automatically disabled in VMware Linux guests. If GPU acceleration is broken in that configuration I would at least expect some issue in the Chromium tracker like "make GPU acceleration work in VMware Linux guests" even if the issue sits there with no activity. Robo (@deepak1556) Could you please answer this directly even if just to say you don't know?
No updates lately; are people still experiencing this issue?
If so, should we consider blocklisting VMWare drivers by default (and using software rendering)?
which is then seconded by another project member. My guess is the Chromium team would accept fixes but no one wants to look into it.
So disabling acceleration by default seems the only real option. Probably the menu display problem isn't directly related, except that it's maybe caused by some display refresh bug that only happens with software rendering. In a way we were lucky that this acceleration bug existed because it let us discover that GPU acceleration fixes the menu problem.
Also both Leandro Hermida (@hermidalc) and I asked whether Chromium (and VS Code) has always had GPU acceleration automatically disabled in VMware Linux guests. If GPU acceleration is broken in that configuration I would at least expect some issue in the Chromium tracker like "make GPU acceleration work in VMware Linux guests" even if the issue sits there with no activity. Robo (@deepak1556) Could you please answer this directly even if just to say you don't know?
I looked back and Chromium has had the VMware graphics issue open since 2018 at least, and since then I can see they’ve only taken the route of blocklisting, so would say good luck with that, not sure if going to have any traction.
chromiumIssues and items related to Chromiumelectron-18-updategpuIssues concerning GPU related itemsupstreamIssue identified as 'upstream' component related (exists outside of VS Code)virtual-machineIssues related to virtualbox, parallels etc
Activity
jeremyn commentedon Jul 11, 2022
This is the same problem that I'm getting on Ubuntu 22.04 that I described in #152816 (comment). Starting VS Code with
--disable-gpualso fixes the issue for me. It also works if I set"disable-hardware-acceleration": trueas described here in the v1.40 release notes.I hope this is getting looked at with some urgency. VS Code is still usable with the graphical glitches but it's distracting.
Boris-Rasin commentedon Jul 12, 2022
Same issue with macOS (12.4) guest in VMware - VS Code 1.69 is completely unusable.
Fixed by reverting VS Code to version 1.68.1 or using flag
"disable-hardware-acceleration": true(--disable-gpu).jeremyn commentedon Jul 12, 2022
VS Code v1.69.1 was just released, however this problem still remains. On the other hand it's not listed in https://github.com/microsoft/vscode/issues?q=is%3Aissue+milestone%3A%22June+2022+Recovery+1%22+is%3Aclosed so I don't think it was supposed to be fixed, either.
Unfortunately, I've started noticing another issue where dropdown menus don't always paint fully when selected. For example if I left-click the "View" option in the menu bar at the top, perhaps it will just display an empty white rectangle. The various options like "Command Palette..." and "Open View..." then appear in blocks as I move my cursor down. If I leave "View" and try again, it might be fully filled out. Sometimes it might only be partially filled out.
This new problem only seems to happen with GPU acceleration disabled, so it's either/or for me to choose which problem I want to have. I can make a new issue for this if the VS Code developers think I should, please let me know.
I want to stress how bad this all is, especially the glitchiness with GPU acceleration enabled. It's only bearable since it just happened and clearly the developers are hard at work fixing emergency issues. If this were ignored or marked as some distant roadmap item I would probably move to a different product.
hermidalc commentedon Jul 12, 2022
I can't even use 1.69 at all really, they display issues are just too much for my eyes and make it too hard to work. Thankfully 1.68 works
jeremyn commentedon Jul 13, 2022
The fix of setting
"disable-color-correct-rendering": falsedescribed in #152816 (comment) does not fix the glitchiness with GPU acceleration, so these really must be different problems.Also, like Leandro Hermida (@hermidalc) and Boris Rasin (@Boris-Rasin) I too am seeing this problem in a VMware guest.
hermidalc commentedon Jul 13, 2022
Yeah I'm wondering something that devs changed in 1.69 that doesn't play well with VMware guest GPU acceleration, but 1.68 works perfectly!
jeremyn commentedon Jul 18, 2022
Both the original problem and the dropdown menu problem I described above in #154705 (comment) are still in v1.69.2.
Robo (@deepak1556) I see this issue has been assigned to you. Please let me know if you want me to open another issue for the dropdown menu problem. I don't want to take focus from Leandro Hermida (@hermidalc) 's reported problem unless you think they're related or otherwise specifically want to keep them together in this issue for some reason.
[-]Highlighting graphics display issues [/-][+]Highlighting, flickering, and rendering graphics display issues [/+]19 remaining items
hermidalc commentedon Jul 27, 2022
Jeremy Nation (@jeremyn) absolutely don't worry about being chatty, that's what GitHub issues and discussions are all about. Every little bit helps them find the source of the problem
deepak1556 commentedon Jul 29, 2022
Neither Electron nor VSCode are responsible for hardware acceleration support, the work is done by chromium. This bug is a usual case were the runtime did not disable hardware acceleration by default for drivers it cannot support using this blocklist. The reason for asking to test with exploration build is to see if newer chromium runtime has addressed it. Looks like it has been addressed with Chromium 104 https://bugs.chromium.org/p/chromium/issues/detail?id=1327939, Electron 19 only uses Chromium 102. I will backport the fix to Electron 19 branch and it will be available with insiders next week.
For now, please continue to use with
--disable-gpuor the runtime argument"disable-hardware-acceleration": trueas a workaround.jeremyn commentedon Jul 29, 2022
Robo (@deepak1556) Reading the Chromium bug report carefully it looks like the "fix" is going to be just disabling GPU acceleration by default, meaning I can remove
"disable-gpu-acceleration": truefromargv.jsonbut acceleration will still be disabled. Is that right?I can't tell from your comment whether you mean that v1.68.1 already had GPU acceleration disabled automatically or not. I've tried v1.68.1 and v1.69.2 with acceleration manually enabled and disabled. In both versions enabling acceleration seems to make editing feel snappier, though I might be imagining at least some of that, but it's also definitely the case that in both versions, without GPU acceleration, I get the menu painting problem I described at #154705 (comment). (Also please note that I asked in that comment whether I should make a separate issue for that, and didn't get a response.) So acceleration makes an objectively noticeable difference in both versions.
So if you could explain the different behavior between v1.68.1 and v1.69.2 in more detail and the intended behavior with the incoming fix, that would help, because I'm confused.
Also none of this explains why the problem went away for Leandro Hermida (@hermidalc) in Fedora 36 with the exploration build that apparently does not have the incoming fix. Any ideas there?
hermidalc commentedon Jul 30, 2022
Robo (@deepak1556) Jeremy Nation (@jeremyn) it was very hard to see it, my bad, but even in the video no one saw it. But in the vscode-exploration build you gave yes there are still highlighting graphics rendering issue. See the left vertical lines:
s I just didn't see them the first time around.
hermidalc commentedon Jul 30, 2022
And to push on Jeremy Nation (@jeremyn) question, do you mean that 1.68 and the underlying Chromium build inside it already had gpu acceleration hardcoded disabled? Or at least part of the graphics is?
hermidalc commentedon Jul 30, 2022
Jeremy Nation (@jeremyn) I tried same and manually disabled hardward acceleration on my 1.68.1 and don't notice any difference really. It would be very hard to notice any difference in performance, so I imagine at least parts of VSCode and Chromium already had this hardcoded disabled regardless of what is set in
argv.json. I'm continuing with latest 1.69 and onward with it disabled manually until Chromium can get things working because all the same to me really.jeremyn commentedon Jul 30, 2022
Leandro Hermida (@hermidalc) I created a separate issue #156719 for the menu display problem I mentioned earlier. In my case that other problem starts when GPU acceleration is disabled and stops when it's enabled. So even if I'm imagining smoother cursor movements with GPU acceleration on, the menu problem shows me that GPU acceleration definitely has some effect. It's a better problem to have than the graphical glitches this issue is about, though, but it's not all the same to me, since I get one problem or the other depending on whether acceleration is enabled or not.
It would be great to get some guidance from Robo (@deepak1556) on all these questions and on the other issue. If the coming patch doesn't fix both problems for me, and based on this discussion I don't think it will, we might want to reopen this issue, or I might make a new one if you want to get out of this one.
hermidalc commentedon Jul 31, 2022
Jeremy Nation (@jeremyn) are you getting the issue #156719 in the clean Fedora 36 guest VM you spooled up?
deepak1556 commentedon Aug 1, 2022
Yes that is correct.
Thanks for creating #156719. I have commented in that issue for next steps.
jeremyn commentedon Aug 1, 2022
I've responded at #156719 (comment) for the menu problem.
Robo (@deepak1556) Thanks. Would you please comment here when the automatic disabling fix has made its way into VS Code stable?
Also both Leandro Hermida (@hermidalc) and I asked whether Chromium (and VS Code) has always had GPU acceleration automatically disabled in VMware Linux guests. If GPU acceleration is broken in that configuration I would at least expect some issue in the Chromium tracker like "make GPU acceleration work in VMware Linux guests" even if the issue sits there with no activity. Robo (@deepak1556) Could you please answer this directly even if just to say you don't know?
jeremyn commentedon Aug 1, 2022
From the Chromium tracker: issues https://bugs.chromium.org/p/chromium/issues/detail?id=800453 (from 2018) and https://bugs.chromium.org/p/chromium/issues/detail?id=929764 (from 2019) seem relevant. There's this comment from a Chromium project member in the second issue, from 2021, after a year of no activity:
which is then seconded by another project member. My guess is the Chromium team would accept fixes but no one wants to look into it.
So disabling acceleration by default seems the only real option. Probably the menu display problem isn't directly related, except that it's maybe caused by some display refresh bug that only happens with software rendering. In a way we were lucky that this acceleration bug existed because it let us discover that GPU acceleration fixes the menu problem.
hermidalc commentedon Aug 1, 2022
I looked back and Chromium has had the VMware graphics issue open since 2018 at least, and since then I can see they’ve only taken the route of blocklisting, so would say good luck with that, not sure if going to have any traction.