Skip to content

Highlighting, flickering, and rendering graphics display issues  #154705

Closed

Description

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:

  1. Upgrade from 1.68.1 to 1.69.0
  2. Open a code file and start to try and highlight blocks of code with your mouse
  3. 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.

Screenshot from 2022-07-10 11-52-48

Activity

  1. jeremyn commented on Jul 11, 2022

    @jeremyn

    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.

  2. Boris-Rasin commented on Jul 12, 2022

    @Boris-Rasin

    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).

  3. jeremyn commented on Jul 12, 2022

    @jeremyn

    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.

  4. hermidalc commented on Jul 12, 2022

    @hermidalc
    Author

    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

  5. jeremyn commented on Jul 13, 2022

    @jeremyn

    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.

    Also, like Leandro Hermida (@hermidalc) and Boris Rasin (@Boris-Rasin) I too am seeing this problem in a VMware guest.

  6. hermidalc commented on Jul 13, 2022

    @hermidalc
    Author

    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.

    Also, like Leandro Hermida (@hermidalc) and Boris Rasin (@Boris-Rasin) I too am seeing this problem in a VMware guest.

    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!

  7. jeremyn commented on Jul 18, 2022

    @jeremyn

    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.

  8. changed the title [-]Highlighting graphics display issues [/-] [+]Highlighting, flickering, and rendering graphics display issues [/+] on Jul 18, 2022
  9. 19 remaining items

  10. hermidalc commented on Jul 27, 2022

    @hermidalc
    Author

    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

  11. deepak1556 commented on Jul 29, 2022

    @deepak1556
    Collaborator

    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.

  12. added this to the August 2022 milestone on Jul 29, 2022
  13. jeremyn commented on Jul 29, 2022

    @jeremyn

    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?

  14. hermidalc commented on Jul 30, 2022

    @hermidalc
    Author

    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:

    Screenshot from 2022-07-30 09-59-51
    s I just didn't see them the first time around.

  15. hermidalc commented on Jul 30, 2022

    @hermidalc
    Author

    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?

  16. hermidalc commented on Jul 30, 2022

    @hermidalc
    Author

    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.

  17. jeremyn commented on Jul 30, 2022

    @jeremyn

    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.

  18. hermidalc commented on Jul 31, 2022

    @hermidalc
    Author

    Jeremy Nation (@jeremyn) are you getting the issue #156719 in the clean Fedora 36 guest VM you spooled up?

  19. deepak1556 commented on Aug 1, 2022

    @deepak1556
    Collaborator

    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?

    Yes that is correct.

    I get the menu painting problem I described at #154705 (comment)

    Thanks for creating #156719. I have commented in that issue for next steps.

  20. jeremyn commented on Aug 1, 2022

    @jeremyn

    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?

  21. jeremyn commented on Aug 1, 2022

    @jeremyn

    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:

    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.

  22. hermidalc commented on Aug 1, 2022

    @hermidalc
    Author

    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.

  23. locked and limited conversation to collaborators on Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chromiumelectron-18-updategpuupstreamvirtual-machine

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions