Skip to content

Memory leak continuous ~200MB/s RAM growth when loading large workspace (graphite) #21855

@timon-schelling

Description

@timon-schelling

rust-analyzer seems to memory leak when loading the Graphite project in VS Code. Memory usage grows continuously at roughly 200 MB/s after the initial project load (no progress indicator shown in VS Code). On a 64 GB machine the process eventually gets OOM-killed.
Before the regression, the same project stabilized at approximately 4.5 GB after loading and stayed there (I downgraded to 2026-02-02).

To Reproduce

  • Clone https://github.com/GraphiteEditor/Graphite
  • Open the repository root in VS Code with the rust-analyzer extension enabled
  • Wait for the initial project load to complete
  • Observe RAM usage in a system monitor, it climbs without bound

Last known good version: 2026-02-02
First observed bad version: 2026-03-16 (haven't tested versions in between, can bisect sometime next week)
Editor: VS Code with the rust-analyzer extension
Workspace: https://github.com/GraphiteEditor/Graphite

rustc version
rustc 1.91.0 (f8297e351 2025-10-28)
Operating system
NixOS 26.05 (Yarara)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Broken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions