Skip to content

Git: Zed crashes when git changes are shown in a repo with a large number of untracked files #31168

@tmolteno

Description

@tmolteno

Summary

Zed consumes all RAM (8GB laptop) and eventually crashes when git changes is viewed on a file in a project with a large number of untracked files.

Description

Steps to trigger the problem:

  1. Created a project on a subdirectory inside a large github repo with many untracked files. Mine has ~ 360 untracked files (the result of git status -s . | wc). The git panel also shows into many files within folders ignored by .gitignore.
  2. Click to view the Git panel (this doesn't cause a problem)
  3. Now click on a file that has changes and is tracked.
  4. Zed will show a panel called uncommitted changes, that contains changes from all untracked files as well. Then zed will proceed to use all system ram and crash.
  5. Zed will now crash every time I open it as the uncommitted changes are shown each time it launches!

Actual Behavior: Show the changes in the single tracked file.
Expected Behavior: Shows all changes in all untracked files and crashes.

Zed Version and System Specs

Zed: v0.187.5 (Zed)
OS: Linux Wayland debian 13
Memory: 7.5 GiB
Architecture: x86_64
GPU: Intel(R) HD Graphics 620 (KBL GT2) || Intel open-source Mesa driver || Mesa 25.0.5-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    gitGit integration feedback

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions