A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
The message indicates that the Visual Studio Code window is repeatedly crashing due to an out‑of‑memory (OOM) condition. A similar situation is documented for Visual Studio debugging services running out of memory, and the same investigation pattern applies: identify which process is exhausting memory and then reduce its usage.
Use the following steps on Windows:
- Monitor memory usage while VS Code is running
- Open Task Manager and watch memory for:
-
Code.exe(VS Code itself) - Any related debug or helper processes if you are debugging.
-
- If memory for
Code.exegrows continuously until the crash, VS Code or an extension is leaking memory.
- Open Task Manager and watch memory for:
- Check whether the debug target or tools are consuming memory
- If the crash happens only while debugging or running a specific app, open the Diagnostics Tools window in Visual Studio (if you also use it for the same solution) and use the Memory Usage tool to see if the target app is growing in memory. The same pattern (target app growing until OOM) can indirectly cause issues in the tooling.
- If VS/VS Code itself is consuming memory
- In Task Manager, if
devenv.exe(Visual Studio) orCode.exe(VS Code) is the process whose memory climbs very high before the crash, treat it as a tooling memory issue:- Reduce or temporarily disable extensions, especially those that perform heavy analysis, to see if the problem stops.
- Close unused tool windows and large solutions/workspaces to reduce memory pressure.
- In Task Manager, if
- If Visual Studio is also affected
- For Visual Studio, specifically follow the documented guidance when debugging services run out of memory:
- Use the Diagnostics Tools window’s process memory graph to confirm whether the target app or Visual Studio is growing in memory.
- If
devenv.exeis the one growing, reduce the number of Visual Studio extensions.
- For Visual Studio, specifically follow the documented guidance when debugging services run out of memory:
- If the issue persists
- If crashes continue after reducing extensions and confirming that the target app is not leaking memory, collect details (which process is high in memory, what you were doing when it crashed) and report it using the Report a Problem tool in Visual Studio / VS Installer so the product team can investigate.
References: