Skip to content

Language Server keeps initializing and finally crashed after updating to 1.26.4 #13914

@LittleYang0531

Description

@LittleYang0531

Environment

  • OS and Version: Ubuntu 24.04 on WSL
  • VS Code Version: 1.103.2
  • C/C++ Extension Version: 1.26.4
  • If using SSH remote, specify OS of remote machine:

Bug Summary and Steps to Reproduce

Bug Summary:
C/C++ language server works well on 1.26.3. But after updating to 1.26.4, it was stucked at initializing and finally crashed.
Trying to downgrade to 1.26.3 and language server works well again, so I guess the issue was caused by v1.26.4.
Image
Image

Steps to reproduce:

  1. Updating C/C++ extension to 1.26.4
  2. Open a .cpp file
  3. Waiting for sometime and VSCode will throw a Language server was crashing, restarting(语言服务器崩溃,正在重新启动)

Expected behavior:
Language server should finish initializing quickly just like it does in 1.26.3

Configuration and Logs

c_cpp_properties.json: I don't use it. Logs: loggingLevel: 6 LSP: (received) cpptools/preinitialize (id: 1) LSP: (invoked) cpptools/preinitialize (id: 1) LSP: Sending response (id: 1) LSP: (received) cpptools/initialize (id: 2) LSP: (invoked) cpptools/initialize (id: 2) cpptools version (TypeScript): 1.26.4 cpptools version (native): 1.26.4.0 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 LSP: Sending response (id: 2) LSP: (received - deferred) cpptools/didChangeVisibleTextEditors LSP: (received - deferred) textDocument/didOpen: file:///home/littleyang0531/sonolus-server-cpp/sirius/main.cpp LSP: (received - deferred) cpptools/didChangeVisibleTextEditors LSP: (received - deferred) cpptools/getCodeActions: file:///home/littleyang0531/sonolus-server-cpp/sirius/main.cpp (id: 3) LSP: (received - deferred) cpptools/didChangeVisibleTextEditors LSP: (received - deferred) cpptools/didChangeActiveEditor: file:///home/littleyang0531/sonolus-server-cpp/sirius/main.cpp LSP: (received - deferred) cpptools/getDocumentSymbols: file:///home/littleyang0531/sonolus-server-cpp/sirius/main.cpp (id: 4) LSP: (received - deferred) cpptools/didChangeTextEditorSelection LSP: (received - deferred) cpptools/getCodeActions: file:///home/littleyang0531/sonolus-server-cpp/sirius/main.cpp (id: 5) LSP: (received - deferred) cpptools/getFoldingRanges: file:///home/littleyang0531/sonolus-server-cpp/sirius/main.cpp (id: 6) LSP: $/cancelRequest (cpptools/getCodeActions, id: 3) LSP: (received) cpptools/preinitialize (id: 1) LSP: (invoked) cpptools/preinitialize (id: 1) LSP: Sending response (id: 1) LSP: (received) cpptools/initialize (id: 2) LSP: (invoked) cpptools/initialize (id: 2) cpptools version (TypeScript): 1.26.4 cpptools version (native): 1.26.4.0 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 已启用自动完成。 如果已解决所有标头依赖项,则启用错误波形曲线。 悬停已启用。 IntelliSense 引擎 = default。 LSP: Sending response (id: 2)

Other Extensions

No response

Additional context

Logs from gdb:

=thread-group-added,id="i1" GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". Warning: Debuggee TargetArchitecture not detected, assuming x86_64. =cmd-param-changed,param="pagination",value="off" [New LWP 28680] [New LWP 28679] [New LWP 28678] [New LWP 28677] [New LWP 28676] [New LWP 28675] [New LWP 28674] [New LWP 28673] [New LWP 28672] [New LWP 28671] [New LWP 28670] [New LWP 28669] [New LWP 28668] [New LWP 28542] [New LWP 28541] [New LWP 28534] This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.ubuntu.com> Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal] Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. 0x00007fb093631428 in __stdio_read () from ./libc.so Loaded './libc.so'. Symbols loaded. [LWP 28680 exited] [LWP 28679 exited] [LWP 28678 exited] [LWP 28677 exited] [LWP 28676 exited] [LWP 28675 exited] [LWP 28674 exited] [LWP 28673 exited] [LWP 28672 exited] [LWP 28671 exited] [LWP 28670 exited] [LWP 28669 exited] [LWP 28668 exited] [LWP 28542 exited] [LWP 28541 exited] [LWP 28534 exited] Program terminated with signal SIGKILL, Killed. The program no longer exists. Debugger has disconnected from the program '/home/littleyang0531/.vscode-server/extensions/ms-vscode.cpptools-1.26.4-linux-x64/bin/cpptools'.

If you need more information, please tell me. I'll provide it as quickly as I can.

And last, thanks for your answering.

Metadata

Metadata

Assignees

Labels

Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.regressionA bug that didn't exist in a previous releasereliability

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions