microsoft / vscode

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

VSCode continiously drops #184244

Closed untainsYD closed 1 year ago

untainsYD commented 1 year ago

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

Steps to Reproduce: I have 2 open vscode instances with 2 projects (small md editing projects with maybe 30-40 files in summary), and sometimes vscode drops and stops working, and I can't reopen them, it drops continuously.
I need to delete cache and other folders to make VSCode work again:

  932  3.6.2023 17:45  ls -lah .config/Code/data
  933  3.6.2023 17:46  ls -lah .config/Code/data/Network\ Persistent\ State
  936  3.6.2023 17:47  rm -r .config/Code/data/.org.chromium.Chromium.*
  937  3.6.2023 17:47  rm -r .config/Code/data/.org.chromium.Chromium.43mC54
  939  3.6.2023 17:47  rm -r .config/Code/data/code.lock
  941  3.6.2023 17:47  rm -r .config/Code/data/Local\ Storage/
  942  3.6.2023 17:48  rm -r .config/Code/data/Session\ Storage
  943  3.6.2023 17:48  rm -r .config/Code/data/Service\ Worker
  944  3.6.2023 17:52  rm -r .config/Code/data/WebStorage
  945  3.6.2023 17:52  rm -r .config/Code/data/Cache*
  946  3.6.2023 17:52  rm -r .config/Code/data/*Cache*
  947  3.6.2023 17:52  rm -r .config/Code/data/blob_storage
  948  3.6.2023 17:52  rm -r .config/Code/data/Network\ Persistent\ State

I have a system error log: journalctl -x -b

Jun 03 17:53:08 untainsYD-workstation systemd-coredump[576401]: [🡕] Process 575669 (code) of user 1000 dumped
   Module vscode-encrypt-native.node without build-id.
   Module keytar.node without build-id.
   Module keymapping.node without build-id.
   Module vscode-sqlite3.node without build-id.
   Module spdlog.node without build-id.
   Module vscode-policy-watcher.node without build-id.

Link to full journalctl log: Gist: VSCode journactl log.

It has been starting to act like that for the last 2 weeks after the recent updates.

I am using nouveau as the video driver and keepasxc as keyrings manager, but I had been trying to turn off the sync, but the result didn't change.

UPD: I was looking into my Sway WM logs (I am on the Wayland/SwayWM), and I have seen something like that:

(process:570236): GLib-CRITICAL **: 17:44:55.080: g_string_insert_len: assertion 'len == 0 || val != NULL' failed
[
  {
    "success": true
  }
]
Warning: 'enable-accelerated-video-decode' 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: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.

This error shows only when VSCode is dropped.


UPD: When I disabled Profile Sync it stopped dropping/crushing.

I am using KeePaassXC for storing my keyrings and it is enabled/active before I am starting the VSCode.

untainsYD commented 1 year ago

There is also this log when i am trying to start it from CLI.

> code --verbose
Warning: 'enable-accelerated-video-decode' 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: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
ATTENTION: default value of option vblank_mode overridden by environment.
[17818:0911/015332.393545:WARNING:wayland_object.cc(157)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[17818:0911/015332.393705:WARNING:wayland_object.cc(157)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[17818:0911/015332.509681:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[main 2023-09-10T22:53:32.631Z] [File Watcher (node.js)] Request to start watching: /home/untainsYD/.config/Code/data/User (excludes: <none>, includes: <all>),/home/untainsYD/.config/Code/data/User/settings.json (excludes: <none>, includes: <all>)
[main 2023-09-10T22:53:32.655Z] Starting VS Code
[main 2023-09-10T22:53:32.656Z] from: /opt/visual-studio-code/resources/app
[main 2023-09-10T22:53:32.656Z] args: {
  _: [],
  diff: false,
  merge: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  'user-data-dir': '/home/untainsYD/.config/Code/data',
  help: false,
  'extensions-dir': '/home/untainsYD/.config/Code/extensions',
  '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': 'c502b379-21a4-40bd-a0eb-48c5dcf7f303',
  '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/untainsYD/.config/Code/data/logs/20230911T015332'
}
[main 2023-09-10T22:53:32.658Z] Resolving machine identifier...
[main 2023-09-10T22:53:32.658Z] Resolved machine identifier: b5db174f9ed62733f674cac981f2197bd35f1b5641c1a6f27563f414c539d8b0
[main 2023-09-10T22:53:32.658Z] Main->SharedProcess#connect
[main 2023-09-10T22:53:32.666Z] [File Watcher (node.js)] Started watching: '/home/untainsYD/.config/Code/data/User'
[main 2023-09-10T22:53:32.667Z] [File Watcher (node.js)] Started watching: '/home/untainsYD/.config/Code/data/User/settings.json'
[main 2023-09-10T22:53:32.669Z] StorageMainService: creating application storage
[main 2023-09-10T22:53:32.676Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2023-09-10T22:53:32.676Z] lifecycle (main): phase changed (value: 2)
[main 2023-09-10T22:53:32.677Z] windowsManager#open
[main 2023-09-10T22:53:32.683Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: '30f30422464324be419528de7519f30b', configPath: [c] },
    type: 1,
    exists: true,
    remoteAuthority: undefined,
    transient: undefined
  },
  {
    workspace: { id: '42675310b0216707a85532d37e8bf6fe', uri: [c] },
    type: 2,
    exists: true
  },
  {
    workspace: { id: '30f30422464324be419528de7519f30b', configPath: [c] },
    type: 1,
    exists: true,
    remoteAuthority: undefined,
    transient: undefined
  }
]
[main 2023-09-10T22:53:32.685Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '30f30422464324be419528de7519f30b', configPath: [c] },
    type: 1,
    exists: true,
    remoteAuthority: undefined,
    transient: undefined
  },
  filesToOpen: undefined
}
[main 2023-09-10T22:53:32.687Z] IPC Object URL: Registered new channel vscode:90ad590a-c205-4256-8072-2482277b34ec.
[main 2023-09-10T22:53:32.688Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 0, y: 0, width: 1920, height: 1028 }
[main 2023-09-10T22:53:32.688Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1920, height: 1080 }
[main 2023-09-10T22:53:32.688Z] window#ctor: using window state { mode: 1, x: 0, y: 0, width: 1920, height: 1028 }
[17818:0911/015332.689372:WARNING:wayland_surface.cc(165)] Server doesn't support zcr_alpha_compositing_v1.
[17818:0911/015332.689388:WARNING:wayland_surface.cc(180)] Server doesn't support overlay_prioritizer.
[17818:0911/015332.689396:WARNING:wayland_surface.cc(194)] Server doesn't support surface_augmenter.
[17818:0911/015332.689403:WARNING:wayland_surface.cc(209)] Server doesn't support wp_content_type_v1
[17818:0911/015332.689410:WARNING:wayland_surface.cc(228)] Server doesn't support zcr_color_management_surface.
ATTENTION: default value of option vblank_mode overridden by environment.
[main 2023-09-10T22:53:32.714Z] window#load: attempt to load window (id: 1)
[main 2023-09-10T22:53:32.718Z] StorageMainService: creating profile storage (global_profile)
[main 2023-09-10T22:53:32.723Z] StorageMainService: creating workspace storage (30f30422464324be419528de7519f30b)
[main 2023-09-10T22:53:32.724Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '42675310b0216707a85532d37e8bf6fe', uri: [c] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2023-09-10T22:53:32.725Z] IPC Object URL: Registered new channel vscode:0fabd8cd-b0b5-4194-8f49-d7a05b0e794f.
[main 2023-09-10T22:53:32.725Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 0, y: 0, width: 1920, height: 1028 }
[main 2023-09-10T22:53:32.725Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1920, height: 1080 }
[main 2023-09-10T22:53:32.725Z] window#ctor: using window state { mode: 1, x: 0, y: 0, width: 1920, height: 1028 }
[main 2023-09-10T22:53:32.737Z] window#load: attempt to load window (id: 2)
[main 2023-09-10T22:53:32.739Z] StorageMainService: creating workspace storage (42675310b0216707a85532d37e8bf6fe)
[main 2023-09-10T22:53:32.739Z] windowsManager#open used window count 2 (workspacesToOpen: 2, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0)
[main 2023-09-10T22:53:32.739Z] lifecycle (main): phase changed (value: 3)
[main 2023-09-10T22:53:32.740Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-09-10T22:53:32.740Z] update#setState idle
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
[17862:0911/015332.793197:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2023-09-10T22:53:32.826Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-09-10T22:53:32.828Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[17862:0911/015332.863299:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[17862:0911/015332.874221:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[17862:0911/015332.874384:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[17862:0911/015332.874472:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[17862:0911/015332.874581:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[17896:0911/015332.880019:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[17888:0911/015332.880014:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[17818:0911/015332.921746:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=8704
[17818:0911/015332.921760:WARNING:gpu_process_host.cc(1323)] The GPU process has crashed 1 time(s)
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
[17920:0911/015333.106652:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[17818:0911/015333.109074:WARNING:gpu_process_host.cc(981)] Reinitialized the GPU process after a crash. The reported initialization time was 183 ms
[17920:0911/015333.122160:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[17920:0911/015333.124368:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[17920:0911/015333.124513:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[17920:0911/015333.124581:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[17920:0911/015333.124764:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[17818:0911/015333.189075:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=8704
[17818:0911/015333.189097:WARNING:gpu_process_host.cc(1323)] The GPU process has crashed 2 time(s)
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
[17931:0911/015333.365752:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[17818:0911/015333.367623:WARNING:gpu_process_host.cc(981)] Reinitialized the GPU process after a crash. The reported initialization time was 175 ms
[17931:0911/015333.377361:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[17931:0911/015333.379725:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[17931:0911/015333.379860:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[17931:0911/015333.379940:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[17931:0911/015333.380069:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[17818:0911/015333.442239:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=8704
[17818:0911/015333.442257:WARNING:gpu_process_host.cc(1323)] The GPU process has crashed 3 time(s)
ATTENTION: default value of option vblank_mode overridden by environment.
[17949:0911/015333.610821:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[17818:0911/015333.613355:WARNING:gpu_process_host.cc(981)] Reinitialized the GPU process after a crash. The reported initialization time was 166 ms
[0911/015333.838471:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0911/015333.845787:ERROR:directory_reader_posix.cc(42)] opendir /home/untainsYD/.config/Code/data/Crashpad/attachments/ad9ba654-7fea-4bbb-9844-3aa705d2413f: No such file or directory (2)
deepak1556 commented 1 year ago

There is unrecoverable crash in the gpu process, can you check if the issue is present in latest stable v1.82. If it persists, can you try launching with --disable-gpu ?

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

untainsYD commented 1 year ago

There is unrecoverable crash in the gpu process, can you check if the issue is present in latest stable v1.82. If it persists, can you try launching with --disable-gpu ?

@deepak1556 It persists in the latest v1.82, i would even say that it has been starting to crash after the last 1-2 stable updates, around a month.

Version.

code --version
Warning: 'enable-accelerated-video-decode' 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.
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.
1.82.2
abd2f

My personal code-flags.conf: bat .config/code-flags.conf.

   1   │ --enable-accelerated-video-decode # might break vscode
   2   │ --ozone-platform=wayland
   3   │ --ozone-platform-hint=auto
   4   │ --enable-features=UseOzonePlatform
   5   │ --user-data-dir=/home/untainsYD/.config/Code/data
   6   │ --extensions-dir=/home/untainsYD/.config/Code/extensions

So, i have Wayland enabled, and when it is enabled - VSCode crushes, it even stops starting, just crashes instantly. I run VSCode with these electron options/arguments and --disable-gpu: code --disable-gpu --verbose.

Warning: 'enable-accelerated-video-decode' 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.
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.
[244403:0921/111624.776519:WARNING:wayland_object.cc(157)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[244403:0921/111624.776651:WARNING:wayland_object.cc(157)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[244403:0921/111624.858432:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[main 2023-09-21T08:16:24.938Z] [File Watcher (node.js)] Request to start watching: /home/untainsYD/.config/Code/data/User (excludes: <none>, includes: <all>),/home/untainsYD/.config/Code/data/User/settings.json (excludes: <none>, includes: <all>)
[main 2023-09-21T08:16:24.953Z] Starting VS Code
[main 2023-09-21T08:16:24.953Z] from: /opt/visual-studio-code/resources/app
[main 2023-09-21T08:16:24.953Z] args: {
  _: [],
  diff: false,
  merge: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  'user-data-dir': '/home/untainsYD/.config/Code/data',
  help: false,
  'extensions-dir': '/home/untainsYD/.config/Code/extensions',
  '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': true,
  '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': 'c502b379-21a4-40bd-a0eb-48c5dcf7f303',
  '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/untainsYD/.config/Code/data/logs/20230921T111624'
}
[main 2023-09-21T08:16:24.955Z] Resolving machine identifier...
[main 2023-09-21T08:16:24.955Z] Resolved machine identifier: b5db174f9ed62733f674cac981f2197bd35f1b5641c1a6f27563f414c539d8b0
[main 2023-09-21T08:16:24.955Z] Main->SharedProcess#connect
[main 2023-09-21T08:16:24.960Z] [File Watcher (node.js)] Started watching: '/home/untainsYD/.config/Code/data/User'
[main 2023-09-21T08:16:24.960Z] [File Watcher (node.js)] Started watching: '/home/untainsYD/.config/Code/data/User/settings.json'
[main 2023-09-21T08:16:24.962Z] StorageMainService: creating application storage
[main 2023-09-21T08:16:24.964Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2023-09-21T08:16:24.965Z] lifecycle (main): phase changed (value: 2)
[main 2023-09-21T08:16:24.965Z] windowsManager#open
[main 2023-09-21T08:16:24.966Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: '42675310b0216707a85532d37e8bf6fe', uri: [c] },
    type: 2,
    exists: true
  },
  {
    backupPath: '/home/untainsYD/.config/Code/data/Backups/1695022147904',
    remoteAuthority: undefined
  },
  {
    backupPath: '/home/untainsYD/.config/Code/data/Backups/1695022147904',
    remoteAuthority: undefined
  }
]
[main 2023-09-21T08:16:24.966Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '42675310b0216707a85532d37e8bf6fe', uri: [c] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2023-09-21T08:16:24.967Z] IPC Object URL: Registered new channel vscode:dd147261-0381-4632-b7e1-77f6fc3536cb.
[main 2023-09-21T08:16:24.967Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 448, y: 156, width: 1024, height: 768 }
[main 2023-09-21T08:16:24.967Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1920, height: 1080 }
[main 2023-09-21T08:16:24.967Z] window#ctor: using window state { mode: 0, x: 448, y: 156, width: 1024, height: 768 }
[244403:0921/111624.967794:WARNING:wayland_surface.cc(165)] Server doesn't support zcr_alpha_compositing_v1.
[244403:0921/111624.967806:WARNING:wayland_surface.cc(180)] Server doesn't support overlay_prioritizer.
[244403:0921/111624.967810:WARNING:wayland_surface.cc(194)] Server doesn't support surface_augmenter.
[244403:0921/111624.967815:WARNING:wayland_surface.cc(209)] Server doesn't support wp_content_type_v1
[244403:0921/111624.967819:WARNING:wayland_surface.cc(228)] Server doesn't support zcr_color_management_surface.
[main 2023-09-21T08:16:24.982Z] window#load: attempt to load window (id: 1)
[main 2023-09-21T08:16:24.985Z] StorageMainService: creating profile storage (global_profile)
[main 2023-09-21T08:16:24.989Z] StorageMainService: creating workspace storage (42675310b0216707a85532d37e8bf6fe)
[main 2023-09-21T08:16:24.989Z] windowsManager#doOpenEmpty {
  restore: true,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: true
}
[main 2023-09-21T08:16:24.990Z] IPC Object URL: Registered new channel vscode:ecc09ada-9ad6-462d-bab4-ab9edbc52fa0.
[main 2023-09-21T08:16:24.990Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 448, y: 156, width: 1024, height: 768 }
[main 2023-09-21T08:16:24.990Z] window#validateWindowState: 1 monitor working area { x: 0, y: 0, width: 1920, height: 1080 }
[main 2023-09-21T08:16:24.990Z] window#ctor: using window state { mode: 0, x: 448, y: 156, width: 1024, height: 768 }
[main 2023-09-21T08:16:25.001Z] window#load: attempt to load window (id: 2)
[main 2023-09-21T08:16:25.004Z] windowsManager#open used window count 2 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 2, emptyToOpen: 0)
[main 2023-09-21T08:16:25.004Z] lifecycle (main): phase changed (value: 3)
[main 2023-09-21T08:16:25.004Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-09-21T08:16:25.004Z] update#setState idle
[244403:0921/111625.044051:WARNING:backend_impl.cc(1816)] Destroying invalid entry.
[main 2023-09-21T08:16:25.084Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-09-21T08:16:25.086Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[244445:0921/111625.122068:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[0921/111625.188869:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0921/111625.198057:ERROR:directory_reader_posix.cc(42)] opendir /home/untainsYD/.config/Code/data/Crashpad/attachments/15b87010-649c-4396-82c2-7db6dbd7bd48: No such file or directory (2)
untainsYD commented 1 year ago

It starts only as an XWayland application with these electron options/arguments:

bat .config/code-flags.conf
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: .config/code-flags.conf
       │ Size: 252 B
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ --enable-accelerated-video-decode # might break vscode
   2   │ #--ozone-platform=wayland
   3   │ #--ozone-platform-hint=auto
   4   │ #--enable-features=UseOzonePlatform
   5   │ --user-data-dir=/home/untainsYD/.config/Code/data
   6   │ --extensions-dir=/home/untainsYD/.config/Code/extensions
deepak1556 commented 1 year ago

Crash on startup with wayland is tracked in https://github.com/microsoft/vscode/issues/184124, please follow that issue for updates.