vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

[opensuse] language server crashes

Open linev opened this issue 1 year ago • 9 comments

Environment

  • OS and Version: openSUSE Tumbleweed, 64bit, 2024-04-28
  • VS Code Version: 1.89.1
  • C/C++ Extension Version: v1.20.5

Problem exists since a long time (~6 months)

Bug Summary and Steps to Reproduce

Bug Summary:

The language server crashed. Restarting...

C++ logs: cpplog.txt debugger output: debugger.txt

Configuration and Logs

c_cpp_properties.json - not exists
C++ and debugger log attached

Other Extensions

No response

Additional context

No response

linev avatar May 14 '24 13:05 linev

@linev With 1.20.5, do you see a C/C++ Crash Call Stacks pane in the Output window after waiting 5 seconds after the crash?

sean-mcmanus avatar May 15 '24 00:05 sean-mcmanus

@linev Does the issue repro with 1.18.5 from November? Do you know which version it started reproing with?

sean-mcmanus avatar May 15 '24 00:05 sean-mcmanus

@linev From your logging, it appears that it might be crashing while tag parsing tag parsing file: /home/linev/git/webgui/bindings/pyroot/cppyy/CPyCppyy/include/CPyCppyy/PyResult.h. Can you try adding "/home/linev/git/webgui/bindings/pyroot/cppyy/CPyCppyy/include/CPyCppyy": true to your C_Cpp.files.exclude setting to get it to skip tag parsing that file and see if it stops crashing? (also, make sure that logging stops appearing).

sean-mcmanus avatar May 15 '24 00:05 sean-mcmanus

Can you try adding "/home/linev/git/webgui/bindings/pyroot/cppyy/CPyCppyy/include/CPyCppyy": true to your C_Cpp.files.exclude setting to get it to skip tag parsing that file and see if it stops crashing? (also, make sure that logging stops appearing).

Adding such entry does not help. ....CPyCppyy/PyResult.h still appears in list of parsed files and cpptools crashed.

Does the issue repro with 1.18.5 from November?

This version works! Also versions up to 1.19.1 are working. But trying to switch to 1.19.2 leads to crash.

linev avatar May 15 '24 07:05 linev

Hey @sean-mcmanus, this issue might need further attention.

@linev, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Jun 14 '24 11:06 github-actions[bot]

Problem remains, after version 1.19.1 it crashes for me. The only solution for me - downgrade plugin to 1.18.5

linev avatar Jun 14 '24 11:06 linev

Hey @sean-mcmanus, this issue might need further attention.

@linev, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Jul 15 '24 11:07 github-actions[bot]

Problem still exist - also with latest 1.21.0 version

linev avatar Jul 15 '24 11:07 linev

Hey @sean-mcmanus, this issue might need further attention.

@linev, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Aug 15 '24 11:08 github-actions[bot]

Problem resolved after Tumbleweed upgrade and switching to v1.22.2 of C/C++ for Visual Studio Code

linev avatar Sep 02 '24 14:09 linev