Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak when running debugger through #377

Closed
5 tasks done
ynain opened this issue Mar 26, 2023 · 3 comments
Closed
5 tasks done

Memory leak when running debugger through #377

ynain opened this issue Mar 26, 2023 · 3 comments

Comments

@ynain
Copy link

ynain commented Mar 26, 2023

Checklist

  • The issue is about this extension and NOT about a fork.
  • Check the known issues list.
  • The latest version of the extension was used.
  • It is not related to remote-vscode or I checked the following issue
  • Imagine yourself into my position and think how hard to debug the issue without insufficient information.
    I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
    Thanks.

Describe the bug

When using C++ std library containers (but especially the std::vector, the debugger hangs indefinitely, and never resumes until the process is stopped. Even after this, the lldb-mi process will continue to run and will continue consuming memory until it is force stopped.

To Reproduce

Exactly the same issue as described here: microsoft/vscode-cpptools#10176

Screenshots (optional)

Hanging indefinitely:
Screenshot 2023-03-26 at 6 45 22 PM

Increased memory consumption within seconds:
Screenshot 2023-03-26 at 6 46 00 PM
Screenshot 2023-03-26 at 6 46 07 PM

After force stopping, the debugger in vscode fails.
Screenshot 2023-03-26 at 6 46 41 PM

Desktop

  • Extension Version: 4.3.12
  • VS Code Version: 1.76.2
  • Catch2 / Google Test / DOCTest Version: Google Test 1.12.0
  • OS Type and Version: MacOS 13.2.1
  • Using remote-ssh/docker/wsl?: No

Regression bug?

  • Last extension version in which the feature were working:

Log (optional but recommended)

Example logs are defined in the issue linked previously: microsoft/vscode-cpptools#10176

@matepek
Copy link
Owner

matepek commented Mar 27, 2023

Hello,
This extension does not come with the debugger. It uses other vscode debugger extensions.
Therefore this issue is most likely unrelated.

@matepek matepek closed this as completed Mar 27, 2023
@ynain
Copy link
Author

ynain commented Mar 27, 2023

Are we able to change the debugger that the extension is using? I am able to temporarily rectify the issue by using CodeLLDB as described here. microsoft/vscode-cpptools#7240 (comment)

@matepek
Copy link
Owner

matepek commented Mar 27, 2023

I recommend reading the documentation of this extension. Start with the README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants