Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
info-neededIssue requires more information from poster
Description
Does this issue occur when all extensions are disabled?: Yes/No
Issue body
- VS Code Version: 1.137.0 (also reproduced on 1.136.2; started after an upgrade from ~1.13x)
- OS Version: Windows 11 Pro (10.0.26200), VS Code running as Administrator
- Extension: any extension under development (
type: extensionHostlaunch config, no dependency on a specific extension — crash happens before any extension code runs)
Steps to Reproduce
- Open a folder containing an extension with a standard
"type": "extensionHost"launch configuration. - Press F5 (Start Debugging) to launch the Extension Development Host.
- The extension host utility process crashes within ~1 second of startup.
Intermittent: it fails most of the time on a fresh launch, but occasionally succeeds (e.g. one launch out of several succeeded at 14:38 in the log below).
What happens
The extension host (running as a utility process) aborts right at the "Loading development extension" stage — before any extension code executes:
window2/renderer.log (dev host window):
2026-09-15 14:16:53.390 [info] Started local extension host with pid 26764.
2026-09-15 14:16:53.592 [info] Loading development extension at d:\R-Link V\vscode-plugin
<crash ~1s later>
main.log:
2026-09-15 14:16:54.590 [info] Extension host with pid 26764 exited with code: 134, signal: unknown.
2026-09-15 14:16:54.590 [error] [UtilityProcess id: 2, type: extensionHost, pid 26764]: crashed with code 134 and reason 'crashed'
No crashpad dump is generated for these crashes (Crashpad reports folder stays empty).
Control experiments (same machine, same workspace, same compiled extension)
| Launch method | Result |
|---|---|
| F5 (js-debug auto-attach / injection) | Crashed at 14:16, 14:30, 14:45 — always within ~1s, at "Loading development extension" |
Same F5 config with extra arg --inspect-extensions=9333 |
Still crashes (the injection path is unchanged) |
| Ctrl+F5 (Run Without Debugging) | Stable every time |
CLI launch code --extensionDevelopmentPath=... --inspect-extensions=9333 + manual Node attach to port 9333 |
Stable: dev host survives, port listens, debugger attaches (TCP Established), breakpoints work |
Timeline from main.log on Sep 15:
11:15:27, 11:16:21, 11:17:49, 11:22:15 crashed 134 (repeated F5 attempts)
13:53:04 crashed 134 (F5)
14:16:54 crashed 134 (F5, repro 1)
14:22:53 Ctrl+F5 alive
14:30:27 crashed 134 (F5, repro 2)
14:38 F5 succeeded once (intermittent)
14:45:51 crashed 134 (F5 with --inspect-extensions arg)
14:51:02 CLI launch + attach alive, debugger attached
14:53:00 CLI launch alive
Expected behavior
F5 should launch the Extension Development Host reliably; at minimum the extension host utility process should not abort during js-debug bootstrap.
Notes
- The crash is clearly tied to the js-debug launch/auto-attach path into the extension host utility process (introduced when the extension host moved to utility processes), not to the extension under development: crash occurs before extension activation, and every non-injecting launch path is stable.
- Workaround we are using: launch the dev host via CLI/task with
--inspect-extensions=9333, then attach with a"type": "node", "request": "attach", "port": 9333config. - Environment checked and ruled out: no
NODE_OPTIONS, noELECTRON_RUN_AS_NODEin user/system env. - Happy to provide the full session logs (
main.log, windowrenderer.log,exthost.log) if needed.
Reacted by ea, William Smith, David Thompson, Sanjula Ganepola, Cesar, Vladimir Rudnev, Konstantin Saltuk, Max Herrmann, Natalie Geurtsen and flurrux
Metadata
Metadata
Labels
info-neededIssue requires more information from poster
Activity
WilliamSmithEdward commentedon Sep 19, 2026
Same failure on 1.138.0 (7debcd0, x64),
Windows 11 Pro 10.0.26200. Four crashes here today, every one an F5 into an
Extension Development Host, every one code 134 within about 1.2s of the host
starting:
A fourth crashed at 04:12:10 in an earlier session. The two at 07:47 are
consecutive F5 presses six seconds apart; the attempt ten seconds after them
started normally. The renderer log of each crashed window ends the same way:
One detail I have not seen recorded yet: a crashed window has no
exthostlog folder at all. A window whose host survives gets
window<N>/exthost/exthost.log, whose first line is "Extension host with pidN started". The three windows above hold only
renderer.log,network.logand the output folder, so the host aborts before it writes its first log
line. That is earlier than "before extension activation".
Possibly related, and the reason I went looking: the dev-host windows that do
survive log this, three times in a window that lived about 90 seconds.
That is Node's network inspection instrumentation, which runs only while a
debugger is attached. js-debug turns it on by default through
debug.javascript.enableNetworkView. It is the one part of the injectionpath I can see throwing on this machine, and it has the same F5-only shape as
the crash. I have not tested whether turning the setting off changes the
crash rate, since reproducing needs an F5 launch.
No crashpad dump was written for any of the four, matching the report above.
The extension under development is TypeScript bundled with esbuild: a 14 MB
development bundle with a 6.8 MB source map, in case the size of the script
the debugger takes on matters here.
datho7561 commentedon Sep 24, 2026
After the update to 1.139.0, this happens every single time instead of intermittently. As a result, I've downgraded to 1.138.0.
(adding since the other issue where I said this was closed as a duplicate)
bencefr commentedon Sep 25, 2026
#337632 ?
cesaryuan commentedon Sep 26, 2026
Same here. After updating to 1.139, debugging has stopped working completely.
krissrex commentedon Sep 29, 2026
Confirmed that localhost=ipv6 is the issue in 1.139.0. We need an update of jsdebug with microsoft/vscode-js-debug#2417 in.
Edit: Seems fixed in 1.140 since it pulls in the new vscode-js-debug extension, which fixes the localhost ipv6 issue.
Old workaround
I got opus to generate a workaround for now:
tasks.json:{ "version": "2.0.0", "tasks": [ { // ... your pre-existing task here "label": "Build all extensions" }, { "label": "Inspector IPv6 bridge", "type": "shell", "command": "node \"${workspaceFolder}/.vscode/inspector-ipv6-bridge.js\"", "isBackground": true, "presentation": { "reveal": "never" }, "problemMatcher": { "owner": "inspector-ipv6-bridge", "pattern": { "regexp": "^__no_match__$" }, "background": { "activeBegin": true, "beginsPattern": "^bridge starting", "endsPattern": "^bridge ready" } } }, { "label": "Build all extensions + IPv6 bridge", "dependsOn": ["Build all extensions", "Inspector IPv6 bridge"] } ] }launch.json:{ "version": "0.2.0", "configurations": [ { // Workaround for VS Code 1.139.1, where js-debug cannot attach to the // extension host over IPv6. See .vscode/inspector-ipv6-bridge.js. "name": "Run All Extensions (IPv6 bridge)", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", "args": [ "--extensionDevelopmentPath=${workspaceFolder}/my-cool-extension", ], "outFiles": [ "${workspaceFolder}/my-cool-extension/dist/**/*.js" ], "skipFiles": ["<node_internals>/**.js", "**/node_modules/**", "**/app/out/vs/**"], "sourceMaps": true, "preLaunchTask": "Build all extensions + IPv6 bridge" } ] }.vscode/inspector-ipv6-bridge.js:WilliamSmithEdward commentedon Sep 29, 2026
Connor Peet (@connor4312) Update? This is breaking extension developers. Thanks!
connor4312 commentedon Sep 29, 2026
Please include a crash report https://github.com/microsoft/vscode/wiki/Native-Crash-Issues
datho7561 commentedon Sep 30, 2026
I tried this out, but given it was the extension host process crashing and not VS Code itself, no crash report was generated in the specified folder.
dev: npm run dev launcher; document the F5 crash (VS Code bug #336233)
vs-code-engineering commentedon Oct 7, 2026
This issue has been closed as it has been labeled with
info-neededand has not received the additional information that was requested from the issue author. It has been labeled asinfo-neededfor 7 days.datho7561 commentedon Oct 7, 2026
It seems that, as of 1.140.0 this was partially addressed, perhaps through #336233 (comment) . Now it's back to the 1.138.0 behaviour where it only occasionally crashes.
WilliamSmithEdward commentedon Oct 7, 2026
+1 Confirmed, still occurring on latest release build
docs(extension): record the VS Code 1.141 js-debug crash that kills F5
chore: correct the F5 crash diagnosis in debug configs
Qtax commentedon Nov 21, 2026
Still happens on latest 1.147.
The setting that William Smith (@WilliamSmithEdward) mentioned earlier actually resolved the issue for me: