vscode: vs code insiders snap version crashes on startup

  • VSCode Version: don’t know, I uninstalled it
  • OS Version: ubuntu 20.04

Steps to Reproduce:

  1. click on icon
  2. vs code insiders opens and closes right away I tried rebooting, uninstall/reinstall, still crashes (probably not related, but slack recently started doing exact same crash)

Does this issue occur when all extensions are disabled?: Yes/No I don’t know how.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 28 (12 by maintainers)

Most upvoted comments

This appears to be a snap issue.

I uninstalled the snap (https://snapcraft.io/install/code-insiders/ubuntu) and re-installed via ppa and apt (instructions: https://wiki.debian.org/VisualStudioCode) and it is working fine.

sudo snap remove --purge code-insiders
sudo apt -y install code-insiders

Tomorrow’s insider will contain the fix, incase you want to check on a one time test build https://az764295.vo.msecnd.net/insider/b640b5b29bffcab12e7e56ff8021164231849cc6/code-insider-1598483691.snap

I have a possible workaround based on https://chromium-review.googlesource.com/c/chromium/src/+/2211120, will update here once new build is available for testing.

VS Code Insiders crashes again

Name Version Revision
code-insiders 11dc5a81 503
VS Code output
~$ code-insiders --verbose --disable-gpu --disable-extensions --log trace
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
[351373:0818/123415.534031:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
pci id for fd 28: 1002:15d8, driver (null)
[351386:0818/123415.841739:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
[main 2020-08-18T07:34:15.856Z] Starting VS Code
[main 2020-08-18T07:34:15.858Z] from: /snap/code-insiders/503/usr/share/code-insiders/resources/app
[main 2020-08-18T07:34:15.858Z] args: {
  _: [],
  diff: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  version: false,
  verbose: true,
  log: 'trace',
  status: false,
  'prof-startup': false,
  'disable-extensions': true,
  'disable-gpu': true,
  telemetry: false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'disable-restore-windows': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': '1c7f1ae8-62f1-4ed8-b6ee-a140409316f6',
  'disable-user-env-probe': false,
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  'driver-verbose': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'force-user-env': false,
  'open-devtools': false,
  'no-proxy-server': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false
}
[main 2020-08-18T07:34:15.860Z] Resolving machine identifier...
[main 2020-08-18T07:34:15.860Z] Resolved machine identifier: 68602e8a449cf2465dc3108b6d6c7ee7de7e69e032d94867dda4f39b50db1023
[main 2020-08-18T07:34:15.962Z] update#setState idle
[main 2020-08-18T07:34:16.082Z] [storage state.vscdb] open(/home/user/.config/Code - Insiders/User/globalStorage/state.vscdb, retryOnBusy: true)
[main 2020-08-18T07:34:16.083Z] lifecycle (main): phase changed (value: 2)
[main 2020-08-18T07:34:16.085Z] windowsManager#open
[main 2020-08-18T07:34:16.088Z] window#validateWindowState: validating window state on 2 display(s) { mode: 0, x: 2279, y: 175, width: 1153, height: 880 }
[main 2020-08-18T07:34:16.089Z] window#validateWindowState: multi-monitor working area { x: 1920, y: 0, width: 1920, height: 1080 }
[main 2020-08-18T07:34:16.089Z] window#ctor: using window state { mode: 0, x: 2279, y: 175, width: 1153, height: 880 }
[main 2020-08-18T07:34:16.495Z] lifecycle (main): phase changed (value: 3)
[main 2020-08-18T07:34:16.497Z] telemetry/optInStatus { optIn: true }
[main 2020-08-18T07:34:16.498Z] telemetry/machineIdFallback { usingFallbackGuid: false }
[351400:0818/123416.520702:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
/dev/fd/3: No such file or directory
Server response:
[main 2020-08-18T07:34:16.761Z] [storage state.vscdb] Trace (event): PRAGMA user_version = 1;
[main 2020-08-18T07:34:16.775Z] [storage state.vscdb] Trace (event): CREATE TABLE IF NOT EXISTS ItemTable (key TEXT UNIQUE ON CONFLICT REPLACE, value BLOB)
[main 2020-08-18T07:34:16.776Z] [storage state.vscdb] Trace (event): SELECT * FROM ItemTable
[main 2020-08-18T07:34:16.777Z] [storage state.vscdb] getItems(): 82 rows
[351333:0818/123416.872308:WARNING:gpu_process_host.cc(1222)] The GPU process has crashed 1 time(s)
[351420:0818/123416.874394:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
[main 2020-08-18T07:34:16.880Z] [storage state.vscdb] updateItems(): insert(Map(3) {storage.serviceMachineId => cb991621-3046-456a-984d-a9385a57be76, telemetry.lastSessionDate => Mon, 17 Aug 2020 11:12:44 GMT, telemetry.currentSessionDate => Tue, 18 Aug 2020 07:34:16 GMT}), delete(Set(0) {})
[main 2020-08-18T07:34:16.882Z] [storage state.vscdb] Trace (event): BEGIN TRANSACTION
[main 2020-08-18T07:34:16.882Z] [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('storage.serviceMachineId','cb991621-3046-456a-984d-a9385a57be76'),('telemetry.lastSessionDate','Mon, 17 Aug 2020 11:12:44 GMT'),('telemetry.currentSessionDate','Tue, 18 Aug 2020 07:34:16 GMT')
[main 2020-08-18T07:34:16.883Z] [storage state.vscdb] Trace (event): END TRANSACTION
[351333:0818/123416.902590:WARNING:gpu_process_host.cc(985)] Reinitialized the GPU process after a crash. The reported initialization time was 27 ms
pci id for fd 30: 1002:15d8, driver (null)
/dev/fd/3: No such file or directory
Server response:
[351333:0818/123417.258345:WARNING:gpu_process_host.cc(1222)] The GPU process has crashed 2 time(s)
[351443:0818/123417.262725:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
pci id for fd 29: 1002:15d8, driver (null)
[351333:0818/123417.302428:WARNING:gpu_process_host.cc(985)] Reinitialized the GPU process after a crash. The reported initialization time was 38 ms
/dev/fd/3: No such file or directory
Server response:
[main 2020-08-18T07:34:17.690Z] getShellEnvironment: running on CLI, skipping
[351333:0818/123417.741963:WARNING:gpu_process_host.cc(1222)] The GPU process has crashed 3 time(s)
[351469:0818/123417.748010:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
pci id for fd 28: 1002:15d8, driver (null)
[351333:0818/123417.755999:WARNING:gpu_process_host.cc(985)] Reinitialized the GPU process after a crash. The reported initialization time was 0 ms
/dev/fd/3: No such file or directory
Server response:
[351333:0818/123418.120570:WARNING:gpu_process_host.cc(1222)] The GPU process has crashed 4 time(s)
[351493:0818/123418.123591:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
pci id for fd 28: 1002:15d8, driver (null)
[351333:0818/123418.133746:WARNING:gpu_process_host.cc(985)] Reinitialized the GPU process after a crash. The reported initialization time was 0 ms
/dev/fd/3: No such file or directory
Server response:
[351333:0818/123418.456298:WARNING:gpu_process_host.cc(1222)] The GPU process has crashed 5 time(s)
[351513:0818/123418.459537:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
pci id for fd 28: 1002:15d8, driver (null)
[351333:0818/123418.466528:WARNING:gpu_process_host.cc(985)] Reinitialized the GPU process after a crash. The reported initialization time was 0 ms
/dev/fd/3: No such file or directory
Server response:
[351333:0818/123418.801873:WARNING:gpu_process_host.cc(1222)] The GPU process has crashed 6 time(s)
[351333:0818/123418.801917:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.
(node:351400) Electron: Loading non-context-aware native module in renderer: '/snap/code-insiders/503/usr/share/code-insiders/resources/app/node_modules.asar.unpacked/node-pty/build/Release/pty.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
(node:351400) Electron: Loading non-context-aware native module in renderer: '/snap/code-insiders/503/usr/share/code-insiders/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
/dev/fd/3: No such file or directory
Server response:
/dev/fd/3: No such file or directory
Server response:

--disable-gpu --disable-gpu-compositing --disable-software-compositing-fallback --verbose.

Warning: 'disable-gpu-compositing' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'disable-software-compositing-fallback' is not in the list of known options, but still passed to Electron/Chromium.
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
[146809:0723/084755.855946:FATAL:viz_process_transport_factory.cc(305)] Software compositing fallback is unavailable. Goodbye.
/dev/fd/3: No such file or directory
Server response:
/dev/fd/3: No such file or directory
Server response:

fyi, nothing saves to /tmp/vscode-crash if that is added.