Extension host terminated unexpectedly for Golang project
See original GitHub issueDescribe the bug Opening a Golang project in Visual Code with jFrog extension enabled causes notification message of “Extension host terminated unexpectedly”. Restarting the Extension Host makes no difference. Opening Developer Tools and looking at the console there are the following messages:
WARN UNRESPONSIVE extension host, 'JFrog.jfrog-vscode-extension' took 95% of 5622.04ms, saved PROFILE here: 'file:///c%3A/Users/{username}/AppData/Local/Temp/exthost-482aef.cpuprofile'
Array(2)
0: id: "gc", percentage: 5, total: 295823
1: id: "JFrog.jfrog-vscode-extension", percentage: 95, total: 5325888
and
<--- Last few GCs --->
[20552:0000028200000000] 98829 ms: Scavenge (reduce) 3617.3 (3949.9) -> 3616.7 (3949.9) MB, 4.9 / 0.0 ms (average mu = 0.803, current mu = 0.599) allocation failure
[20552:0000028200000000] 99409 ms: Scavenge (reduce) 3617.4 (3949.9) -> 3616.8 (3949.9) MB, 8.2 / 0.0 ms (average mu = 0.803, current mu = 0.599) allocation failure
<--- JS stacktrace --->
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
<--- Last few GCs --->
[20552:0000028200000000] 98829 ms: Scavenge (reduce) 3617.3 (3949.9) -> 3616.7 (3949.9) MB, 4.9 / 0.0 ms (average mu = 0.803, current mu = 0.599) allocation failure
[20552:0000028200000000] 99409 ms: Scavenge (reduce) 3617.4 (3949.9) -> 3616.8 (3949.9) MB, 8.2 / 0.0 ms (average mu = 0.803, current mu = 0.599) allocation failure
<--- JS stacktrace --->
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
and
ERR Extension host terminated unexpectedly. The following extensions were running:
vscode.microsoft-authentication,
vscode.debug-auto-launch,
vscode.git,
JFrog.jfrog-vscode-extension,
golang.go,
ms-vscode.js-debug,
vscode.github,
vscode.github-authentication,
vscode.emmet, vscode.merge-conflict,
ms-vscode-remote.remote-wsl-recommender,
vscode.testing-editor-contributions,
dbaeumer.vscode-eslint,
eamodio.gitlens,
ms-vscode-remote.remote-wsl
To Reproduce
Open Golang project of ~188 .go files and ~27 third party imports referenced in the go.mod
. The go.sum
file is populated and valid.
Expected behavior
Screenshots
Versions
- JFrog VS-Code extension version:
1.8.0
- JFrog VS-Code extension operating system:
Windows 10 21H1
- JFrog Xray Version:
JFrog Cloud
- VS-Code version:
1.58.2
- Golang version:
1.16.6
Additional context The extension works fine with a very small Golang project of 5 files. Running on i7 1.99GHz laptop with 40GB RAM
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Extension host terminated unexpectedly with SIGPIPE #1845
Steps to Reproduce: open Go project ie. influxDB; open any .go file. Result: Extension host terminated unexpectedly. Code: null Signal: SIGPIPE.
Read more >Receiving error message 'Extension host terminated ...
I keep getting this error "Extension host terminated unexpectedly." and I have tried removing all of my extensions, reinstalling the program, ...
Read more >Anyone else repeatedly getting the error "Remote Extension ...
Anyone else repeatedly getting the error "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" (rendering VS Code ...
Read more >VSCode: Extension host terminated unexpectedly
I'm using the rust-analyzer v0.2.368 with VSCode, and everything is working well. However, I've started getting "Extension host terminated ...
Read more >Live Server - Visual Studio Marketplace
Extension for Visual Studio Code - Launch a development local Server with live reload feature for ... Fixed Extension host terminated unexpectedly [#431] ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yahavi thank you very much. this all seems to be working now. no more crashes and results are coming back in the plug-in window 😃
@CxRP, JFrog VS-Code extension 1.8.4 is released. This version includes the suggested changes. We’d appreciate your feedback on that.