Skip to content
New issue

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

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

Already on GitHub? # to your account

VS Code crashes after build #19000

Open
davidzanger opened this issue Jan 22, 2025 · 5 comments
Open

VS Code crashes after build #19000

davidzanger opened this issue Jan 22, 2025 · 5 comments
Labels
C-bug Category: bug

Comments

@davidzanger
Copy link

Almost always after building using the command cargo build VS Code crashes and needs to restart the whole editor (see image).

I have the newest versions of the analyzer and rustc installed, but it already happened months ago.

rustc 1.84.0 (9fc6b4312 2025-01-07)
rust-analyzer version: 0.3.2273-standalone (248bd51 2025-01-18)

Any idea how to further investigate this problem?

Image

@davidzanger davidzanger added the C-bug Category: bug label Jan 22, 2025
@ChayimFriedman2
Copy link
Contributor

Can you provide the output of the command "rust-analyzer (debug command): Memory Usage (Clears Database)", just before the crash?

@davidzanger
Copy link
Author

Unfortunately, this doesn't work because it won't even execute the command before crashing.

@davidzanger
Copy link
Author

davidzanger commented Jan 23, 2025

But yes, you are right. I looked at the task manager and even after the build is finished, the memory usage still keeps on growing until my 64 GB RAM are full and it crashes. I am only compiling a really small CLI program (<10 MB).

@lnicola
Copy link
Member

lnicola commented Jan 25, 2025

Which process is using that much memory?

@davidzanger
Copy link
Author

It is one of the VS Code processes. The rust_analyzer.exe does not consume that much memory.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants