microsoft / microsoft/vscode-cpptools

maybe memory leak in "Go to Definition"

Open
#5,611 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug investigate: repro Language Service performance regression
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: LanguageService

maybe memory leak in "Go to Definition"
The Memory grow after each "Go to Definition"

Describe the bug

  • OS and Version: Linux Ubuntu 20.04
  • VS Code Version: 1.45.1
  • C/C++ Extension Version: 0.28.2
  • Other extensions you installed (and if the issue persists after disabling them):n/a
  • Does this issue involve using SSH remote to run the extension on a remote machine?:yeah
  • A clear and concise description of what the bug is, including information about the workspace.
    My workspace is an AOSP project,more than 100000 cpp files.
    When I fall back to use 0.26.0, it‘s behavior perform normally.

Steps to reproduce

  1. open a cpp file
  2. Ctrl+Click at every function call or variables to "Go to Defination"
  3. the Memory grow about 100M each time

Expected behavior

the Memory should not increase so terrible.

Screenshots

Additional context

When I fall back to use 0.26.0, it‘s behavior perform normally.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce this in the reported AOSP workspace on Ubuntu 20.04 with VS Code 1.45.1 and C/C++ extension 0.28.2. Repeat Ctrl+Click Go to Definition on calls or variables while monitoring memory, then compare with extension 0.26.0; done means repeated navigation no longer increases memory by about 100 MB each time.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.