vscode: Incorrect crash event fired for termination of filewatcher by SIGTERM
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.79.2
- OS Version: Ubuntu 23.04
Steps to Reproduce:
- Open an empty folder in vscode
- Set this as workspace settings json:
{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.hg/store/**": true,
"**/.vscode-test-workspace/**": true,
"**/.vscode-user-data-dir/**": true,
"**/dist/**": true,
"**/fixtures/**": true
}
}
- Open the
Main
Output channel - An error message is dispayed in the output channel:
[error] [UtilityProcess id: 1, type: fileWatcher, pid: 28113]: crashed with code 15 and reason 'killed'
See also detailed reproduction steps in https://github.com/SimonSiefke/vscode-file-watcher-crashed
Complete Main Output Channel Logs
2023-06-28 20:16:26.396 [info] update#setState idle
2023-06-28 20:16:30.591 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2023-06-28 20:16:30.592 [error] [UtilityProcess id: 1, type: fileWatcher, pid: 28113]: crashed with code 15 and reason 'killed'
2023-06-28 20:16:30.593 [info] Extension host with pid 28133 exited with code: 0, signal: unknown.
2023-06-28 20:16:56.399 [info] update#setState checking for updates
2023-06-28 20:16:56.403 [info] update#setState idle
Expected behaviour
The file watcher doesn’t crash.
Actual behaviour
The file watcher crashes with code 15.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 28 (16 by maintainers)
Commits related to this issue
- utility process - treat exit code `15` as expected when killed (#186540) — committed to microsoft/vscode by bpasero 2 months ago
- utility process - treat exit code `15` as expected when killed (#186540) (#210738) — committed to microsoft/vscode by bpasero 2 months ago
- utility process - treat exit code `15` as expected when killed (#186540) (#210738) — committed to sergioengineer/VimSCode by bpasero 2 months ago
@anthony-langford @AngeloGross @Spyabo Please could you try installing the previous version of Pylance extension, thats
2023.10.20
Let me know if that works.Opening a
Here are the main logs related to the crash:
vscode
window that contains ajupyter notebook .ipynb
file causes the window to crash after loadingI think there is some confusion, the issue has two unrelated crashes being combined.
Filewatcher crash with code 15 - this was due to an incorrect crashed event being fired from the runtime when the process was killed by SIGTERM. @bpasero set out to address this and additionally there will not be any crash dumps generated as it is not a crash in the first place.
Crash reported by @jetm , I have separated it out to https://github.com/microsoft/vscode/issues/211422 as it is unrelated to the file watcher. @jetm can you comment in that issue with the data for https://github.com/microsoft/vscode/issues/186540#issuecomment-2078675731. Thanks!
@DonJayamanne I installed
2023.10.20
and the problem disappeared. Reinstalled the latest version2023.10.30
and the problem reappeared. In my opinion, it seems that there is a bug in2023.10.30
.Please check out this screencast of the issue:
And here is the crash dump:
vscode-file-watcher-crash-dump.zip
I hope this helps!