-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Memory leak #16934
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
Comments
I can't reproduce it reliably yet, it has happened ca. 8 times in the last two days. |
probably a duplicate of #16907 |
That could be it! As always it no longer reproduces after opening an issue, but I'll keep an eye out. |
i should have maybe put this comment on one of the open issues, but this happens pretty continuously as a result of trying to format-on-save for me with the |
It's absolutely huge. Hopefully I'll have the time for a closer look at some point but
Seems like you may need to start debugging from before launching VSCode. I've uninstalled |
I can reliably reproduce it by opening more than 1 project with rust-analyzer hooked Completely freezes the system for about 10 min resulting in vscode/nvim crash+ sending SIGKILL to terminal instance as well |
this is probably a new issue, the one that this was likely a duplicate of (#16907) was fixed. |
When I ran cargo build in the VSCode terminal, the CPU and memory usage rapidly increased. I initially thought the issue was caused by rust-analyzer, but when I disabled all extensions, the problem disappeared. I eventually determined that it was due to the |
Getting this in March 2025 - the fix is definitely to shut all other VSCode windows down. Only 1 instance of VSCode open and the analyzer works. |
On my system rust-analyzer leaks ca. 100mb per second until (hopefully) killed because of OOM. Using rust 1.77.0 on
x86_64-unknown-linux-gnu
.Any suggestions on how to diagnose?
rust-analyzer version: rust-analyzer version: 0.3.1885-standalone (b6d1887 2024-03-17)
rustc version: rustc 1.77.0 (aedd173a2 2024-03-17)
repository link: https://github.comchronotope/chrono (not sure if relevant)
The text was updated successfully, but these errors were encountered: