microsoft / vscode

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

Markdown Preview and some extensions work exactly once, then display black screen, when used remotely #212602

Open odwtech opened 1 month ago

odwtech commented 1 month ago

Type: Bug

Markdown Preview and some extensions work exactly once, then display black screen, when used remotely

Markdown Preview, extension mhutchie.git-graph-1.30.0, and extension phil294.git-log--graph-0.1.15 work exactly once, then display black screen. This occurs only when using these while connected remotely using the remote-ssh extension.

This problem seems to have been introduced in v1.73.

This problem is specific to the following host environment

$ uname -srm Linux 4.14.336-257.568.amzn2.x86_64 x86_64

$ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" SUPPORT_END="2025-06-30"

$ hostnamectl Static hostname: redacted Icon name: computer-vm Chassis: vm Machine ID: redacted Boot ID: redacted Virtualization: amazon Operating System: Amazon Linux 2 CPE OS Name: cpe:2.3:o:amazon:amazon_linux:2 Kernel: Linux 4.14.336-257.568.amzn2.x86_64 Architecture: x86-64

Steps to reproduce (here: markdown preview)

Step to reset the configuration, so that it will work again, but only once

delete the following key in the state.vscdb database: 'memento/mainThreadWebviewPanel.origins'

This can be automated using the sqlite3 binary from sqlite.org

.\sqlite3 "%APPDATA%\Code1852\userdata\User\globalStorage\state.vscdb" "delete from ItemTable where key = 'memento/mainThreadWebviewPanel.origins';"

Added by VS Code "report issue"

VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z) OS version: Windows_NT x64 10.0.17763 Modes: Remote OS version: Linux x64 4.14.336-257.568.amzn2.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6240R CPU @ 2.40GHz (16 x 2394)| |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: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|160.00GB (130.45GB free)| |Process Argv|--extensions-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1852\\extensions --user-data-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1852\\userdata --disable-updates| |Screen Reader|no| |VM|40%| |Item|Value| |---|---| |Remote|SSH: redacted#redacted| |OS|Linux x64 4.14.336-257.568.amzn2.x86_64| |CPUs|Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 x 3108)| |Memory (System)|30.95GB (24.69GB free)| |VM|0%|
Extensions (3) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.107.1 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.1
VSCodeTriageBot commented 1 month ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 1 month ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

You can also try disabling gpu acceleration to see if that's the root cause

odwtech commented 1 month ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

Yes. The only extensions installed are the ones that come with remote-ssh, which is required in order to connect to the Linux EC2 instance.

VS Code version: Code - Insiders 1.90.0-insider (3028408922e78cc9ca15ee761372a7c0603fa375, 2024-05-13T12:38:55.034Z) OS version: Windows_NT x64 10.0.17763 Modes: Remote OS version: Linux x64 4.14.336-257.568.amzn2.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6240R CPU @ 2.40GHz (16 x 2394)| |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: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|160.00GB (139.45GB free)| |Process Argv|--extensions-dir=.\\extensions --user-data-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1900\\userdata --disable-updates| |Screen Reader|no| |VM|40%| |Item|Value| |---|---| |Remote|SSH: redacted#redacted| |OS|Linux x64 4.14.336-257.568.amzn2.x86_64| |CPUs|Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 x 0)| |Memory (System)|30.95GB (26.03GB free)| |VM|0%|
Extensions (3) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.110.1 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3

You can also try disabling gpu acceleration to see if that's the root cause

Disabling GPU makes no difference.

VS Code version: Code - Insiders 1.90.0-insider (3028408922e78cc9ca15ee761372a7c0603fa375, 2024-05-13T12:38:55.034Z) OS version: Windows_NT x64 10.0.17763 Modes: Remote OS version: Linux x64 4.14.336-257.568.amzn2.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6240R CPU @ 2.40GHz (16 x 2394)| |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: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|160.00GB (139.17GB free)| |Process Argv|--disable-gpu --extensions-dir=.\\extensions --user-data-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1900\\userdata --disable-updates| |Screen Reader|no| |VM|40%| |Item|Value| |---|---| |Remote|SSH: redacted#redacted| |OS|Linux x64 4.14.336-257.568.amzn2.x86_64| |CPUs|Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 x 0)| |Memory (System)|30.95GB (25.94GB free)| |VM|0%|
Extensions (3) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.110.1 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3

v1900_insiders

odwtech commented 1 month ago

Bump.

odwtech commented 4 weeks ago

Type: Bug

And here's an example of markdown preview working fine on version v1.72.2.

vscbug_v1 72 2

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.17763 Modes: Sandboxed: No Remote OS version: Linux x64 5.10.215-203.850.amzn2.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6240R CPU @ 2.40GHz (16 x 2394)| |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: enabled_on
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
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|160.00GB (133.87GB free)| |Process Argv|--extensions-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1722\\\\extensions --user-data-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1722\\\\userdata --disable-updates --proxy-server=redacted --proxy-bypass-list=redacted| |Screen Reader|no| |VM|40%| |Item|Value| |---|---| |Remote|SSH: redacted#redacted| |OS|Linux x64 5.10.215-203.850.amzn2.x86_64| |CPUs|Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 x 3100)| |Memory (System)|30.89GB (25.86GB free)| |VM|0%|
Extensions (13) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.96.0 remote-ssh-edit|ms-|0.84.0 notepadplusplus-keybindings|ms-|1.0.7 vscode-icons|vsc|12.7.0 rainbow-csv|mec|3.11.0 git-graph|mhu|1.30.0 python|ms-|2022.16.1 vscode-pylance|ms-|2023.1.10 jupyter|ms-|2022.9.1303220346 jupyter-renderers|ms-|1.0.10 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 robotframework-lsp|rob|1.12.0
odwtech commented 4 weeks ago

I'd love to provide more information, if I knew where to look for. As it stands, I cannot even remove the label "info-needed" on my own issue... Can anybody give me some pointers on how to analyze this bug further? Thanks!

odwtech commented 3 weeks ago

@mjbvz : Do you need more information?

odwtech commented 2 weeks ago

Type: Bug

This is the actual reason we have opened this issue. Our project uses the git-graph extension a lot, and this extension is also affected by this bug.

Because of this issue, we are stuck at v1.72.2.

VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z) OS version: Windows_NT x64 10.0.17763 Modes: Remote OS version: Linux x64 5.10.215-203.850.amzn2.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6240R CPU @ 2.40GHz (16 x 2394)| |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: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software| |Load (avg)|undefined| |Memory (System)|160.00GB (126.84GB free)| |Process Argv|--extensions-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1901\\extensions --user-data-dir=d:\\Users\\redacted\\AppData\\Roaming\\Code1901\\userdata --disable-updates| |Screen Reader|no| |VM|40%| |Item|Value| |---|---| |Remote|SSH: redacted#redacted| |OS|Linux x64 5.10.215-203.850.amzn2.x86_64| |CPUs|Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 x 0)| |Memory (System)|30.89GB (22.62GB free)| |VM|0%|
Extensions (2) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.112.0 git-graph|mhu|1.30.0

vscbug_markdown_v1 90 1

vscbug_git-graph_v1 72 2

odwtech commented 2 weeks ago

Just tested again with v1.90.2. No change.