jesseduffield / jesseduffield/lazygit

panic: pipe: too many open files

Open
#1,888 12 comments 0 reactions 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**
app crashes with panic: pipe: too many open files

**To Reproduce**
is failing on a regular git repo

**Expected behavior**
to work

**Screenshots**
```
panic: pipe: too many open files

goroutine 1676 [running]:
github.com/jesseduffield/lazygit/pkg/commands/loaders.(*BranchLoader).obtainBranches(0x140002a4f00, 0x0, 0x0, 0x0)
/home/runner/work/lazygit/lazygit/pkg/commands/loaders/branches.go:112 +0x56c
github.com/jesseduffield/lazygit/pkg/commands/loaders.(*BranchLoader).Load(0x140002a4f00, 0x14000856000, 0x1d1, 0x200, 0x1400024e1e0, 0x100af91e8, 0x1400012aea0, 0x0, 0x0)
/home/runner/work/lazygit/lazygit/pkg/commands/loaders/branches.go:52 +0x30
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).refreshBranches(0x1400024e1e0)
/home/runner/work/lazygit/lazygit/pkg/gui/branches_panel.go:63 +0x54
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).refreshCommits.func1()
/home/runner/work/lazygit/lazygit/pkg/gui/commits_panel.go:89 +0x40
github.com/jesseduffield/lazygit/pkg/utils.Safe.func1(0x1400012b4a0, 0x1400113d7b0)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:95 +0x28
github.com/jesseduffield/lazygit/pkg/utils.SafeWithError(0x1400113d7b8, 0x0, 0x0)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:106 +0x5c
github.com/jesseduffield/lazygit/pkg/utils.Safe(0x14000796258)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:95 +0x40
created by github.com/jesseduffield/lazygit/pkg/gui.(*Gui).refreshCommits
/home/runner/work/lazygit/lazygit/pkg/gui/commits_panel.go:86 +0xa0
```

**Desktop (please complete the following information):**
- OS: macosx
- Lazygit Version 0,34
- The last commit id if you built project from sources (run : ```git rev-parse HEAD```)

**Additional context**
worked on a small repo just fine, is there a limitation for big repos?

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.