microsoft / vscode

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

Can not use more than one instance, first instance crashes when opening a second one. #203310

Closed cartok closed 7 months ago

cartok commented 10 months ago

Hello, I hope this is the right place.

Something makes it that opening multiple vscode instances crashes all instances when using wayland. I tested it by opening two windows, as soon as I open the second one both crash. Sometimes I the second window works once but when I close and open it again the crash happens.

I see this issues propably since a year, I did not want to spend time with it and switched to Xwayland thought it would get fixed cause it's quite a problem if you can not open more than one vscode instance at a time. Is it just me who has this issue - Should I ask the question in the arch community?

There seem to be two problems. Leftover lock-files (can no longer reproduce right now) and issues with the GPU cache or something. When I delete .config/Code/GPUCache and .config/Code/Crashpad/pending I am able to launch two windows I thought, but not does not always help, maybe sometimes I have to delete even more like the whole folder more cache related dirs.

The flags I start vscode with are --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations and have set "window.titleBarStyle": "custom".

I used code --log debug --verbose cause code --crash-reporter-directory did not work, I think it is only an option to debug crashes that happen from inside the one instance. I wonder why only the first vscode instance keeps logging, while the second one just finishes, it's propably designed to allow some special interaction between vscode instances?

System info:

System:
  Host: local Kernel: 6.7.0-zen3-1-zen arch: x86_64 bits: 64 compiler: gcc
    v: 13.2.1 Desktop: sway v: 1.8.1 dm: N/A Distro: Arch Linux
CPU:
  Info: 8-core model: Intel Core i9-9900K bits: 64 type: MT MCP
    arch: Coffee Lake rev: D cache: L1: 512 KiB L2: 2 MiB L3: 16 MiB
  Speed (MHz): avg: 2900 high: 5007 min/max: 800/5000 cores: 1: 5000 2: 5007
    3: 800 4: 5000 5: 800 6: 800 7: 5000 8: 800 9: 800 10: 5000 11: 4999
    12: 5007 13: 800 14: 800 15: 5000 16: 800 bogomips: 115200
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: Gigabyte
    driver: i915 v: kernel arch: Gen-9.5 ports: active: HDMI-A-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:3e98
  Device-2: NVIDIA AD104 [GeForce RTX 4070] vendor: Gigabyte driver: N/A
    arch: Lovelace pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2786
  Device-3: Sunplus Innovation Sandberg USB Webcam Pro
    driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
    bus-ID: 1-5.1:19 chip-ID: 1bcf:2650
  Display: wayland server: Xwayland v: 23.2.4 compositor: sway v: 1.8.1
    driver: gpu: i915 display-ID: 1
  Monitor-1: HDMI-A-1 model: Gigabyte M34WQ res: 3440x1440 dpi: 109
    diag: 867mm (34.1")
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast gbm:
    drv: iris surfaceless: drv: iris wayland: drv: iris x11: drv: iris
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 23.3.3-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL
    GT2) device-ID: 8086:3e98
  API: Vulkan v: 1.3.274 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: mesa intel device-ID: 8086:3e98

I use the APU of an Intel i9-9900k, not the NVIDIA card listed below (sway still explodes with nouveau). I don't know if it matters or not, but I tested with and without options i915 enable_guc=2 and I tested on linux and linux-zen kernel. It does not affect the situation.

Logs

The log of the second (causing) editor - Crashpad (pending lock files)

Could not reproduce it. Will try again later. Also saw some vscode crashpad processes hanging around, when no vsocde instances are running.

