microsoft / microsoft/vscode-cpptools
maybe memory leak in "Go to Definition"
Nobody has claimed this yet.
- 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
- open a cpp file
- Ctrl+Click at every function call or variables to "Go to Defination"
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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