microsoft / vscode

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

Code Insiders crashing with --ozone-platform=wayland #191175

Closed majcosta closed 1 year ago

majcosta commented 1 year ago

Fresh install. Run rm ~/.vscode && rm ~/.config/Code\ -\ Insiders before every command.

Steps to Reproduce:

  1. code-insiders --ozone-platform=wayland --verbose
  2. Window quickly flashes open, but closes again. This is the console output:
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
[0824/045419.811262:ERROR:file_io_posix.cc(152)] open /home/marco/.config/Code - Insiders/Crashpad/pending/62cd1a59-fcd3-4542-a2d0-07e6c1d104d1.lock: File exists (17)
[108507:0824/045419.811853:WARNING:wayland_object.cc(157)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[108507:0824/045419.811925:WARNING:wayland_object.cc(157)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[108507:0824/045419.881729:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[108567:0824/045419.926830:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2023-08-24T07:54:19.936Z] [File Watcher (node.js)] Request to start watching: /home/marco/.config/Code - Insiders/User (excludes: <none>, includes: <all>),/home/marco/.config/Code - Insiders/User/settings.json (excludes: <none>, includes: <all>)
[main 2023-08-24T07:54:19.944Z] Starting VS Code
[main 2023-08-24T07:54:19.944Z] from: /home/marco/apps/VSCode-linux-x64/resources/app
[main 2023-08-24T07:54:19.944Z] args: {
  _: [],
  diff: false,
  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,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-gpu': false,
  'disable-chromium-sandbox': false,
  'ms-enable-electron-run-as-node': 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,
  'disable-keytar': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': 'e5b83bb1-0d0c-4f71-8fdf-c54b5578b2c5',
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  force: false,
  'do-not-sync': false,
  trace: 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/marco/.config/Code - Insiders/logs/20230824T045419'
}
[main 2023-08-24T07:54:19.944Z] Resolving machine identifier...
[main 2023-08-24T07:54:19.945Z] Resolved machine identifier: 0d2b940a17fcf0c250476bc213e35fe0fa52c1edaa14529393b360d618c78eae
[main 2023-08-24T07:54:19.945Z] Main->SharedProcess#connect
[main 2023-08-24T07:54:19.947Z] StorageMainService: creating application storage
[main 2023-08-24T07:54:19.950Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2023-08-24T07:54:19.950Z] lifecycle (main): phase changed (value: 2)
[main 2023-08-24T07:54:19.950Z] windowsManager#open
[main 2023-08-24T07:54:19.950Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ]
[main 2023-08-24T07:54:19.951Z] windowsManager#doOpenEmpty {
  restore: false,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: false
}
[main 2023-08-24T07:54:19.951Z] IPC Object URL: Registered new channel vscode:87e67828-7405-43a6-998e-de89beeee6db.
[main 2023-08-24T07:54:19.951Z] window#validateWindowState: validating window state on 1 display(s) {
  width: 1024,
  height: 768,
  mode: 1,
  x: 448,
  y: 156,
  hasDefaultState: true
}
[main 2023-08-24T07:54:19.951Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1920, height: 1080 }
[main 2023-08-24T07:54:19.952Z] window#ctor: using window state {
  width: 1024,
  height: 768,
  mode: 1,
  x: 448,
  y: 156,
  hasDefaultState: true
}
[108507:0824/045419.952283:WARNING:wayland_surface.cc(165)] Server doesn't support zcr_alpha_compositing_v1.
[108507:0824/045419.952292:WARNING:wayland_surface.cc(180)] Server doesn't support overlay_prioritizer.
[108507:0824/045419.952294:WARNING:wayland_surface.cc(194)] Server doesn't support surface_augmenter.
[108507:0824/045419.952296:WARNING:wayland_surface.cc(209)] Server doesn't support wp_content_type_v1
[108507:0824/045419.952297:WARNING:wayland_surface.cc(228)] Server doesn't support zcr_color_management_surface.
[108507:0824/045419.952473:WARNING:cursor_loader.cc(136)] Failed to load a platform cursor of type kNull
[main 2023-08-24T07:54:19.962Z] window#load: attempt to load window (id: 1)
[main 2023-08-24T07:54:19.966Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, emptyToOpen: 1)
[main 2023-08-24T07:54:19.966Z] lifecycle (main): phase changed (value: 3)
[main 2023-08-24T07:54:19.966Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-08-24T07:54:19.967Z] update#setState idle
[main 2023-08-24T07:54:19.977Z] [File Watcher (node.js)] Started watching: '/home/marco/.config/Code - Insiders/User'
[main 2023-08-24T07:54:19.977Z] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/marco/.config/Code - Insiders/User/settings.json'
[main 2023-08-24T07:54:19.987Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[0824/045420.064844:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0824/045420.065075:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0824/045420.067675:ERROR:directory_reader_posix.cc(42)] opendir /home/marco/.config/Code - Insiders/Crashpad/attachments/3907400b-bc16-486e-bb28-c6f402ef8d15: No such file or directory (2)

Closest I've seen to this because of the ERROR:elf_dynamic_array_reader.h(64) tag not found was #180648, but that's closed.

Below is the result of code-insiders --ozone-platform=wayland --verbose --crash-reporter-directory /home/marco/crash/: crash.zip

deepak1556 commented 1 year ago

Merging to https://github.com/microsoft/vscode/issues/184124