microsoft / vscode

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

Visual Studio Code with blank screen when run with gpu #131829

Closed sosacode20 closed 1 year ago

sosacode20 commented 3 years ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Execute in bash the next command: prime-run code
  2. After that VSCode open up in black
System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2800)| |GPU Status|2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|1, 1, 1| |Memory (System)|15.52GB (5.50GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch /home/leismael/Desktop/Leismael/School/2nd year/EDA I/EDA I Codigo VSCode/Codigo en Dart --crash-reporter-id ed9ba8a1-719d-416a-b602-5fd374219e9a| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasma| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|x11|
Extensions (76) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.1.0 codesnap|adp|1.3.4 Bookmarks|ale|13.1.0 project-manager|ale|12.3.0 flutter-snippets|ale|2.0.0 vscode-django|bat|1.6.0 search-crates-io|bel|1.2.1 markdown-mermaid|bie|1.10.0 better-toml|bun|0.3.2 vscode-glsllint|CAD|1.4.0 glsl-canvas|cir|0.2.13 gitignore|cod|0.7.0 bracket-pair-colorizer-2|Coe|0.2.1 supersharp|cra|0.1.4 vscode-svgviewer|css|2.0.0 dart-code|Dar|3.25.1 flutter|Dar|3.25.0 vscode-markdownlint|Dav|0.43.2 vscode-eslint|dba|2.1.23 githistory|don|0.6.18 gitlens|eam|11.6.0 vscode-html-css|ecm|1.10.2 vscode-great-icons|emm|2.1.79 vsc-material-theme-icons|equ|2.0.10 pubspec-dependency-search|eve|1.1.0 bloc|Fel|5.8.0 vscode-solution-explorer|fer|0.4.4 vscode-firefox-debug|fir|2.9.4 code-runner|for|0.11.5 auto-using|Fud|0.7.15 kotlin|fwc|0.2.23 godot-tools|gee|1.1.2 go|gol|0.27.1 todo-tree|Gru|0.0.213 vscode-test-explorer|hbe|2.21.0 live-html-previewer|hdg|0.3.0 pubspec-assist|jer|2.3.0 vscode-todo-highlight|jgc|2.0.3 vscode-github|Kni|0.30.6 rust-analyzer|mat|0.2.718 git-graph|mhu|1.30.0 theme-monokai-pro-vscode|mon|1.1.19 csharp|ms-|1.23.14 python|ms-|2021.8.1147840270 vscode-pylance|ms-|2021.8.2 jupyter|ms-|2021.8.1236758218 cpptools|ms-|1.6.0 test-adapter-converter|ms-|0.1.2 cargo|pan|0.2.3 vscode-versionlens|pfl|1.0.9 material-icon-theme|PKi|4.10.0 platformio-ide|pla|2.3.3 synthwave-vscode|Rob|0.1.8 crates|ser|0.5.9 markdown-preview-enhanced|shd|0.6.0 shader|sle|1.1.5 vscode-3dviewer|sle|0.2.2 shader-toy|ste|0.10.15 vscode-rust-test-adapter|Swe|0.11.0 tabnine-vscode|Tab|3.4.23 even-better-toml|tam|0.14.2 ayu|tea|0.20.2 open-in-browser|tec|2.0.0 vsfire|tob|1.4.1 pdf|tom|1.1.0 cmake|twx|0.0.17 vscode-lldb|vad|1.6.5 vscodeintellicode|Vis|1.2.14 vscode-arduino|vsc|0.4.3 vscode-java-dependency|vsc|0.18.7 vscode-icons|vsc|11.6.0 gitblame|wad|8.1.0 JavaScriptSnippets|xab|1.8.0 markdown-all-in-one|yzh|3.4.0 json|Zai|2.0.2 material-theme|zhu|3.11.4 (7 theme extensions excluded)
ErjanGavalji commented 3 years ago

I have the same problem on KDE (kubuntu, 20.04.3 LTS) with the command of code ..

A temporary solution for me is running VSCode with GPU disabled: code . --disable-gpu

Some more details on the graphics controller might help:

VGA compatible controller [0300]: NVIDIA Corporation GF116M [GeForce GT 560M] [10de:1251] (rev a1) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. GF116M [GeForce GT 560M] [1043:204a] Flags: bus master, fast devsel, latency 0, IRQ 31 Memory at f2000000 (32-bit, non-prefetchable) [size=32M] Memory at e0000000 (64-bit, prefetchable) [size=128M] Memory at e8000000 (64-bit, prefetchable) [size=64M] I/O ports at d000 [size=128] Expansion ROM at 000c0000 [disabled] [size=128K] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Endpoint, MSI 00 Capabilities: [b4] Vendor Specific Information: Len=14 <?> Capabilities: [100] Virtual Channel Capabilities: [128] Power Budgeting <?> Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?> Kernel driver in use: nouveau Kernel modules: nvidiafb, nouveau

sosacode20 commented 3 years ago

Yeah, that works. But I don't understand why the problem with the gpu in Linux and not in Windows

ErjanGavalji commented 3 years ago

The only thing I can relate to graphics is wine-devel I have installed that might interfere with windows-specific graphics handling code.

I'll try with a full removal when I have the time to back the windows-specific things up.

deepak1556 commented 1 year ago

This is a limitation from the runtime, please continue to run with hardware acceleration disabled. Closing as not actionable.