jesseduffield / jesseduffield/lazygit
Regular crashes while lazygit is in the background
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
I'm not sure what triggers this, but it happens when I'm off in my IDE working away.
Occurring on ef82f394312e6f1c100f5153187d5537d701384f. Started maybe a day or three ago.
```csharp
github.com/jesseduffield/lazygit/pkg/tasks.(*ViewBufferManager).NewCmdTask.func1.2()
/Users/dean/Projects/lazygit/
pkg/tasks/tasks.go:112 +0x70
github.com/jesseduffield/lazygit/pkg/utils.Safe.func1()
/Users/dean/Projects/lazygit/pkg/util
s/utils.go:108 +0x1b
github.com/jesseduffield/lazygit/pkg/utils.SafeWithError(0x1040205?)
/Users/dean/Projects/lazygit/
pkg/utils/utils.go:119 +0x67
github.com/jesseduffield/lazygit/pkg/utils.Safe(0x64?)
/Users/dean/Projects/lazygit/pkg/util
s/utils.go:108 +0x35
created by github.com/jesseduffield/lazygit/pkg/tasks.(*ViewBufferManager).NewCmdTask.func1
/Users/dean/P
rojects/lazygit/pkg/tasks/tasks.go:111 +0x2ea
goroutine 14527 [select, 17 minutes]:
github.com/gdamore/tcell/v2.(*devTty).Start
.func1(0xc001fc8300)
/Users/dean/Projects/lazygit/vendor/github.com/gdamore/tcell/v2/tty_unix.go:92 +0xbf
created by github
.com/gdamore/tcell/v2.(*devTty).Start
/Users/dean/Projects/lazygit/vendor/github.com/gdamore/tcell/v2/tty_unix.go:89 +0x239
goroutine 16798 [runnable]:
github.com/jesseduffield/lazygit/pkg/tasks.(*ViewBufferManager).NewTask.func1.1()
/Users/dean/P
rojects/lazygit/pkg/tasks/tasks.go:275 +0x26
sync.(*Once).doSlow(0x1039307?, 0x0?)
/usr/local/Cellar/go/1.19/libexec/src
/sync/once.go:74 +0xc2
sync.(*Once).Do(...)
/usr/local/Cellar/go/1.19/libexec/src/sync/once.go:65
github.com/jesseduffield
/lazygit/pkg/tasks.(*ViewBufferManager).NewTask.func1.2()
/Users/dean/Projects/lazygit/pkg/tasks/tasks.go:279 +0x29
gith
ub.com/jesseduffield/lazygit/pkg/tasks.(*ViewBufferManager).NewTask.func1()
/Users/dean/Projects/lazygit/pkg/tasks/tasks.
go:267 +0x1ef
github.com/jesseduffield/lazygit/pkg/utils.Safe.func1()
```
Also of note, the error output is quite broken. In a `tmux` session if that means anything

Contributor guide
Assessment
This issue has not been assessed yet.