Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

VSCode crashes with Gemini Code Assist extension

 

We recently decided to try Gemini in our company, so I installed the VSCode extension.

When I use VSCode with devcontainer extension, as soon as I click the icon to open the chat, the CPU usage reaches 100% until VSCode crashes with this message :

The window terminated unexpectedly (reason: 'oom', code: '-536870904')

I reinstalled multiple times the extension. I disabled all the other extensions. 

When I use VSCode in WSL only, it works well.

So to make it work for my project, I have to start vscode in WSL with docker extension and then start and attach the devcontainer to vscode. 

My PC
System Model HP EliteBook 840 G7 Notebook PC
Processor Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz, 2304 Mhz, 4 Core(s), 8 Logical Processor(s)
Installed Physical Memory (RAM) 32,0 GB
OS Name Microsoft Windows 10 Professionnel

VSCode
Version: 1.99.0 (user setup)
Commit: 4437686ffebaf200fa4a6e6e67f735f3edf24ada
Date: 2025-04-02T21:35:19.530Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

 

1 1 834
1 REPLY 1

Yes the same happened to me too. I had to uninstall it to resolve that.

By the way, the crash happens while VS Code says 'Gemini is indexing files' or something like that