jesseduffield / jesseduffield/lazygit

Regular crashes while lazygit is in the background

Open
#2,118 0 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

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

![JetBrains Rider 2022-08-16 at 06 50 04](https://user-images.githubusercontent.com/191335/184815518-eee7e1b1-ace0-483c-919d-75d03b79a86b.png)

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.