Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on startup after using a devcontainer #170999

Closed
paulfouquet opened this issue Jan 10, 2023 · 16 comments
Closed

Crash on startup after using a devcontainer #170999

paulfouquet opened this issue Jan 10, 2023 · 16 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues info-needed Issue requires more information from poster linux Issues with VS Code on Linux

Comments

@paulfouquet
Copy link

paulfouquet commented Jan 10, 2023

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

  • VS Code Version: 1.74.2 EDIT: I had the issue with 1.73.0 too
  • OS Version: Ubuntu 22.04.1 LTS

Steps to Reproduce:
I am not able to find a way to reproduce all the time yet, as the only solution I've found yet to get VSCode working again is to uninstall, clear the cache and install it again...

Most of the time that is how it happens:

  1. In VSCode, open a folder in a Devcontainer
  2. Close VSCode (after closing the connection to the Devcontainer or not)
  3. Launch VSCode again
  4. VSCode is not responding, nothing is displayed. Ubuntu shows the "The window is not responding" popup
Traces (I closed the window after waiting half a minute)
❯ code --verbose
[1550774:0111/080207.859793:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[1550812:0111/080208.018085:WARNING:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2023-01-10T19:02:08.023Z] [File Watcher (node.js)] Request to start watching: /home/paul/.config/Code/User (excludes: <none>, includes: <all>),/home/paul/.config/Code/User/settings.json (excludes: <none>, includes: <all>)
[main 2023-01-10T19:02:08.039Z] Starting VS Code
[main 2023-01-10T19:02:08.040Z] from: /usr/share/code/resources/app
[main 2023-01-10T19:02:08.040Z] 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,
  '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': 'e1e8f85a-367a-482a-917b-ae0d8d63b0c3',
  '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,
  '__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/paul/.config/Code/logs/20230111T080208'
}
[main 2023-01-10T19:02:08.042Z] Resolving machine identifier...
[main 2023-01-10T19:02:08.042Z] Resolved machine identifier: 4d5efdae6030868ed8c08e88c365341a2612b2a429e2a501352830dceef4d84d
[main 2023-01-10T19:02:08.043Z] Main->SharedProcess#connect
[main 2023-01-10T19:02:08.048Z] StorageMainService: creating application storage
[main 2023-01-10T19:02:08.053Z] lifecycle (main): phase changed (value: 2)
[main 2023-01-10T19:02:08.053Z] windowsManager#open
[main 2023-01-10T19:02:08.053Z] windowsManager#open pathsToOpen [
  {
    backupPath: '/home/paul/.config/Code/Backups/1673377127432',
    remoteAuthority: undefined
  }
]
[main 2023-01-10T19:02:08.054Z] windowsManager#doOpenEmpty {
  restore: true,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: true
}
[main 2023-01-10T19:02:08.054Z] IPC Object URL: Registered new channel vscode:4035b54c-d817-4aa3-91f5-8b3c6cfd3098.
[main 2023-01-10T19:02:08.054Z] window#validateWindowState: validating window state on 2 display(s) { mode: 0, x: 2368, y: 193, width: 1024, height: 768 }
[main 2023-01-10T19:02:08.055Z] window#validateWindowState: multi-monitor working area { x: 1920, y: 27, width: 1920, height: 994 }
[main 2023-01-10T19:02:08.055Z] window#ctor: using window state { mode: 0, x: 2368, y: 193, width: 1024, height: 768 }
[main 2023-01-10T19:02:08.102Z] window#load: attempt to load window (id: 1)
[main 2023-01-10T19:02:08.111Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2023-01-10T19:02:08.112Z] lifecycle (main): phase changed (value: 3)
[main 2023-01-10T19:02:08.112Z] update#setState idle
[main 2023-01-10T19:02:08.113Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-01-10T19:02:08.160Z] [File Watcher (node.js)] Started watching: '/home/paul/.config/Code/User'
[main 2023-01-10T19:02:08.176Z] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/paul/.config/Code/User/settings.json'
[main 2023-01-10T19:02:10.616Z] lifecycle (main): phase changed (value: 4)
[main 2023-01-10T19:02:23.235Z] CodeWindow: detected unresponsive
[main 2023-01-10T19:02:38.127Z] update#checkForUpdates, state =  idle
[main 2023-01-10T19:02:38.128Z] update#setState checking for updates
[main 2023-01-10T19:02:38.128Z] RequestService#request (node) - begin https://update.code.visualstudio.com/api/update/linux-x64/stable/e8a3071ea4344d9d48ef8a4df2c097372b0c5161
[main 2023-01-10T19:02:38.128Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-01-10T19:02:38.700Z] RequestService#request (node) - success https://update.code.visualstudio.com/api/update/linux-x64/stable/e8a3071ea4344d9d48ef8a4df2c097372b0c5161
[main 2023-01-10T19:02:38.701Z] update#setState available for download
[main 2023-01-10T19:03:07.750Z] CodeWindow: detected unresponsive
[main 2023-01-10T19:03:24.760Z] CodeWindow: detected unresponsive
[main 2023-01-10T19:03:41.374Z] CodeWindow: detected unresponsive
[main 2023-01-10T19:03:58.217Z] CodeWindow: detected unresponsive

I've followed the process: https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report
A .dmp file has been saved in the pending folder only: 915824c2-b41e-495f-a623-221878bda069.zip

Devcontainer configuration

Dockerfile

FROM osgeo/gdal:ubuntu-small-3.6.1

RUN apt update && apt install -y python3-pi
p python3-distutils git
RUN curl -sSL https://install.python-poetry.org | python3 -

# Allowing access to osgeo/gdal python library within the venv environment created with Poetry
ENV PYTHONPATH="/lib/python3/dist-packages:/workspaces/topo-imagery:$PYTHONPATH"

ENV PATH=/root/.local/bin:$PATH

devcontainer.json

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
  "name": "topo-imagery-dev",
  "context": "..",
  "dockerFile": "Dockerfile",
  "customizations": {
    "vscode": {
      "settings": {
        "terminal.integrated.profiles.linux": {
          "bash": {
            "path": "/bin/bash"
          }
        },
        "editor.codeActionsOnSave": {
          "source.organizeImports": true
        },
        "python.defaultInterpreterPath": "${containerWorkspaceFolder}/.venv/bin/python3.10",
        "python.formatting.blackPath": "${containerWorkspaceFolder}/.venv/bin/black",
        "python.linting.mypyPath": "${containerWorkspaceFolder}/.venv/bin/mypy",
        "python.linting.pylintPath": "${containerWorkspaceFolder}/.venv/bin/pylint",
        "python.formatting.provider": "black",
        "python.testing.pytestEnabled": true,
        "python.linting.enabled": true,
        "python.linting.pylintEnabled": true,
        "editor.formatOnSave": true,
        "autoDocstring.docstringFormat": "google-notypes"
      },
      "extensions": [
        "ms-python.python",
        "ms-python.vscode-pylance",
        "esbenp.prettier-vscode",
        "njpwerner.autodocstring"
      ]
    }
  },
  "postCreateCommand": "bash ./.devcontainer/post_create.sh",
  "postStartCommand": "bash ./.devcontainer/post_start.sh ${containerWorkspaceFolder}",
  "mounts": [
    "source=${localEnv:HOME}${localEnv:USERPROFILE}/.aws,target=/root/.aws,type=bind",
    "source=${localEnv:HOME}${localEnv:USERPROFILE}/.bashrc,target=/root/.bashrc,type=bind,consistency=cached"
    //"source=${localEnv:HOME}${localEnv:USERPROFILE}/tmp,target=/tmp,type=bind"
  ],
  // https://containers.dev/features
  // NOTE: installing Git in that way took more time than within the Dockerfile
  "features": {
    "ghcr.io/devcontainers/features/docker-in-docker:2": {}
  },
  "waitFor": "postCreateCommand"
}

post_create.sh

#!/bin/bash

poetry config cache-dir $(pwd)/.cache
poetry config virtualenvs.in-project true

post_started.sh

#!/bin/bash
set -e
# Install all dependencies with poetry
poetry install --no-interaction
git config --global --add safe.directory $1
poetry run pre-commit install
@rzhao271 rzhao271 added freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues linux Issues with VS Code on Linux and removed triage-needed labels Jan 10, 2023
@paulfouquet
Copy link
Author

paulfouquet commented Jan 10, 2023

It is now crashing every time I launch it.
I've re-install it twice using the following process and did not use any Devcontainer this time.

sudo apt-get remove code
rm -r ~/.config/Code/
sudo apt install ./code_1.74.2-1671533413_amd64.deb
Traces
 code --disable-extensions --verbose
[8200:0111/114825.789008:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[main 2023-01-10T22:48:25.847Z] [File Watcher (node.js)] Request to start watching: /home/paul/.config/Code/User (excludes: <none>, includes: <all>),/home/paul/.config/Code/User/settings.json (excludes: <none>, includes: <all>)
[8238:0111/114825.850724:WARNING:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2023-01-10T22:48:25.854Z] Starting VS Code
[main 2023-01-10T22:48:25.855Z] from: /usr/share/code/resources/app
[main 2023-01-10T22:48:25.855Z] 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': true,
  'disable-gpu': 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': 'e1e8f85a-367a-482a-917b-ae0d8d63b0c3',
  '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,
  '__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/paul/.config/Code/logs/20230111T114825'
}
[main 2023-01-10T22:48:25.856Z] Resolving machine identifier...
[main 2023-01-10T22:48:25.856Z] Resolved machine identifier: 4d5efdae6030868ed8c08e88c365341a2612b2a429e2a501352830dceef4d84d
[main 2023-01-10T22:48:25.856Z] Main->SharedProcess#connect
[main 2023-01-10T22:48:25.859Z] StorageMainService: creating application storage
[main 2023-01-10T22:48:25.861Z] lifecycle (main): phase changed (value: 2)
[main 2023-01-10T22:48:25.862Z] windowsManager#open
[main 2023-01-10T22:48:25.862Z] windowsManager#open pathsToOpen [
  {
    backupPath: '/home/paul/.config/Code/Backups/1673390637644',
    remoteAuthority: undefined
  }
]
[main 2023-01-10T22:48:25.862Z] windowsManager#doOpenEmpty {
  restore: true,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: true
}
[main 2023-01-10T22:48:25.863Z] IPC Object URL: Registered new channel vscode:f1492f41-4066-40b9-a153-8130c0b1eab7.
[main 2023-01-10T22:48:25.863Z] window#validateWindowState: validating window state on 2 display(s) { mode: 0, x: 2368, y: 193, width: 1024, height: 768 }
[main 2023-01-10T22:48:25.864Z] window#validateWindowState: multi-monitor working area { x: 1920, y: 27, width: 1920, height: 994 }
[main 2023-01-10T22:48:25.864Z] window#ctor: using window state { mode: 0, x: 2368, y: 193, width: 1024, height: 768 }
[main 2023-01-10T22:48:25.890Z] window#load: attempt to load window (id: 1)
[main 2023-01-10T22:48:25.894Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2023-01-10T22:48:25.894Z] lifecycle (main): phase changed (value: 3)
[main 2023-01-10T22:48:25.894Z] update#setState idle
[main 2023-01-10T22:48:25.894Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-01-10T22:48:25.915Z] [File Watcher (node.js)] Started watching: '/home/paul/.config/Code/User'
[main 2023-01-10T22:48:25.918Z] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/paul/.config/Code/User/settings.json'
[main 2023-01-10T22:48:28.396Z] lifecycle (main): phase changed (value: 4)
[main 2023-01-10T22:48:40.971Z] CodeWindow: detected unresponsive
~/.config/Code 
❯ ls -l
total 96
drwxr-xr-x 2 paul paul  4096 Jan 11 11:43  Backups
drwx------ 3 paul paul  4096 Jan 11 11:48  blob_storage
drwx------ 3 paul paul  4096 Jan 11 11:43  Cache
drwxr-xr-x 3 paul paul  4096 Jan 11 11:44  CachedConfigurations
drwxr-xr-x 3 paul paul  4096 Jan 11 11:43  CachedData
drwxr-xr-x 2 paul paul  4096 Jan 11 11:43  CachedExtensions
drwx------ 4 paul paul  4096 Jan 11 11:43 'Code Cache'
-rw------- 1 paul paul 20480 Jan 11 11:43  Cookies
-rw------- 1 paul paul     0 Jan 11 11:43  Cookies-journal
drwx------ 6 paul paul  4096 Jan 11 11:43  Crashpad
drwx------ 2 paul paul  4096 Jan 11 11:43  Dictionaries
drwx------ 2 paul paul  4096 Jan 11 11:43  GPUCache
-rw-r--r-- 1 paul paul     2 Jan 11 11:43  languagepacks.json
drwx------ 3 paul paul  4096 Jan 11 11:43 'Local Storage'
drwxr-xr-x 5 paul paul  4096 Jan 11 11:48  logs
-rw-r--r-- 1 paul paul    36 Jan 11 11:43  machineid
-rw------- 1 paul paul   801 Jan 11 11:48 'Network Persistent State'
-rw------- 1 paul paul    57 Jan 11 11:44  Preferences
drwx------ 2 paul paul  4096 Jan 11 11:48 'Session Storage'
-rw------- 1 paul paul   539 Jan 11 11:44  TransportSecurity
drwxr-xr-x 6 paul paul  4096 Jan 11 11:43  User

