microsoft / vscode

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

VS code crashes when the ozone platform is set to wayland #232925

Open erion043 opened 2 days ago

erion043 commented 2 days ago

Type: Bug

  1. run the vs code binary as such: code --enable-features=UseOzonePlatform --ozone-platform=wayland

  2. Drag your cursor to the "file" option on the toolbar.

VS Code version: Code 1.95.1 (65edc4939843c90c34d61f4ce11704f09d3e5cb6, 2024-10-31T05:14:54.222Z) OS version: Linux x64 6.11.5-arch1-1 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5800U with Radeon Graphics (16 x 3783)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off| |Load (avg)|2, 1, 1| |Memory (System)|15.01GB (10.55GB free)| |Process Argv|--crash-reporter-id 0bfd1b20-5361-49ce-aae4-bdbd1eb4d97c| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|hyprland| |XDG_CURRENT_DESKTOP|Hyprland| |XDG_SESSION_DESKTOP|undefined| |XDG_SESSION_TYPE|wayland|
Extensions (20) Extension|Author (truncated)|Version ---|---|--- es7-react-js-snippets|dsz|4.4.3 react-native-react-redux|EQu|2.0.6 vsc-material-theme|Equ|34.7.7 vsc-material-theme-icons|equ|3.8.8 rainbow-csv|mec|3.12.0 debugpy|ms-|2024.12.0 python|ms-|2024.18.0 vscode-pylance|ms-|2024.10.1 jupyter|ms-|2024.10.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.21 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 cmake-tools|ms-|1.19.52 cpptools|ms-|1.23.0 cpptools-extension-pack|ms-|1.3.0 vscode-react-native|msj|1.13.0 material-icon-theme|PKi|5.12.0 html5-boilerplate|sid|1.1.1 cmake|twx|0.0.17 (3 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 9c06g630:31013171 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 nativerepl1:31139838 refactort:31108082 pythonrstrctxt:31112756 cf971741:31144450 iacca1:31171482 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31170013 ```
SagaVortex commented 1 day ago

same problem here. I have a crash the moment I click file in the menu

neksodebe commented 1 day ago

same problem here but it doesn't even start up

neksodebe commented 1 day ago

for some unknown mystery reason, going to the GTK Settings app and pressing apply on the mouse cursor menu fixed it.

no idea how, no idea why, but it works now. huge thanks to this guy on reddit

SagaVortex commented 1 day ago

but I use KDE and don't have that

rthees commented 1 day ago

There seems to be a workaround for this file-toolbar-crash-issue: https://github.com/microsoft/vscode/issues/232873#issuecomment-2454887753