"The window terminated unexpectedly (reason: 'killed', code: '15')"
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
1. Open multiple VS Code windows, each for a different Git worktree of the same repo.
2. Delete one of the worktrees from a terminal window.
3. Switch back to VS Code.
Often, but not always, every single open VS Code window will crash with the following message:
> The window terminated unexpectedly (reason: 'killed', code: '15')
>
> We are sorry for the inconvenience. You can reopen the window to continue where you left off.
I have been unable to determine the specific conditions for the error to occur.
Sample log contents:
`window1/renderer.log` and `window1/fileWatcher.log` both end with
```
2026-07-14 17:01:49.194 [warning] [File Watcher (node.js)] Watcher shutdown because watched path got deleted
2026-07-14 17:01:49.246 [warning] [File Watcher ('parcel')] Watcher shutdown because watched path got deleted (path: /Users/josh/src/app.branchname)
```
main.log has a number of similar errors:
```
2026-07-14 17:02:00.373 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2026-07-14 17:02:00.633 [error] [UtilityProcess type: shared-process, pid: 50819]: crashed with code 15 and reason 'killed'
2026-07-14 17:02:00.634 [info] [network process] gone - pid: 50547, exitCode: 15, crashed: true, crashedPreIPC: false
2026-07-14 17:02:00.637 [info] Extension host with pid 51085 exited with code: 15, signal: unknown.
2026-07-14 17:02:00.637 [error] [UtilityProcess id: 4, type: extensionHost, pid: 51085]: crashed with code 15 and reason 'killed'
2026-07-14 17:02:00.637 [info] Extension host with pid 51079 exited with code: 15, signal: unknown.
2026-07-14 17:02:00.637 [error] [UtilityProcess id: 3, type: extensionHost, pid: 51079]: crashed with code 15 and reason 'killed'
2026-07-14 17:02:00.637 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2026-07-14 17:02:00.640 [info] Extension host with pid 51082 exited with code: 15, signal: unknown.
2026-07-14 17:02:00.640 [error] [UtilityProcess id: 5, type: extensionHost, pid: 51082]: crashed with code 15 and reason 'killed'
2026-07-14 17:02:00.640 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2026-07-14 17:02:00.641 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2026-07-14 17:02:00.642 [info] Extension host with pid 51102 exited with code: 15, signal: unknown.
2026-07-14 17:02:00.642 [error] [UtilityProcess id: 2, type: extensionHost, pid: 51102]: crashed with code 15 and reason 'killed'
2026-07-14 17:02:00.643 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2026-07-14 17:02:00.643 [info] Extension host with pid 51073 exited with code: 15, signal: unknown.
2026-07-14 17:02:00.643 [error] [UtilityProcess id: 1, type: extensionHost, pid: 51073]: crashed with code 15 and reason 'killed'
2026-07-14 17:02:00.646 [error] CodeWindow: renderer process gone (reason: killed, code: 15)
2026-07-14 17:02:00.933 [info] [network process] launched with pid 58846
2026-07-14 17:02:00.935 [error] CodeWindow: renderer process gone (reason: killed, code: 15)
```
Full logs available upon request.
VS Code version: Code 1.128.1 (5264f2156cbcd7aea5fd004d29eaa10209155d66, 2026-07-14T07:19:31-07:00)
OS version: Darwin arm64 25.5.0
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|Apple M5 Pro (18 x 2400)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M5 Pro, Version 26.5.2 (Build 25F84))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.5.2 *ACTIVE*
Machine model name: Mac
Machine model version: 17.8
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|6, 5, 4|
|Memory (System)|48.00GB (0.38GB free)|
|Process Argv|--crash-reporter-id 8c68091c-19e7-4a34-8b51-63d45a33ca87|
|Screen Reader|no|
|VM|0%|
Extensions (20)
Name|Identifier|Author|Version
---|---|---|---
ESLint|dbaeumer.vscode-eslint|dbaeumer|3.0.24
GitLens — Git supercharged|eamodio.gitlens|eamodio|18.3.0
EditorConfig|editorconfig.editorconfig|EditorConfig|0.18.2
Prettier - Code formatter|esbenp.prettier-vscode|esbenp|12.4.0
JSON5 syntax|mrmlnc.vscode-json5|mrmlnc|1.0.0
Black Formatter|ms-python.black-formatter|ms-python|2026.6.0
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Flake8|ms-python.flake8|ms-python|2026.6.0
isort|ms-python.isort|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.2.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.463.0
Hex Editor|ms-vscode.hexeditor|ms-vscode|1.11.1
Jest|orta.vscode-jest|Orta|6.4.4
Partial Diff|ryu1kn.partial-diff|ryu1kn|1.4.6
Rewrap|stkb.rewrap|stkb|1.16.3
Code Spell Checker|streetsidesoftware.code-spell-checker|streetsidesoftware|4.5.6
ShellCheck|timonwong.shellcheck|timonwong|0.39.5
Knip|webpro.vscode-knip|webpro|2.1.6
A/B Experiments
```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
63221493:31336333
envsactivate1:31538736
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ddidtcf:31399634
ec5jj548:31422691
cmp-cht-control-diffpatch-2in1-lysithea-0014:31547645
cp_cls_t_966_ss:31526232
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478678
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_control1:31471004
c9b86496:31447327
control_6dc23131:31544977
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
ja75b849:31547460
ie3bb177:31543534
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
jh5f2457_c:31540921
api_cot_off:31513532
g4a0e106:31529594
8hfba999:31537718
prpt_srch:31518468
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_5:31532894
chatquotatrajectorynudge-control:31548766
ihg5j128:31534457
f412h606:31546039
7g2b5551:31542111
sandbox-ui-on-2:31543161
nes-nc-ctrl:31546581
```
Contributor guide
Assessment
This issue has not been assessed yet.