Skip to content

Memory leak: rust-analyzer eat up 8GB of RAM too quickly #8749

@KSXGitHub

Description

@KSXGitHub

System Information

  • CPU: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
  • Memory: 8GB (no swap)
  • Operating System: Arch Linux
  • Desktop Environment: GNOME Shell 40 (gnome-shell 1:40.0+67+g79acae417-1)
  • IDE: Visual Studio Code 1.56.0 (aur/visual-studio-code-bin 1.56.0-2)
  • Extension: matklad.rust-analyzer v0.2.583
  • rust-analyzer binary version: 2021-05-03 (rust-analyzer 20210503-1)
  • Rust version: 1.51.0
  • rustup version: 1.24.1 (rustup 1.24.1-1)

Steps to reproduce

  1. Clone https://github.com/KSXGitHub/dirt.git
  2. Checkout commit 1be5539b98fd229f438ce90af7660db1c61fae8d.
  3. Open the project in Visual Studio Code.
  4. Go to file src/visualizer/test.rs.
  5. Wait for a minute or two.

You should see that if rust-analyzer crashing and eating up memory.

I also tried Sublime Text 3 with LSP and Rust Enhanced extension, it does not eat up all memory, but it still crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionBroken WindowBugs / technical debt to be addressed immediatelyS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions