packages icon indicating copy to clipboard operation
packages copied to clipboard

vscode doesn't launch in gnome wayland session

Open malfisya opened this issue 1 year ago • 1 comments

Please confirm there isn't an existing open bug report

  • [X] I have searched open bugs for this issue

Summary

vscode doesn't launch in gnome wayland session

Steps to reproduce

launch vscode in gnome wayland session

Expected result

launches fine

Actual result

crash

 alfisya  ~  code-oss                                                                                                                                                  
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
libva error: /usr/lib64/dri/iHD_drv_video.so init failed
Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
[main 2024-08-02T15:38:36.281Z] update#setState disabled
[main 2024-08-02T15:38:36.282Z] update#ctor - updates are disabled as there is no update URL
[10159:0802/223836.670796:ERROR:wayland_event_watcher.cc(43)] libwayland: [destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a 

[0802/223836.691221:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0802/223836.692065:ERROR:elf_dynamic_array_reader.h(64)] tag not found
fish: Job 1, 'code-oss' terminated by signal SIGTRAP (Trace or breakpoint trap)

Environment

  • [X] Is system up to date?

Repo

Unstable

Desktop Environment

GNOME

System details

System: Host: desktop-solus Kernel: 6.9.12-297.current arch: x86_64 bits: 64 Desktop: GNOME v: 46.3.1 Distro: Solus 4.5 resilience Machine: Type: Desktop Mobo: Wibtek model: H77-M v: V1.3 serial: BIOS: American Megatrends v: 4.6.5 date: 09/03/2012 CPU: Info: quad core Intel Core i5-3570K [MCP] speed (MHz): avg: 1649 min/max: 1600/3800 Graphics: Device-1: Intel IvyBridge GT2 [HD Graphics 4000] driver: i915 v: kernel Device-2: AMD Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] driver: amdgpu v: kernel Device-3: Jieli USB PHY 2.0 driver: snd-usb-audio,uvcvideo type: USB Display: wayland server: X.Org v: 24.1.1 with: Xwayland v: 24.1.1 compositor: gnome-shell driver: X: loaded: amdgpu,modesetting unloaded: fbdev,radeon,vesa dri: radeonsi,crocus gpu: amdgpu,i915 resolution: 1: 1366x768~60Hz 2: 1366x768~60Hz API: OpenGL v: 4.6 compat-v: 4.2 vendor: amd mesa v: 24.1.5 renderer: AMD Radeon RX 550 / 550 Series (radeonsi polaris12 LLVM 18.1.8 DRM 3.57 6.9.12-297.current) Network: Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 Device-2: Realtek RTL8188EUS 802.11n Wireless Network Adapter driver: rtl8xxxu type: USB Drives: Local Storage: total: 700.51 GiB used: 364.67 GiB (52.1%) Info: Memory: total: 16 GiB available: 15.52 GiB used: 3.17 GiB (20.4%) Processes: 280 Uptime: 9m Shell: fish inxi: 3.3.35

Other comments

No response

malfisya avatar Aug 02 '24 15:08 malfisya

It took a long time to launch in Plasma (nVidia) today. There is no crash, but I see some of the same output as in the original report. The warnings are a possible secondary issue, let me know if I should break those out into a separate but report. The repeated error also looks concerning.

Launching with the options in the menu:

❯ code-oss --disable-crash-reporter --unity-launch %U
Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'unity-launch' is not in the list of known options, but still passed to Electron/Chromium.
[main 2024-08-04T19:50:24.903Z] update#setState disabled
[main 2024-08-04T19:50:24.904Z] update#ctor - updates are disabled as there is no update URL

[26004:0804/145054.848456:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[25926:0804/145054.850743:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=512
[26004:0804/145125.070096:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[25926:0804/145125.070938:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=512
[26004:0804/145155.252127:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[25926:0804/145155.254040:ERROR:gpu_process_host.cc(997)] GPU process exited unexpectedly: exit_code=512
[26004:0804/145155.423940:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

Stable, up to date

TraceyC77 avatar Aug 04 '24 19:08 TraceyC77

Still an issue? We've seen a few updates since.

ReillyBrogan avatar Sep 13 '24 06:09 ReillyBrogan

Just tried it again. No luck.

malfisya avatar Sep 15 '24 06:09 malfisya

Try this again with vscode 1.95 when it's finished building

ReillyBrogan avatar Oct 30 '24 03:10 ReillyBrogan

Still the same unfortunately. :disappointed:

malfisya avatar Oct 30 '24 21:10 malfisya

Does VSCODE_NO_WAYLAND=1 code-oss work?

ReillyBrogan avatar Oct 31 '24 01:10 ReillyBrogan

Yes, it works. I have been adding that to my desktop file to make it launch.

malfisya avatar Oct 31 '24 04:10 malfisya

Try code-oss --verbose -d, maybe it'll show you something interesting

ReillyBrogan avatar Oct 31 '24 18:10 ReillyBrogan

Nothing to note at glance :

 alfisya  ~  code-oss --verbose -d                                                                                                                                    
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
libva error: /usr/lib64/dri/iHD_drv_video.so init failed
[main 2024-11-01T00:31:51.846Z] [File Watcher (node.js)] Request to start watching: /home/alfisya/.config/Code/User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/home/alfisya/.config/Code/User/settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2024-11-01T00:31:51.889Z] Starting VS Code
[main 2024-11-01T00:31:51.889Z] from: /usr/share/vscode/resources/app
[main 2024-11-01T00:31:51.889Z] args: {
  _: [],
  diff: true,
  merge: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  'pre-release': false,
  'update-extensions': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-lcd-text': false,
  'disable-gpu': false,
  'disable-chromium-sandbox': false,
  sandbox: false,
  telemetry: false,
  debugRenderer: false,
  'enable-smoke-test-driver': false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'skip-welcome': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'use-inmemory-secretstorage': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'skip-add-to-recently-opened': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'preserve-env': false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  'disable-gpu-sandbox': false,
  '__enable-file-policy': false,
  'enable-coi': false,
  'no-proxy-server': false,
  'no-sandbox': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  'disable-dev-shm-usage': false,
  'profile-temp': false,
  logsPath: '/home/alfisya/.config/Code/logs/20241101T073151'
}
[main 2024-11-01T00:31:51.891Z] Resolving machine identifier...
[main 2024-11-01T00:31:51.891Z] Resolved machine identifier: 53078bc3d756819d41c07386fa399963f9686d4e402e5670b4c6633975692517
[main 2024-11-01T00:31:51.892Z] Main->SharedProcess#connect
[main 2024-11-01T00:31:51.897Z] [File Watcher (node.js)] Started watching: '/home/alfisya/.config/Code/User'
[main 2024-11-01T00:31:51.900Z] [File Watcher (node.js)] Started watching: '/home/alfisya/.config/Code/User/settings.json'
[main 2024-11-01T00:31:51.988Z] StorageMainService: creating application storage
[main 2024-11-01T00:31:51.995Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2024-11-01T00:31:51.995Z] lifecycle (main): phase changed (value: 2)
[main 2024-11-01T00:31:51.995Z] windowsManager#open
[main 2024-11-01T00:31:51.998Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: '9f38e2388d89ad07bb8656ad2dddc46f', uri: [Uri] },
    type: 2,
    exists: true
  }
]
[main 2024-11-01T00:31:51.999Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '9f38e2388d89ad07bb8656ad2dddc46f', uri: [Uri] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2024-11-01T00:31:52.002Z] IPC Object URL: Registered new channel vscode:e76e9d4f-c786-492f-9bec-4137f89d4276.
[main 2024-11-01T00:31:52.003Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, x: 215, y: 165, width: 1112, height: 527 }
[main 2024-11-01T00:31:52.003Z] window#validateWindowState: multi-monitor working area { x: 0, y: 0, width: 1366, height: 768 }
[main 2024-11-01T00:31:52.003Z] window#ctor: using window state { mode: 1, x: 215, y: 165, width: 1112, height: 527 }
[main 2024-11-01T00:31:52.067Z] window#load: attempt to load window (id: 1)
[main 2024-11-01T00:31:52.072Z] StorageMainService: creating workspace storage (9f38e2388d89ad07bb8656ad2dddc46f)
[main 2024-11-01T00:31:52.073Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, openOneEmptyWindow: false)
[main 2024-11-01T00:31:52.074Z] lifecycle (main): phase changed (value: 3)
[main 2024-11-01T00:31:52.074Z] resolveShellEnv(): running (macOS/Linux)
[main 2024-11-01T00:31:52.074Z] getUnixShellEnvironment#runAsNode undefined
[main 2024-11-01T00:31:52.074Z] getUnixShellEnvironment#noAttach undefined
[main 2024-11-01T00:31:52.075Z] getUnixShellEnvironment#env {
  SHELL: '/usr/bin/fish',
  SESSION_MANAGER: 'local/desktop-solus:@/tmp/.ICE-unix/1536,unix/desktop-solus:/tmp/.ICE-unix/1536',
  COLORTERM: 'truecolor',
  XDG_CONFIG_DIRS: '/run/xdg/:/etc/xdg/:/usr/share/xdg/',
  XDG_MENU_PREFIX: 'gnome-',
  PTYXIS_PROFILE: '7dcb7701954dea8c7e1fe8ae6717ac52',
  LC_ADDRESS: 'id_ID.UTF-8',
  LC_NAME: 'id_ID.utf8',
  SSH_AUTH_SOCK: '/run/user/1000/keyring/ssh',
  MEMORY_PRESSURE_WRITE: 'c29tZSAyMDAwMDAgMjAwMDAwMAA=',
  XMODIFIERS: '@im=ibus',
  DESKTOP_SESSION: 'gnome',
  LC_MONETARY: 'id_ID.UTF-8',
  ELECTRON_OZONE_PLATFORM_HINT: 'auto',
  XCURSOR_SIZE: '24',
  PWD: '/home/alfisya',
  XDG_SESSION_DESKTOP: 'gnome',
  LOGNAME: 'alfisya',
  QT_QPA_PLATFORMTHEME: 'qt5ct',
  XDG_SESSION_TYPE: 'wayland',
  SYSTEMD_EXEC_PID: '15980',
  XAUTHORITY: '/run/user/1000/.mutter-Xwaylandauth.IBBJW2',
  MOTD_SHOWN: 'pam',
  GDM_LANG: 'en_US.UTF-8',
  HOME: '/home/alfisya',
  USERNAME: 'alfisya',
  LC_PAPER: 'id_ID.UTF-8',
  LANG: 'en_US.UTF-8',
  XDG_CURRENT_DESKTOP: 'GNOME',
  MEMORY_PRESSURE_WATCH: '/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/app-dbus\\x2d:1.2\\x2dorg.gnome.Ptyxis.slice/dbus-:[email protected]/memory.pressure',
  VTE_VERSION: '7800',
  WAYLAND_DISPLAY: 'wayland-0',
  INVOCATION_ID: 'bd5c793fb0214947b079e768608b94b4',
  MANAGERPID: '1437',
  GNOME_SETUP_DISPLAY: ':1',
  QT_WAYLAND_DECORATION: 'adwaita',
  XDG_SESSION_CLASS: 'user',
  TERM: 'xterm-256color',
  LC_IDENTIFICATION: 'id_ID.utf8',
  USER: 'alfisya',
  DISPLAY: ':0',
  SHLVL: '1',
  LC_TELEPHONE: 'id_ID.UTF-8',
  QT_IM_MODULE: 'ibus',
  LC_MEASUREMENT: 'id_ID.UTF-8',
  XDG_RUNTIME_DIR: '/run/user/1000',
  LC_TIME: 'id_ID.UTF-8',
  JOURNAL_STREAM: '9:9337740',
  XCURSOR_THEME: 'Phinger-cursors-dark',
  XDG_DATA_DIRS: '/home/alfisya/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop/',
  PATH: '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin',
  GDMSESSION: 'gnome',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
  MAIL: '/var/spool/mail/alfisya',
  PTYXIS_VERSION: '47.3',
  LC_NUMERIC: 'id_ID.UTF-8',
  CHROME_DESKTOP: 'code-oss.desktop',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'GNOME',
  VSCODE_CWD: '/home/alfisya',
  GDK_BACKEND: 'wayland',
  NO_AT_BRIDGE: '1',
  VSCODE_NLS_CONFIG: '{"userLocale":"en-us","osLocale":"en-us","resolvedLanguage":"en","defaultMessagesFile":"/usr/share/vscode/resources/app/out/nls.messages.json","locale":"en-us","availableLanguages":{}}',
  VSCODE_CODE_CACHE_PATH: '/home/alfisya/.config/Code/CachedData/912bb683695358a54ae0c670461738984cbb5b95',
  VSCODE_IPC_HOOK: '/run/user/1000/vscode-db3ba5b7-1.95-main.sock',
  VSCODE_PID: '16104',
  ELECTRON_RUN_AS_NODE: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1',
  VSCODE_RESOLVING_ENVIRONMENT: '1'
}
[main 2024-11-01T00:31:52.076Z] getUnixShellEnvironment#shell /usr/bin/fish
[main 2024-11-01T00:31:52.076Z] getUnixShellEnvironment#spawn ["-i","-l","-c"] '/usr/share/vscode/code-oss'  -p '"f00aad638bfd" + JSON.stringify(process.env) + "f00aad638bfd"'
[main 2024-11-01T00:31:52.083Z] update#setState disabled
[main 2024-11-01T00:31:52.083Z] update#ctor - updates are disabled as there is no update URL
[16104:1101/073152.266603:ERROR:wayland_event_watcher.cc(43)] libwayland: [destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a 

fish: Job 1, 'code-oss --verbose -d' terminated by signal SIGTRAP (Trace or breakpoint trap)

malfisya avatar Nov 01 '24 00:11 malfisya

Some googling around for that failed to import supplied dmabufs error seems to indicate that your issue might be related to your multiple GPUs. Have you tried forcing it to launch with one or the other?

ReillyBrogan avatar Nov 01 '24 00:11 ReillyBrogan

This looks like a "me" thing and not an actual bug on Solus. It happens to all electron apps (heroic, bitwareden, vscode). Closing.

malfisya avatar Jun 13 '25 14:06 malfisya