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
VSCode crash on start after packages updated on kubuntu 21.10 (development branch) #132455
Comments
Same here using Ubuntu 21.10 dev. |
Traceback:
|
Run with |
Any chance to use VSCode without disabling the GPU? Is it something that should be fixed on the VSCode side or Ubuntu side? |
Can you attach the crash dump following these steps https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports, thanks! |
Thanks for the logs, can you also confirm your systemd versions |
|
Since the gpu process exit codes are similar between #132609 and here, will check if the runtime fix helps. I will update here once we have a new build to verify. Couldn't get enough detail from the crash dumps as they appear incorrect after symbolication for this particular crash. |
Hello, my vscode also suddenly started to crash on ubuntu + nvidia. Same systemd. |
If possible can anyone try the following steps,
It will help me confirm the fix I had backported addresses the issue. |
Confirm that |
Thanks for confirming! |
The latest insider does not work for me: $ code-insiders --version
1.61.0-insider
1b9403cd461c9c975bcb9e48d84ba9e4ea86559e
x64 $ code-insiders --verbose
[main 2021-09-21T23:28:46.777Z] Starting VS Code
[main 2021-09-21T23:28:46.778Z] from: /usr/share/code-insiders/resources/app
[main 2021-09-21T23:28:46.778Z] 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,
status: false,
'prof-startup': false,
'no-cached-data': false,
'prof-v8-extensions': false,
'disable-extensions': false,
'disable-gpu': false,
telemetry: false,
debugRenderer: 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': '5cbd6415-6ff7-4d74-a2a5-2d5be895a0e1',
'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,
'force-disable-user-env': false,
'open-devtools': false,
__sandbox: false,
'no-proxy-server': false,
'no-sandbox': false,
nolazy: false,
'force-renderer-accessibility': false,
'ignore-certificate-errors': false,
'allow-insecure-localhost': false,
logsPath: '/home/hadim/.config/Code - Insiders/logs/20210921T192846'
}
[main 2021-09-21T23:28:46.779Z] Resolving machine identifier...
[main 2021-09-21T23:28:46.780Z] Resolved machine identifier: d2abc133a0442c638f626ba13c6747cc41ce11a92774dec98b2b99b81139aba3
[main 2021-09-21T23:28:46.781Z] Main->SharedProcess#connect
[main 2021-09-21T23:28:46.792Z] StorageMainService: creating global storage
[main 2021-09-21T23:28:46.793Z] lifecycle (main): phase changed (value: 2)
[main 2021-09-21T23:28:46.795Z] windowsManager#open
[main 2021-09-21T23:28:46.795Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ]
[main 2021-09-21T23:28:46.797Z] IPC Object URL: Registered new channel vscode:8aa05db1-7415-439d-a5d4-98e7f6720eba.
[main 2021-09-21T23:28:46.797Z] window#validateWindowState: validating window state on 1 display(s) {
width: 1024,
height: 768,
mode: 1,
x: 768,
y: 336,
hasDefaultState: true
}
[main 2021-09-21T23:28:46.797Z] window#validateWindowState: 1 monitor working area { x: 0, y: 27, width: 2560, height: 1363 }
[main 2021-09-21T23:28:46.797Z] window#ctor: using window state {
width: 1024,
height: 768,
mode: 1,
x: 768,
y: 336,
hasDefaultState: true
}
[main 2021-09-21T23:28:46.842Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, emptyToOpen: 1)
[main 2021-09-21T23:28:46.843Z] lifecycle (main): phase changed (value: 3)
[main 2021-09-21T23:28:46.844Z] update#setState idle
[main 2021-09-21T23:28:46.845Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[8249:0921/192846.879167:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192846.879190:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
[main 2021-09-21T23:28:46.928Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[8249:0921/192847.076954:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.076974:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
[8249:0921/192847.265894:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.265918:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
[8326:0921/192847.279670:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[8249:0921/192847.407715:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.407737:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
[8330:0921/192847.417157:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[8249:0921/192847.543457:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.543478:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
[8334:0921/192847.552576:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[8249:0921/192847.682436:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.682455:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
[8338:0921/192847.687252:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[8249:0921/192847.805284:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.805303:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
[8342:0921/192847.808835:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[8249:0921/192847.928488:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192847.928502:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
[8346:0921/192847.932100:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[8249:0921/192848.038422:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[8249:0921/192848.038456:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
[8249:0921/192848.038465:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
/dev/fd/3: No such file or directory
Server response:
/dev/fd/3: No such file or directory
Server response:
|
Using |
In message above, @hadim use exacly that version and it is not working as expected. |
Thanks for verifying, can you provide the following additional data to help debug further
|
$ code-insiders --verbose --enable-gpu-debugging
Warning: 'enable-gpu-debugging' is not in the list of known options, but still passed to Electron/Chromium.
[main 2021-09-22T12:41:35.306Z] Starting VS Code
[main 2021-09-22T12:41:35.307Z] from: /usr/share/code-insiders/resources/app
[main 2021-09-22T12:41:35.307Z] 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,
status: false,
'prof-startup': false,
'no-cached-data': false,
'prof-v8-extensions': false,
'disable-extensions': false,
'disable-gpu': false,
telemetry: false,
debugRenderer: 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': '5cbd6415-6ff7-4d74-a2a5-2d5be895a0e1',
'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,
'force-disable-user-env': false,
'open-devtools': false,
__sandbox: false,
'no-proxy-server': false,
'no-sandbox': false,
nolazy: false,
'force-renderer-accessibility': false,
'ignore-certificate-errors': false,
'allow-insecure-localhost': false,
logsPath: '/home/hadim/.config/Code - Insiders/logs/20210922T084135'
}
[main 2021-09-22T12:41:35.308Z] Resolving machine identifier...
[main 2021-09-22T12:41:35.308Z] Resolved machine identifier: d2abc133a0442c638f626ba13c6747cc41ce11a92774dec98b2b99b81139aba3
[main 2021-09-22T12:41:35.309Z] Main->SharedProcess#connect
[main 2021-09-22T12:41:35.317Z] StorageMainService: creating global storage
[main 2021-09-22T12:41:35.318Z] lifecycle (main): phase changed (value: 2)
[main 2021-09-22T12:41:35.319Z] windowsManager#open
[main 2021-09-22T12:41:35.319Z] windowsManager#open pathsToOpen [
{
backupPath: '/home/hadim/.config/Code - Insiders/Backups/1632266998887',
remoteAuthority: undefined
}
]
[main 2021-09-22T12:41:35.320Z] IPC Object URL: Registered new channel vscode:c486bd22-4d9c-434f-ba45-715200186835.
[main 2021-09-22T12:41:35.321Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, x: 550, y: 217, width: 1024, height: 768 }
[main 2021-09-22T12:41:35.321Z] window#validateWindowState: multi-monitor working area { x: 0, y: 27, width: 2560, height: 1363 }
[main 2021-09-22T12:41:35.321Z] window#ctor: using window state { mode: 1, x: 550, y: 217, width: 1024, height: 768 }
[main 2021-09-22T12:41:35.360Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2021-09-22T12:41:35.361Z] lifecycle (main): phase changed (value: 3)
[main 2021-09-22T12:41:35.362Z] update#setState idle
[main 2021-09-22T12:41:35.362Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[9259:0922/084135.386123:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084135.386142:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
[9259:0922/084135.585746:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084135.585762:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
[9259:0922/084135.746237:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084135.746259:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
[9337:0922/084135.757996:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[9259:0922/084135.881232:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084135.881252:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
[9341:0922/084135.889835:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[9259:0922/084135.993059:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084135.993081:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
[9345:0922/084136.000898:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[9259:0922/084136.096607:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084136.096628:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
[9349:0922/084136.100686:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[9259:0922/084136.182529:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084136.182546:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
[9353:0922/084136.186664:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[9259:0922/084136.275375:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084136.275433:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
[9357:0922/084136.279006:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[9259:0922/084136.359687:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[9259:0922/084136.359707:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
[9259:0922/084136.359717:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
/dev/fd/3: No such file or directory
Server response:
/dev/fd/3: No such file or directory
Server response:
No I can't reproduce with that flag. Code works correctly. |
I just tested and got the same results as hadlm: Same 159 exit codes and "GPU process isn't usable" s in the log when using --enable-gpu-debugging, whereas using --disable-gpu-sandbox causes it to work without crashing. |
By the way, sometimes need to run it several times to run code without crash. |
Thanks for the logs, the root issue has been narrowed down. Merging to #133593 |
Last message is "Unsupported instruction (stacktrace dumped to disk)"
The text was updated successfully, but these errors were encountered: