jesseduffield / jesseduffield/lazygit

lazygit quits itself and leaves gibberish

Open
#2,415 11 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**
`lazygit` quits randomly and leaves gibberish in the terminal. I believe this may not be a `lazygit` issue (e.g. could relate to `conda`), but I'm hoping experts can shed some light on it so I can understand what's going on.

**To Reproduce**
Steps to reproduce the behavior:

1. Installed `miniconda` in my remote server (I don't have root privilege). Followed: https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html
2. Using `conda install lazygit` to install `lazygit`
4. Launch `lazygit`
5. Do some normal operations inside
6. `lazygit` will out of the blue quit and leave gibberish like in the screenshot below
7. The `bash` environment also becomes unusable because the display doesn't update when I type; have to restart a new bash

**Expected behavior**
`lazygit` should stay open until I close it.

**Screenshots**
Screenshot2023-02-07 10 31 51

**Version info:**
_Run `lazygit --version` and paste the result here_
```
$ lazygit --version
unexpected fault address 0xe36d64
fatal error: fault
[signal SIGBUS: bus error code=0x2 addr=0xe36d64 pc=0x455b41]

goroutine 1 [running, locked to thread]:
runtime.throw(0xbd55d0, 0x5)
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/panic.go:1117 +0x72 fp=0xc000066540 sp=0xc000066510 pc=0x436172
runtime.sigpanic()
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/signal_unix.go:731 +0x2c8 fp=0xc000066578 sp=0xc000066540 pc=0x44ce48
runtime.step(0xe36d64, 0x12cc74, 0x12cc74, 0xc0000665f0, 0xc0000665e8, 0x1, 0x0, 0x0, 0x0, 0x0)
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/symtab.go:979 +0x21 fp=0xc000066598 sp=0xc000066578 pc=0x455b41
runtime.funcMaxSPDelta(0xfad848, 0x10a6d00, 0x10a6d00)
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/symtab.go:922 +0xc6 fp=0xc000066608 sp=0xc000066598 pc=0x4557c6
runtime.init.5()
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/preempt.go:319 +0x52 fp=0xc000066638 sp=0xc000066608 pc=0x437332
runtime.doInit(0x109df00)
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/proc.go:6315 +0xec fp=0xc000066788 sp=0xc000066638 pc=0x4465cc
runtime.main()
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/proc.go:174 +0x130 fp=0xc0000667e0 sp=0xc000066788 pc=0x438890
runtime.goexit()
/home/conda/feedstock_root/build_artifacts/lazygit_1637586235263/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/go/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0000667e8 sp=0xc0000667e0 pc=0x46c5e1
$ lazygit --version
commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64
```
_Run `git --version` and paste the result here_
```
git version 2.39.1
```

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.