microsoft / vscode

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

The window terminated unexpectedlly(reason: 'crashed', code: '2147483645') #219051

Closed cumt-robin closed 2 months ago

cumt-robin commented 2 months ago

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

Steps to Reproduce:

  1. Just open the vscode
  2. Throw this error indefinitely
  3. Click the "New Window" not work.
  4. uninstall and clear %USERPROFILE%.vscode, reinstall, not work.
  5. reboot the computer, not work. image
cumt-robin commented 2 months ago
C:\coollu\gitlab\mmc\mmc-uniapp>code --verbose

[main 2024-06-28T02:02:53.532Z] PolicyConfiguration#initialize
[main 2024-06-28T02:02:53.533Z] PolicyConfiguration#updatePolicyDefinitions [
  'http.proxy',
  'http.proxyStrictSSL',
  'http.proxyKerberosServicePrincipal',
  'http.proxyAuthorization',
  'http.proxySupport',
  'http.systemCertificates',
  'http.experimental.systemCertificatesV2',
  'telemetry.telemetryLevel',
  'telemetry.enableTelemetry',
  'update.mode',
  'update.channel',
  'update.enableWindowsBackgroundUpdates',
  'update.showReleaseNotes'
]
[main 2024-06-28T02:02:53.535Z] NativePolicyService#_updatePolicyDefinitions - Found 1 policy definitions
[main 2024-06-28T02:02:53.546Z] [File Watcher (node.js)] Request to start watching: c:\Users\Win10\AppData\Roaming\Code\User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),c:\Users\Win10\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2024-06-28T02:02:53.551Z] NativePolicyService#_onDidPolicyChange - Updated policy values: {}
[main 2024-06-28T02:02:53.552Z] PolicyConfiguration#update [ 'update.mode' ]
[main 2024-06-28T02:02:53.571Z] Starting VS Code
[main 2024-06-28T02:02:53.571Z] from: c:\Users\Win10\AppData\Local\Programs\Microsoft VS Code\resources\app
[main 2024-06-28T02:02:53.571Z] 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,
  'update-extensions': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-lcd-text': false,
  'disable-gpu': false,
  'disable-chromium-sandbox': false,
  sandbox: 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': '7f696de4-377e-4242-b2df-24d1762e18c8',
  'skip-add-to-recently-opened': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'preserve-env': 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: 'C:\\Users\\Win10\\AppData\\Roaming\\Code\\logs\\20240628T100253'
}
[main 2024-06-28T02:02:53.572Z] Resolving machine identifier...
[main 2024-06-28T02:02:53.573Z] Resolved machine identifier: 0fca13cf0f2f9e5ab252f541d8b2a711af5c49a5a80ff9656a08fdf8170d89c3
[main 2024-06-28T02:02:53.573Z] Main->SharedProcess#connect
[main 2024-06-28T02:02:53.573Z] PolicyConfiguration#updatePolicyDefinitions [
  'terminal.integrated.automationProfile.linux',
  'terminal.integrated.automationProfile.osx',
  'terminal.integrated.automationProfile.windows',
  'terminal.integrated.profiles.windows',
  'terminal.integrated.profiles.osx',
  'terminal.integrated.profiles.linux',
  'terminal.integrated.useWslProfiles',
  'terminal.integrated.inheritEnv',
  'terminal.integrated.persistentSessionScrollback',
  'terminal.integrated.showLinkHover',
  'terminal.integrated.ignoreProcessNames'
]
[main 2024-06-28T02:02:53.573Z] PolicyConfiguration#updatePolicyDefinitions [
  'terminal.integrated.defaultProfile.linux',
  'terminal.integrated.defaultProfile.osx',
  'terminal.integrated.defaultProfile.windows'
]
[main 2024-06-28T02:02:53.576Z] PolicyConfiguration#update []
[main 2024-06-28T02:02:53.576Z] PolicyConfiguration#update []
[main 2024-06-28T02:02:53.585Z] [File Watcher (node.js)] Started watching: 'c:\Users\Win10\AppData\Roaming\Code\User'
[main 2024-06-28T02:02:53.586Z] [File Watcher (node.js)] Started watching: 'c:\Users\Win10\AppData\Roaming\Code\User\settings.json'
[main 2024-06-28T02:02:53.592Z] StorageMainService: creating application storage
[main 2024-06-28T02:02:53.596Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2024-06-28T02:02:53.596Z] lifecycle (main): phase changed (value: 2)
[main 2024-06-28T02:02:53.596Z] windowsManager#open
[main 2024-06-28T02:02:53.596Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ]
[main 2024-06-28T02:02:53.596Z] windowsManager#doOpenEmpty {
  restore: false,
  remoteAuthority: undefined,
  filesToOpen: undefined,
  forceNewWindow: false
}
[main 2024-06-28T02:02:53.597Z] IPC Object URL: Registered new channel vscode:16e33f60-af65-4c55-b025-bca51a8e6ef4.
[main 2024-06-28T02:02:53.598Z] window#validateWindowState: validating window state on 2 display(s) {
  width: 1024,
  height: 768,
  mode: 1,
  x: 448,
  y: 156,
  hasDefaultState: true
}
[main 2024-06-28T02:02:53.598Z] window#validateWindowState: multi-monitor working area { x: 0, y: 0, width: 1920, height: 1032 }
[main 2024-06-28T02:02:53.598Z] window#ctor: using window state {
  width: 1024,
  height: 768,
  mode: 1,
  x: 448,
  y: 156,
  hasDefaultState: true
}
[main 2024-06-28T02:02:53.663Z] window#load: attempt to load window (id: 1)
[main 2024-06-28T02:02:53.679Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, emptyToOpen: 1)
[main 2024-06-28T02:02:53.679Z] lifecycle (main): phase changed (value: 3)
[main 2024-06-28T02:02:53.684Z] resolveShellEnv(): skipped (Windows)
[main 2024-06-28T02:02:53.725Z] update#setState idle
[main 2024-06-28T02:02:53.769Z] [File Watcher (node.js)] [raw] ["change"] globalStorage
[main 2024-06-28T02:02:53.769Z] [File Watcher (node.js)] [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:53.770Z] [File Watcher (node.js)] [raw] ["change"] globalStorage
[main 2024-06-28T02:02:53.770Z] [File Watcher (node.js)] [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:53.772Z] resolveShellEnv(): skipped (Windows)
[main 2024-06-28T02:02:53.779Z] [File Watcher (node.js)] [raw] ["change"] globalStorage
[main 2024-06-28T02:02:53.779Z] [File Watcher (node.js)] [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:53.857Z] [File Watcher (node.js)]  >> normalized [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:53.858Z] User data changed
Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.
[main 2024-06-28T02:02:53.922Z] CodeWindow: renderer process gone (reason: crashed, code: -2147483645)
[main 2024-06-28T02:02:54.079Z] [File Watcher (node.js)] [raw] ["change"] globalStorage
[main 2024-06-28T02:02:54.079Z] [File Watcher (node.js)] [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:54.080Z] [File Watcher (node.js)] [raw] ["change"] globalStorage
[main 2024-06-28T02:02:54.081Z] [File Watcher (node.js)] [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:54.088Z] [File Watcher (node.js)] [raw] ["change"] globalStorage
[main 2024-06-28T02:02:54.088Z] [File Watcher (node.js)] [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:54.156Z] [File Watcher (node.js)]  >> normalized [CHANGED] c:\Users\Win10\AppData\Roaming\Code\User\globalStorage
[main 2024-06-28T02:02:54.156Z] User data changed
[main 2024-06-28T02:02:56.208Z] lifecycle (main): phase changed (value: 4)