The log of the second (causing) editor - Sandbox (GPU Cache)

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.
[0124/100409.947933:ERROR:file_io_posix.cc(152)] open /home/cartok/.config/Code/Crashpad/pending/d278bae3-a8de-4c0d-9890-61da205b0759.lock: File exists (17)
[42663:0124/100409.949408:WARNING:wayland_object.cc(157)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[42663:0124/100409.949515:WARNING:wayland_object.cc(157)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[42663:0124/100409.996647:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[main 2024-01-24T09:04:10.050Z] [File Watcher (node.js)] Request to start watching: /home/cartok/.config/Code/User (excludes: <none>, includes: <all>, correlationId: <none>),/home/cartok/.config/Code/User/settings.json (excludes: <none>, includes: <all>, correlationId: <none>)
[42706:0124/100410.053289:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2024-01-24T09:04:10.059Z] Sending env to running instance...
[main 2024-01-24T09:04:10.060Z] [File Watcher (node.js)] Started watching: '/home/cartok/.config/Code/User'
[main 2024-01-24T09:04:10.060Z] [File Watcher (node.js)] Started watching: '/home/cartok/.config/Code/User/settings.json'
[main 2024-01-24T09:04:10.077Z] Sent env to running instance. Terminating...
[main 2024-01-24T09:04:10.078Z] Lifecycle#kill()
[main 2024-01-24T09:04:10.078Z] Lifecycle#onWillShutdown.fire()

The log of the first editor

[main 2024-01-24T09:42:57.599Z] Lifecycle#onBeforeCloseWindow.fire() - window ID 4
[main 2024-01-24T09:42:57.601Z] IPC Object URL: Removed channel vscode:9d1990c0-b132-46c8-bc18-93b786656254.
[main 2024-01-24T09:42:57.603Z] Lifecycle#window.on('closed') - window ID 4
[main 2024-01-24T09:42:57.603Z] [UtilityProcess id: 4, type: fileWatcher, pid: 60338]: attempting to kill the process...
[main 2024-01-24T09:42:57.603Z] [UtilityProcess id: 4, type: fileWatcher, pid: 60338]: successfully killed the process
[main 2024-01-24T09:42:57.608Z] [UtilityProcess id: 4, type: fileWatcher, pid: 60338]: received exit event with code 15
[main 2024-01-24T09:42:57.608Z] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
[main 2024-01-24T09:42:57.608Z] [UtilityProcess id: 4, type: fileWatcher, pid: 60338]: crashed with code 15 and reason 'killed'
[main 2024-01-24T09:42:57.615Z] [UtilityProcess id: 4, type: extensionHost, pid: 60349]: received exit event with code 0
[main 2024-01-24T09:42:57.615Z] Extension host with pid 60349 exited with code: 0, signal: unknown.
[main 2024-01-24T09:42:58.784Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-01-24T09:42:59.029Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-01-24T09:43:01.029Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-01-24T09:43:01.104Z] Received data from other instance:  {
  _: [ '/home/cartok/tests' ],
  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,
  log: [ 'debug' ],
  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,
  'use-inmemory-secretstorage': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': '44a270ac-b647-41f3-82be-2f35bffb1b16',
  '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/cartok/.config/Code/logs/20240124T104301'
} {
  SHELL: '/bin/zsh',
  WINDOWID: '100981401194320',
  LINUX_CONFIGS_USER_CONFIGS: '/usr/local/share/linux-configs/src/skel/home/cartok/.config',
  COLORTERM: 'truecolor',
  ZPWR_TABSTOP: '__________',
  FNM_ARCH: 'x64',
  PKG_CONFIG_PATH: '/usr/local/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:',
  ZPWR_EXPAND_NATIVE: 'false',
  QT_WAYLAND_DISABLE_WINDOWDECORATION: '1',
  I3SOCK: '/run/user/1000/sway-ipc.1000.7884.sock',
  LC_ADDRESS: 'de_DE.UTF-8',
  OPENER: 'xdg-open',
  LC_NAME: 'de_DE.UTF-8',
  LINUX_CONFIGS_MACHINE: 'desktop',
  FNM_NODE_DIST_MIRROR: 'https://nodejs.org/dist',
  LC_MONETARY: 'de_DE.UTF-8',
  LINUX_CONFIGS_GREY_4: '#969696',
  LINUX_CONFIGS_GREY_5: '#a1a8aa',
  LINUX_CONFIGS_GREY_6: '#e7e7e7',
  LINUX_CONFIGS_GREY_7: '#dfdfdf',
  LINUX_CONFIGS_GREY_1: '#1e1e1e',
  LINUX_CONFIGS_GREY_2: '#3d3d3d',
  LINUX_CONFIGS_GREY_3: '#5f676a',
  XCURSOR_SIZE: '24',
  EDITOR: 'nano',
  XDG_SEAT: 'seat0',
  PWD: '/home/cartok',
  LOGNAME: 'cartok',
  QT_QPA_PLATFORMTHEME: 'gnome',
  ZPWR_EXPAND: 'true',
  XDG_SESSION_TYPE: 'wayland',
  ZPWR_CORRECT: 'false',
  BEMENU_BACKEND: 'wayland',
  FZF_DEFAULT_COMMAND: 'fd --strip-cwd-prefix --one-file-system --ignore-file ~/.config/fd/ignore',
  TERMINAL: '/bin/alacritty',
  MOTD_SHOWN: 'pam',
  LINUX_CONFIGS: '/usr/local/share/linux-configs/src',
  LINUX_CONFIGS_STATE: '/home/cartok/.local/state/linux-configs',
  USER_NAME: 'cartok',
  HOME: '/home/cartok',
  LANG: 'de_DE.UTF-8',
  LC_PAPER: 'de_DE.UTF-8',
  FNM_COREPACK_ENABLED: 'false',
  XDG_CURRENT_DESKTOP: 'sway',
  STARSHIP_SHELL: 'zsh',
  SWAYSOCK: '/run/user/1000/sway-ipc.1000.7884.sock',
  WAYLAND_DISPLAY: 'wayland-1',
  ZPWR_EXPAND_TO_HISTORY: 'false',
  MANROFFOPT: '-c',
  LINUX_CONFIGS_TERMINAL_BG: '#222222',
  LINUX_CONFIGS_CHROME_BG: '#1f1f1f',
  ZPWR_EXPAND_QUOTE_SINGLE: 'false',
  STARSHIP_SESSION_KEY: '2590022290289231',
  QT_QPA_PLATFORM: 'wayland;xcb',
  ALACRITTY_SOCKET: '/run/user/1000/Alacritty-wayland-1-51088.sock',
  SWAY_CONFIGS_DIR: '/usr/local/share/linux-configs/src/skel/home/cartok/.config/sway',
  XDG_SESSION_CLASS: 'user',
  LC_IDENTIFICATION: 'de_DE.UTF-8',
  TERM: 'alacritty',
  BAT_PAGER: '/usr/bin/less -RF --mouse --use-color --wheel-lines=2',
  LINUX_CONFIGS_BLUE_1: '#2e9ef4',
  LINUX_CONFIGS_BLUE_3: '#4c7899',
  LINUX_CONFIGS_BLUE_2: '#285577',
  LINUX_CONFIGS_BLUE_4: '#5d8fb4',
  ASDF_DIR: '/opt/asdf-vm',
  USER: 'cartok',
  LINUX_CONFIGS_ROOT: '/usr/local/share/linux-configs',
  LINUX_CONFIGS_MACHINE_DIR: '/usr/local/share/linux-configs/src/machines/by-name/desktop',
  MANPAGER: "  sh -c 'col --no-backspaces --spaces     | /usr/bin/bat --paging always --plain --language man --theme Nord' ",
  VISUAL: 'code',
  DISPLAY: ':0',
  SHLVL: '3',
  MOZ_ENABLE_WAYLAND: '1',
  CHROME_EXECUTABLE: '/usr/bin/google-chrome-stable',
  PAGER: "/usr/bin/bat --theme='base16-256' --wrap='never'",
  LINUX_CONFIGS_LOGS: '/var/log/linux-configs',
  LC_TELEPHONE: 'de_DE.UTF-8',
  ZPWR_CORRECT_EXPAND: 'true',
  LC_MESSAGES: 'POSIX',
  LC_MEASUREMENT: 'de_DE.UTF-8',
  FNM_VERSION_FILE_STRATEGY: 'local',
  XDG_VTNR: '1',
  XDG_SESSION_ID: '1',
  ATUIN_SESSION: '018d3ac1f77d710fb4c8f1d4a53f0226',
  SWAY_SCRIPTS_DIR: '/usr/local/share/linux-configs/src/skel/home/cartok/.config/sway/scripts',
  LINUX_CONFIGS_WHITE: '#ffffff',
  ATUIN_HISTORY_ID: '018d3ad9fb7c7925a1fca4e78570ab54',
  LD_LIBRARY_PATH: '/usr/local/lib64/:/usr/local/lib/:',
  LC_CTYPE: 'de_DE.UTF-8',
  XDG_RUNTIME_DIR: '/run/user/1000',
  FNM_RESOLVE_ENGINES: 'false',
  LINUX_CONFIGS_BLACK: '#000000',
  NODE_PATH: '/home/cartok/.local/share/fnm/node-versions/v21.0.0/installation/lib/node_modules',
  DEBUGINFOD_URLS: 'https://debuginfod.archlinux.org ',
  LC_TIME: 'de_DE.UTF-8',
  SWAY_APPS_DIR: '/usr/local/share/linux-configs/src/skel/home/cartok/.config/sway/apps.d',
  ZPWR_EXPAND_SECOND_POSITION: 'true',
  LC_COLLATE: 'POSIX',
  XDG_DATA_DIRS: '/usr/local/share:/usr/share:/var/lib/snapd/desktop',
  PATH: '/run/user/1000/fnm_multishells/51161_1706087806854/bin:/home/cartok/.local/share/fnm:/run/user/1000/fnm_multishells/51111_1706087806733/bin:/home/cartok/.local/share/fnm:/run/user/1000/fnm_multishells/925_1706023140301/bin:/home/cartok/.local/share/fnm:/run/user/1000/fnm_multishells/861_1706023140099/bin:/home/cartok/.asdf/shims:/opt/asdf-vm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/cartok/.local/bin:/home/cartok/.bun/bin:/home/cartok/.local/share/sheldon/repos/github.com/reegnz/jq-zsh-plugin/bin:/home/cartok/.local/share/sheldon/repos/github.com/reegnz/jq-zsh-plugin/bin',
  ALACRITTY_LOG: '/tmp/Alacritty-51088.log',
  QTWEBENGINE_CHROMIUM_FLAGS: '--no-sandbox',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
  MAIL: '/var/spool/mail/cartok',
  FNM_DIR: '/home/cartok/.local/share/fnm',
  FNM_MULTISHELL_PATH: '/run/user/1000/fnm_multishells/51161_1706087806854',
  ZPWR_EXPAND_QUOTE_DOUBLE: 'true',
  ALACRITTY_WINDOW_ID: '100981401194320',
  FNM_LOGLEVEL: 'info',
  LC_NUMERIC: 'en_US.UTF-8',
  OLDPWD: '/home/cartok',
  LINUX_CONFIGS_SKEL: '/usr/local/share/linux-configs/src/skel',
  _: '/opt/visual-studio-code/bin/../code',
  VSCODE_CWD: '/home/cartok',
  VSCODE_CLI: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1',
  ELECTRON_ENABLE_LOGGING: '1',
  CHROME_DESKTOP: 'code-url-handler.desktop',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'sway',
  GDK_BACKEND: 'wayland',
  NO_AT_BRIDGE: '1',
  VSCODE_NLS_CONFIG: '{"locale":"en-us","osLocale":"posix","availableLanguages":{},"_languagePackSupport":true}',
  VSCODE_CODE_CACHE_PATH: '/home/cartok/.config/Code/CachedData/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2',
  VSCODE_IPC_HOOK: '/run/user/1000/vscode-ab725310-1.85-main.sock'
}
[main 2024-01-24T09:43:01.105Z] windowsManager#open
[main 2024-01-24T09:43:01.105Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: '6aab973033dcf65633ce07010ddf934d', uri: [$] },
    type: 2,
    exists: true
  }
]
[main 2024-01-24T09:43:01.105Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '6aab973033dcf65633ce07010ddf934d', uri: [$] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2024-01-24T09:43:01.105Z] IPC Object URL: Registered new channel vscode:346b576b-6ae9-4160-96ed-42bab09afddd.
[main 2024-01-24T09:43:01.105Z] window#validateWindowState: validating window state on 1 display(s) {
  width: 1024,
  height: 768,
  mode: 1,
  x: 3128,
  y: 336,
  hasDefaultState: true
}
[main 2024-01-24T09:43:01.105Z] window#validateWindowState: 1 monitor working area { x: 1920, y: 0, width: 3440, height: 1440 }
[main 2024-01-24T09:43:01.105Z] window#ctor: using window state {
  width: 1024,
  height: 768,
  mode: 1,
  x: 3128,
  y: 336,
  hasDefaultState: true
}
[main 2024-01-24T09:43:01.113Z] window#load: attempt to load window (id: 5)
[main 2024-01-24T09:43:01.116Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0)
[main 2024-01-24T09:43:01.140Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[0124/104301.157996:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0124/104301.163708:ERROR:directory_reader_posix.cc(42)] opendir /home/cartok/.config/Code/Crashpad/attachments/b93477bb-6971-4452-a7a0-823fde12f216: No such file or directory (2)

Another suspect log from the first editor which I can't reproduce tho

file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js (643)
[main 2024-01-24T09:40:19.141Z] [UtilityProcess type: ptyHost, pid: <none>]: creating new...
[main 2024-01-24T09:40:19.144Z] PtyHostService#_startPtyHost
    at g.U (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:103:2969)
    at g.h (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:103:1428)
    at get f [as f] (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:103:1378)
    at g.setTerminalLayoutInfo (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:103:5987)
    at Object.call (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:42:5005)
    at A.s (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:40:5116)
    at A.q (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:40:4639)
    at $.value (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:40:4050)
    at a.y (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:1902)
    at a.z (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:1972)
    at a.fire (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:2188)
    at $.value (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:33:28535)
    at a.y (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:1902)
    at a.fire (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:2119)
    at $.value (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:33:28742)
    at a.y (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:1902)
    at a.fire (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:35:2119)
    at me (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:33:31189)
    at IpcMainImpl.u (/opt/visual-studio-code/resources/app/out/vs/code/electron-main/main.js:42:18858)
    at IpcMainImpl.emit (node:events:525:35)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:88654)
    at WebContents.emit (node:events:513:28)
