How to further diagnose a Lanugage Server Crash #12653
Unanswered
BartVandewoestyne
asked this question in
Q&A
Replies: 1 comment 3 replies
-
To get a quick answer about whether this is caused by the large volume of files or perhaps a symlink, add this setting to your "C_Cpp.files.exclude": {
"**/*": true,
} If the answer is yes, then it's possible we have an issue with how we're indexing your workspace. Do note that with the setting configured this way, some features like Go To Definition, Outline, and Find all References will not have a full picture of your project and may not provide accurate results. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using a certain large workspace (lots of files and also 78 git submodules of which some third party code), my VSCode becomes unworkable after a while. I see memory going up until 100% and sometimes also CPU load going very high, until my Linux desktop freezes and is not workable anymore. After some time, it becomes better again and I see a "Language Server Crash" in the Ouptput for the C/C++ or cpptools extension.
As this makes my VSCode and computer unworkable, I would like to further diagnose this problem and get to the root cause of it. Where should I start to further investigate this? Are there any log files I can collect? I already tried attaching the gdb debugger to the cpptools process following the instructions at https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv but that somehow didn't work: as soon as the memory starts going up, my computer becomes unworkable and I cannot press "pause" to see the call stacks. If I let it run until the language server crashes, typing 'bt' in the Debug Console also doesn't give my any callstack.
Advice on how to further diagnose is welcome!
Version info:
C/C++ extension:
1.21.6
VSCode:
Version: 1.92.2
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Linux x64 5.15.0-119-generic
Beta Was this translation helpful? Give feedback.
All reactions