Skip to content

Menus don't always display correctly in Ubuntu guest in VMware with GPU acceleration disabled #156719

Closed as not planned

Description

Issue Type: Bug

I'm using an Ubuntu 22.04 guest in VMware with GPU acceleration disabled. Sometimes when I open a menu dropdown, the options don't display until I move my mouse over them. See the attached webm file for an example.

I originally reported this problem at #154705 (comment). Disabling GPU acceleration works around the different problem described in that issue.

VS Code version: Code 1.69.2 (3b889b0, 2022-07-18T16:14:10.636Z)
OS version: Linux x64 5.15.0-43-generic
Restricted Mode: Yes

System Info
Item Value
CPUs AMD Ryzen 7 3700X 8-Core Processor (2 x 3600)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 0, 0, 1
Memory (System) 7.76GB (2.08GB free)
Process Argv --disable-gpu --disable-extensions --crash-reporter-id 0ddd5c78-f440-4dee-bff2-c646a50f1eda
Screen Reader no
VM 100%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions disabled
vscode_menu_display_bug.webm

Activity

  1. deepak1556 commented on Aug 1, 2022

    @deepak1556
    Collaborator

    Looks like you are using native titlebar ? Can you try with custom titlebar "window.titleBarStyle": "custom" and see if the issue persists ?

  2. added
    info-needed
    linux
    titlebar
    gpu
    and removed on Aug 1, 2022
  3. jeremyn commented on Aug 1, 2022

    @jeremyn
    Author

    Leandro Hermida (@hermidalc) asked at #154705 (comment):

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

    No, I can't reproduce this menu problem in Fedora 36 using either v1.69.2 stable or the v1.70 exploration build provided at #154705 (comment).

    Robo (@deepak1556) Yes the title bar setting was set to native, the default. I've changed it to custom and this problem doesn't happen there. Thanks very much! That's a totally decent workaround until this problem is properly fixed. (Actually the custom menus look better to me so I'll probably keep that setting permanently.)

  4. added
    upstream
    chromium
    virtual-machine
    and removed
    info-needed
    on Aug 2, 2022
  5. deepak1556 commented on Dec 13, 2022

    @deepak1556
    Collaborator

    Does this issue persist with latest stable 1.74 ? If so, can you try launching with --disable-gpu.

  6. added
    bug
    info-needed
    on Dec 13, 2022
  7. jeremyn commented on Dec 13, 2022

    @jeremyn
    Author

    Yes, I'm still getting the menu display problem with VS Code v1.74 on Ubuntu 22.04 with the native setting. Also recall from the discussion in #154705 that GPU acceleration in Chromium is so broken on Linux on VMware that the expected "fix" was to disable it permanently within Chromium. It looks like the Chromium team did that and that change has made its way into VS Code, so --disable-gpu or not is irrelevant.

  8. deepak1556 commented on Dec 14, 2022

    @deepak1556
    Collaborator

    Based on your comment from #154705 (comment), the problem only occurs when hardware acceleration is disabled. Given chromium disables hardware acceleration for VMWare and this is an issue with the native titlebar which we don't control, marking as out-of-scope. Please switch to use custom titlebar as workaround "window.titleBarStyle": "custom".

  9. jeremyn commented on Dec 14, 2022

    @jeremyn
    Author

    I understand you can't fix the problem in Chromium, however native is the default setting in VS Code which means that the menus are broken by default. The default should be custom when appropriate.

  10. locked and limited conversation to collaborators on Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugchromiumgpuinfo-neededlinuxtitlebarupstreamvirtual-machine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions