jesseduffield / jesseduffield/lazygit

Lazygit in tmux sometimes does not respond and uses 100% CPU

Open
#5,628 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug
Lazygit does not respond and uses 100% CPU

### To Reproduce
I do not have a clear way to reproduce it.
I would like to open this issue and see if other people are having the same problem.

### First Occurence
This problem did first happen some months ago. I suspect some previous versions didnt have this bug.

### Screenshots

Screenshot of MacOS Activity Monitor with 100% CPU usage for lazygit

Image

### Version info:
commit=, build date=, build source=Homebrew, version=0.61.1, os=darwin, arch=arm64, git version=2.44.0

### Terminal info:
MacOS Terminal with tmux
I am still on MacOS 15.7.3 (24G419)

### Additional context
I think it has to do with file changes while lazygit is open. Maybe only bulk file changes.

> If you want to try and debug this issue yourself, you can run `lazygit --debug` in one terminal panel and `lazygit --logs` in another to view the logs.

I will try to get more infos on this or maybe a way to reproduce / trigger the error

UPDATE:
I could catch the bug with a instance running with --debug.
When i attached the Log-Listener it already was at 100% CPU.

I dont see any obvious issue in the log - but there is one ERROR entry

Image

Next i will try to run it outside of tmux.

UPDATE:
Until now i only had this issue with lazygit inside of tmux.
But i cant reliably trigger it. I even wrote a script for mass editing - did not work.
ATM i suspect push/pull/fetch like actions inside tmux to cause this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.