vscode: Crash at startup with Wayland on KDE Plasma
Issue Type: Bug
Trying to start code using Ozone Wayland crash with the following log
code-insiders --enable-features=UseOzonePlatform --ozone-platform=wayland --log=TRACE --verbose
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
[7701:0406/094513.965001:WARNING:wayland_object.cc(94)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[7701:0406/094513.965079:WARNING:wayland_object.cc(94)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[7701:0406/094513.965085:WARNING:wayland_object.cc(94)] Binding to wl_output version 2 but version 3 is available.
[7701:0406/094513.966243:WARNING:wayland_drm.cc(96)] Failed to get drm magic
(code-insiders:7701): Gdk-WARNING **: 09:45:13.984: Wayland compositor does not support xdg_shell interface, not using Wayland display
[7701:0406/094513.984396:ERROR:browser_main_loop.cc(267)] GLib: g_hash_table_destroy: assertion 'hash_table != NULL' failed
(code-insiders:7701): Gtk-WARNING **: 09:45:13.984: cannot open display: :1
Electron 17.3.1 was supposed to fix Wayland crashes, so I guess this is a new one 😦
VS Code version: Code - Insiders 1.67.0-insider (f050b17dacedba13962244b13c70084a473d08f7, 2022-04-06T05:16:11.110Z) OS version: Linux x64 5.16.14-1-MANJARO snap Electron: 17.3.1 Chromium: 98.0.4758.141 Node.js: 16.13.0 V8: 9.8.177.13-electron.0 Restricted Mode: No
Compositor and DE:
- plasmashell 5.24.3
- kwin 5.24.3
System Info
Item | Value |
---|---|
CPUs | 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz (8 x 2413) |
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 oop_rasterization: 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) | 5, 2, 1 |
Memory (System) | 15.32GB (3.83GB free) |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | plasmawayland |
XDG_CURRENT_DESKTOP | KDE |
XDG_SESSION_DESKTOP | KDE |
XDG_SESSION_TYPE | wayland |
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 10
- Comments: 21 (16 by maintainers)
Unfortunately the bug still seems to be present, with no change in the error message so now I’m wondering if https://github.com/microsoft/vscode/pull/127320 might be the issue (or the solution I guess).
Hi @deepak1556! No worries and thank you very much for having a look!
@deepak1556
$GDK_BACKEND
is unset and$WAYLAND_DISPLAY=wayland-0
.edit sorry for the extra ping, I was not sure you had been notified 😃