I am not sure if it is related to using a devcontainer anymore, but the issue started since I did use a devcontainer.

@paulfouquet
Copy link
Author

Please let me know if any update or need more information to investigate.

@rzhao271
Copy link
Contributor

rzhao271 commented Jan 30, 2023

Symbolicated log: symbolicated-output.log

The crash occurs in views::DesktopNativeWidgetAura::OnWindowActivated in desktop_native_widget_aura.cc. I noticed Chromium commit bf79dad adds in a null check for native_widget_delegate_, so I speculate that that is where the crash is occurring.

For reference, the commit above was first released in Chromium M109, which is available in Electron 23. VS Code 1.74.2 uses Electron 19.1.8.

@rzhao271 rzhao271 added the bug Issue identified by VS Code Team member as probable bug label Jan 30, 2023
@rzhao271 rzhao271 added this to the February 2023 milestone Jan 30, 2023
@deepak1556
Copy link
Collaborator

Does the crash repro when you run with --ozone-platform="wayland" --enable-features="WaylandWindowDecorations" ?

@paulfouquet
Copy link
Author

I am not able to launch VSCode with this command:

❯ code --ozone-platform="wayland" --enable-features="WaylandWindowDecorations" --verbose
Warning: 'ozone-platform' 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.
[0201/150145.864830:ERROR:file_io_posix.cc(152)] open /home/paul/.config/Code/Crashpad/pending/1fff74d6-6a4e-4ac6-9a18-b4c149c353a2.lock: File exists (17)
[0201/150145.864871:ERROR:file_io_posix.cc(152)] open /home/paul/.config/Code/Crashpad/pending/5968ec67-71a1-4a8f-8adc-5ea0dedbd521.lock: File exists (17)
[152764:0201/150145.865528:ERROR:wayland_connection.cc(209)] Failed to connect to Wayland display
[152764:0201/150145.865576:ERROR:ozone_platform_wayland.cc(226)] Failed to initialize Wayland platform
[152764:0201/150145.865579:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
The futex facility returned an unexpected error code.
[0201/150145.866997:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0201/150145.895788:ERROR:directory_reader_posix.cc(42)] opendir /home/paul/.config/Code/Crashpad/attachments/658bf380-c8e3-493a-8138-7c6823f55d08: No such file or directory (2)

@deepak1556
Copy link
Collaborator

Seems like you are running under Xorg, you would need to switch your desktop enviroment to use wayland and then try.

@paulfouquet
Copy link
Author

paulfouquet commented Feb 7, 2023

I enabled wayland and tried again, still not able to open VSCode:

Traces
❯ code --ozone-platform="wayland" --enable-features="WaylandWindowDecorations" --verbose
Warning: 'ozone-platform' 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.
[0208/090947.451391:ERROR:file_io_posix.cc(152)] open /home/paul/.config/Code/Crashpad/pending/1fff74d6-6a4e-4ac6-9a18-b4c149c353a2.lock: File exists (17)
[0208/090947.451445:ERROR:file_io_posix.cc(152)] open /home/paul/.config/Code/Crashpad/pending/5968ec67-71a1-4a8f-8adc-5ea0dedbd521.lock: File exists (17)
[0208/090947.451814:ERROR:file_io_posix.cc(152)] open /home/paul/.config/Code/Crashpad/pending/658bf380-c8e3-493a-8138-7c6823f55d08.lock: File exists (17)
[5846:0208/090947.454905:WARNING:wayland_object.cc(94)] Binding to gtk_shell1 version 4 but version 5 is available.
[5846:0208/090947.454952:WARNING:wayland_object.cc(94)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[5846:0208/090947.454962:WARNING:wayland_object.cc(94)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[5846:0208/090947.455211:WARNING:wayland_drm.cc(96)] Failed to get drm magic
[5846:0208/090947.590922:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[5895:0208/090947.617253:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is egl, ANGLE is
[5895:0208/090947.620497:WARNING:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2023-02-07T20:09:47.692Z] [File Watcher (node.js)] Request to start watching: /home/paul/.config/Code/User (excludes: <none>, includes: <all>),/home/paul/.config/Code/User/settings.json (excludes: <none>, includes: <all>)
[main 2023-02-07T20:09:47.704Z] Starting VS Code
[main 2023-02-07T20:09:47.704Z] from: /usr/share/code/resources/app
[main 2023-02-07T20:09:47.704Z] 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,
  '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': 'e1e8f85a-367a-482a-917b-ae0d8d63b0c3',
  '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,
  '__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/paul/.config/Code/logs/20230208T090947'
}
[main 2023-02-07T20:09:47.705Z] Resolving machine identifier...
[main 2023-02-07T20:09:47.706Z] Resolved machine identifier: 4d5efdae6030868ed8c08e88c365341a2612b2a429e2a501352830dceef4d84d
[main 2023-02-07T20:09:47.706Z] Main->SharedProcess#connect
[main 2023-02-07T20:09:47.709Z] StorageMainService: creating application storage
[main 2023-02-07T20:09:47.712Z] lifecycle (main): phase changed (value: 2)
[main 2023-02-07T20:09:47.713Z] windowsManager#open
[main 2023-02-07T20:09:47.713Z] windowsManager#open pathsToOpen [
  {
    backupPath: '/home/paul/.config/Code/Backups/1673390637644',
    remoteAuthority: undefined
  }
]
[main 2023-02-07T20:09:47.714Z] windowsManager#doOpenEmpty {
  restore: true,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: true
}
[main 2023-02-07T20:09:47.715Z] IPC Object URL: Registered new channel vscode:f4d364a0-6ad1-4581-9ca8-b58b322d6e90.
[main 2023-02-07T20:09:47.715Z] window#validateWindowState: validating window state on 3 display(s) { mode: 0, x: 1920, y: 64, width: 1920, height: 957 }
[main 2023-02-07T20:09:47.715Z] window#validateWindowState: multi-monitor working area { x: 1920, y: 0, width: 1920, height: 1080 }
[main 2023-02-07T20:09:47.715Z] window#ctor: using window state { mode: 0, x: 1920, y: 64, width: 1920, height: 957 }
[5846:0208/090947.717592:WARNING:wayland_surface.cc(126)] Server doesn't support zcr_alpha_compositing_v1.
[5846:0208/090947.717603:WARNING:wayland_surface.cc(137)] Server doesn't support overlay_prioritizer.
[5846:0208/090947.717606:WARNING:wayland_surface.cc(147)] Server doesn't support surface_augmenter.
[5846:0208/090947.717613:WARNING:wayland_surface.cc(126)] Server doesn't support zcr_alpha_compositing_v1.
[5846:0208/090947.717615:WARNING:wayland_surface.cc(137)] Server doesn't support overlay_prioritizer.
[5846:0208/090947.717618:WARNING:wayland_surface.cc(147)] Server doesn't support surface_augmenter.
[main 2023-02-07T20:09:47.742Z] window#load: attempt to load window (id: 1)
[main 2023-02-07T20:09:47.751Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2023-02-07T20:09:47.752Z] lifecycle (main): phase changed (value: 3)
[main 2023-02-07T20:09:47.752Z] update#setState idle
[main 2023-02-07T20:09:47.752Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2023-02-07T20:09:47.767Z] [File Watcher (node.js)] Started watching: '/home/paul/.config/Code/User'
[main 2023-02-07T20:09:47.778Z] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/paul/.config/Code/User/settings.json'
[main 2023-02-07T20:09:50.256Z] lifecycle (main): phase changed (value: 4)
[main 2023-02-07T20:10:02.941Z] CodeWindow: detected unresponsive
[main 2023-02-07T20:10:04.986Z] IPC Object URL: Removed channel vscode:f4d364a0-6ad1-4581-9ca8-b58b322d6e90.
[main 2023-02-07T20:10:04.987Z] Lifecycle#window.on('closed') - window ID 1
[main 2023-02-07T20:10:04.987Z] Lifecycle#onWillShutdown.fire()
[main 2023-02-07T20:10:04.988Z] storageMainService#onWillShutdown()
[main 2023-02-07T20:10:04.988Z] Lifecycle#app.on(window-all-closed)
[main 2023-02-07T20:10:04.988Z] Lifecycle#app.on(before-quit)
[main 2023-02-07T20:10:04.988Z] Lifecycle#onBeforeShutdown.fire()
[main 2023-02-07T20:10:04.988Z] [WindowsStateHandler] onBeforeShutdown {
  lastActiveWindow: {
    workspaceIdentifier: undefined,
    folder: undefined,
    backupPath: '/home/paul/.config/Code/Backups/1673390637644',
    remoteAuthority: undefined,
    uiState: [Object: null prototype] {
      mode: 0,
      x: 0,
      y: 0,
      width: 1920,
      height: 957
    }
  },
  lastPluginDevelopmentHostWindow: undefined,
  openedWindows: []
}
[main 2023-02-07T20:10:04.988Z] Lifecycle#app.on(will-quit)
[0208/091004.990675:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0208/091004.994398:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0208/091005.017344:ERROR:directory_reader_posix.cc(42)] opendir /home/paul/.config/Code/Crashpad/attachments/74ef5194-4f94-4563-9801-81bb0b4f4d07: No such file or directory (2)

@paulfouquet
Copy link
Author

If I uninstall VSCode sudo apt-get purge code and remove the associated files in ~/.vscode and ~/.config/Code and re-install VSCode again, I am able to launch VSCode the first time. If I exit it (without doing anything with it prior) and try to launch it again, it fails.

@0xteo
Copy link

0xteo commented Apr 25, 2023

@deepak1556 As per #180283 I tried what you suggested by launching
code-insiders --verbose --log debug --disable-extensions --user-data-dir /tmp/vscode-focus
But still the issue occurs.

@deepak1556
Copy link
Collaborator

@0xteo does the issue repro with latest stable v1.78 ?

@deepak1556 deepak1556 added the info-needed Issue requires more information from poster label May 15, 2023
@0xteo
Copy link

0xteo commented May 17, 2023

@deepak1556 Yes, still occurs with 1.78.2 stable. First time around it does work though, from the second time it stops working.
The last working version for me is 1.73.1-1667967334 on stable.

@deepak1556 deepak1556 removed the info-needed Issue requires more information from poster label May 17, 2023
@deepak1556
Copy link
Collaborator

Thanks for testing, can you provide the crash logs for 1.78 since we have updated the runtime version in this release.

@rzhao271 rzhao271 added this to the Backlog milestone Dec 7, 2023
@deepak1556
Copy link
Collaborator

Please check if the issue is present with latest stable 1.85, attach new crash logs if it does.

@deepak1556 deepak1556 added the info-needed Issue requires more information from poster label Dec 15, 2023
@deepak1556 deepak1556 removed this from the Backlog milestone Dec 15, 2023
@vscodenpa
Copy link

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!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
@beejaz
Copy link

beejaz commented Feb 5, 2024

I have this issue with one of my devcontainers also. I started happening on my Windows 11 with WSL2, first time i launch it and open in devcontainer it works and then next time i open VSCode it freezes during the process of installing extensions. VSCode freezes and I need to close it by the popup. If I open it again and not using the devcontainer it works.

I bought an Macbook M3 Pro instead and cloned my repo, opened VSCode, re-opened in Devcontainer and it worked flawless first time. Exit VSCode, container closes, open VSCode again, re-opened in Devcontainer -- VSCode freezes during extension initialization.

Im able to use VSCode and the docker containers without any issues as long as i dont use the devcontainer option.

Ive tried VSCode troubleshooting to disable/enable each extension -- didnt help. No issues found.
Ive tried to clean all container images/volumes in docker, restart with clear cache option -- same issue, freezes during Devcontainer.

Im new to Apple, how can I provide logs for you?

Version: 1.86.0
Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937
Date: 2024-01-31T10:29:11.933Z (5 days ago)
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0

@rzhao271
Copy link
Contributor

rzhao271 commented Feb 5, 2024

@beejaz I recommend creating a new issue with a crash report if possible.
The Native Crash Issues page on the wiki explains how to create a crash report.

@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues info-needed Issue requires more information from poster linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests

7 participants