升级到 Code 1.69.1 后 VSCode 文本闪烁/消失

问题描述 投票:0回答:2

我也有类似的文本闪烁问题(更像是升级到代码 1.69.1 后文本消失)。附件是显示问题的下图

Flickering Text

闪烁问题是动态的,即文本的各个部分会在某个时刻显示,然后在一段时间后消失...没有一个时间点所有文本都出现在控制台中

分辨率 我尝试通过在终端键入:

code --enable-native-gpu-memory-buffers
code --disable-gpu
来解决它,但它不能解决显示问题。

VS code 安装在 Ubuntu18.04 虚拟机上。我检查了另一个类似的虚拟机(相同的配置和设置),出现了同样的问题。

  • 但是当我检查主机操作系统(运行Windows 10)上运行的VS Code时,似乎没有这样的问题。
  • 我开始怀疑是否是某些linux文件(在我运行sudo apt-get update&upgrade后出现问题,这也升级了代码)影响了VSCode。因此,为了进行实验,我继续尝试在另一台运行相同虚拟机的计算机上升级 VSCode(除了我使用它运行较新的 VMware 播放器(v16 而不是 v15))。没有这样的问题。它工作得很好。

信息 我尝试过跑步

code --status
。这是我的发现

[7965:0714/084658.745148:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[8000:0714/084659.205337:ERROR:angle_platform_impl.cc(44)] renderergl_utils.cpp:188 (ClearErrors): Preexisting GL error 0x00000500 as of ../../third_party/angle/src/libANGLE/renderer/gl/TextureGL.cpp, setImageHelper:256.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
[8000:0714/084659.573378:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.573719:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.573946:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.574163:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.574432:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.574712:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.574952:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.575217:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.575442:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.575692:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.575928:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.576155:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.576375:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.576534:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.576733:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.576939:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.577182:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.577396:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.577627:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.577850:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
[8000:0714/084659.578052:ERROR:gbm_wrapper.cc(275)] Failed to export buffer to dma_buf: No such file or directory (2)
Version:          Code 1.69.1 (b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a, 2022-07-12T08:28:29.328Z)
OS Version:       Linux x64 5.4.0-122-generic
CPUs:             Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz (8 x 2807)
Memory (System):  7.74GB (0.39GB free)
Load (avg):       0, 0, 0
VM:               100%
Screen Reader:    no
Process Argv:     --unity-launch --crash-reporter-id af9edcb1-babf-40b9-bb72-ce9b845e3f92
GPU Status:       2d_canvas:                              enabled
                  canvas_oop_rasterization:               disabled_off
                  direct_rendering_display_compositor:    disabled_off_ok
                  gpu_compositing:                        enabled
                  multiple_raster_threads:                enabled_on
                  opengl:                                 enabled_on
                  rasterization:                          enabled
                  raw_draw:                               disabled_off_ok
                  skia_renderer:                          enabled_on
                  video_decode:                           disabled_software
                  video_encode:                           disabled_software
                  vulkan:                                 disabled_off
                  webgl:                                  enabled
                  webgl2:                                 enabled

CPU %   Mem MB     PID  Process
    0      143    6514  code main
    0       40    6519     zygote
    0       95    6554       gpu-process
    0       16    6573         broker
    0       40    6520     zygote
    0        0    6522       zygote
    0       55    6560     utility-network-service
    0      238    6572     window (Wahwah.h - audacity - Visual Studio Code)
    0      127    6621     shared-process
    0       63    6650       ptyHost
    0       63    6690       fileWatcher
    0      135    6634     extensionHost
    0       79    6757       /home/xmonster/.vscode/extensions/ms-vscode.cpptools-1.10.8-linux-x64/bin/cpptools

Workspace Stats: 
|  Window (Wahwah.h - audacity - Visual Studio Code)
|    Folder (audacity): 6853 files
|      File types: py(1142) h(1059) cpp(729) png(599) ttl(530) c(366)
|                  trig(337) nt(220) nq(196) txt(127)
|      Conf files: cmake(41) sln(16) dockerfile(4) github-actions(2)
|                  makefile(1)

我很确定问题与我的显示设置有关(如上所示,它运行得不好)。然而,从这里我真的不知道如何继续,除了使用上面的显示命令来编码

这里需要一些帮助或建议

谢谢

ubuntu visual-studio-code vmware-player
2个回答
3
投票

我不太确定这是否是正确的解决方案,但它似乎解决了我的问题...希望它能帮助其他面临这个问题的人

我已针对遇到问题的特定虚拟机关闭了 vmware 中的加速 3D 图形选项。现在可以使用并且所有文本都会出现

干杯


0
投票

我刚才也遇到了同样的问题,关闭 VMware 设置中的加速 3D 图形选项即可修复该问题。

© www.soinside.com 2019 - 2024. All rights reserved.