[main 2024-01-24T09:40:19.146Z] [UtilityProcess type: ptyHost, pid: 59800]: successfully created
[main 2024-01-24T09:40:19.149Z] Lifecycle#onBeforeCloseWindow.fire() - window ID 2
[main 2024-01-24T09:40:19.153Z] IPC Object URL: Removed channel vscode:b4d7138c-7ab1-4c30-a4a1-8585fcdba230.
[main 2024-01-24T09:40:19.155Z] Lifecycle#window.on('closed') - window ID 2
[main 2024-01-24T09:40:19.156Z] [UtilityProcess id: 2, type: fileWatcher, pid: 59681]: attempting to kill the process...
[main 2024-01-24T09:40:19.156Z] [UtilityProcess id: 2, type: fileWatcher, pid: 59681]: successfully killed the process
[main 2024-01-24T09:40:19.161Z] [UtilityProcess id: 2, type: fileWatcher, pid: 59681]: received exit event with code 0
[main 2024-01-24T09:40:19.161Z] [UtilityProcessWorker]: terminated normally with code 0, signal: unknown
[main 2024-01-24T09:40:19.162Z] [UtilityProcess id: 2, type: fileWatcher, pid: 59681]: crashed with code 15 and reason 'killed'
[main 2024-01-24T09:40:19.164Z] [UtilityProcess id: 2, type: extensionHost, pid: 59691]: received exit event with code 0
[main 2024-01-24T09:40:19.165Z] Extension host with pid 59691 exited with code: 0, signal: unknown.
[main 2024-01-24T09:40:21.165Z] resolveShellEnv(): skipped (VSCODE_CLI is set)

Another thing

Don't know if it is related, could be, I expected this to vanish some day but it still persists.

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.
deepak1556 commented 10 months ago

I wonder why only the first vscode instance keeps logging, while the second one just finishes, it's propably designed to allow some special interaction between vscode instances?

We have a singleton implementation for running instances, basically the first instance will act as a server and if new instances are launched they will connect to this server to check if they can be merged, if yes then instead of creating a completely new process tree the new instance will just be a child window of the first instance. Hence you see the logs cut off in the second instance after the merge happens.

Can you check if the crash repros with our insiders version as well https://code.visualstudio.com/insiders, you can avoid passing --crash-reporter-directory. The crashes should be available in .config/Code - Insiders/Crashpad

cartok commented 10 months ago

Thanks @deepak1556 On the insider version, two or more windows open, but only one is usable. I recorded a short 5 min video to demonstrate the issues and uploaded it here: https://www.youtube.com/watch?v=FwQp6InxCb8

This is the crashpad: vscode-issue-203310-crashpad-1.zip

vscodenpa commented 7 months ago

Hey @deepak1556, this issue might need further attention.

@cartok, you can help us out by closing this issue if the problem no longer exists, or adding more information.

cartok commented 7 months ago

I don't experience this issue anymore.