Skip to content
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

Memory Leak due to missing any git branches #13907

Open
1 task done
aramrw opened this issue Jul 7, 2024 · 2 comments
Open
1 task done

Memory Leak due to missing any git branches #13907

aramrw opened this issue Jul 7, 2024 · 2 comments
Assignees
Labels
bug [core label] performance Feedback for performance issues, speed, memory usage, etc windows

Comments

@aramrw
Copy link

aramrw commented Jul 7, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I don't know if this is related to #12561 or #7939 but the cause of my memory leak is that Zed.log seems to be looping over a git error indefinitely (for as long as the program is running). I have no other errors.

2024-07-06T12:05:50-07:00 [ERROR] Error 
{ code: -9, klass: 4, message: "reference 'refs/heads/master' not found" }

If I open a project without a repo/.git file, zed doesn't leak memory.
And also, it doesn't matter which project it is, they all throw this.
It reached up to 4gb after ~5-6 hours (idle).

Environment

Zed: v0.144.0 (Zed Dev 56e3fc7)
OS: Windows 11 Home 10.0.22631 Build 22631
Memory: 31.1 Gib
Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

NVIDIA_Overlay_QHH3lktVse

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log

Zed.log

@aramrw aramrw added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Jul 7, 2024
@JosephTLyons JosephTLyons added performance Feedback for performance issues, speed, memory usage, etc windows and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jul 8, 2024
@mikayla-maki mikayla-maki changed the title Memory leak (?) on Windows 11 Memory Leak due to missing any git branches Oct 28, 2024
@mikayla-maki
Copy link
Contributor

mikayla-maki commented Oct 28, 2024

See:

@mikayla-maki mikayla-maki self-assigned this Oct 28, 2024
@github-actions github-actions bot added admin read Pending admin review triage Maintainer needs to classify the issue labels Nov 5, 2024
@notpeter
Copy link
Member

notpeter commented Nov 5, 2024

If I remember correctly, one of the ways to trigger this was to have a project where git init had been run, but there were no commits. Although I might be confusing this with something else.

@notpeter notpeter removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] performance Feedback for performance issues, speed, memory usage, etc windows
Projects
Development

No branches or pull requests

4 participants