jesseduffield / jesseduffield/lazygit

Crash on startup

Open
#2,697 2 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**
For this bug to appear, I cloned a (non-public) Gitlab repository, then in Windows Terminal using PowerShell 7.3.4 navigated to the directory containing the files and executed Lazygit (Version 0.37.0).

Then this error appeared.
2023/06/01 11:30:58 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*exec.ExitError exit status 1
/home/runner/work/lazygit/lazygit/pkg/utils/errors.go:13 (0x967525)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:215 (0x9674de)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:113 (0x96682a)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:52 (0x965ec5)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj.go:160 (0x96500f)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/os.go:289 (0x96ad98)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:678 (0xb938aa)
/home/runner/work/lazygit/lazygit/pkg/gui/layout.go:189 (0xb9d1ee)
/home/runner/work/lazygit/lazygit/pkg/gui/layout.go:121 (0xb9c693)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:659 (0x718a5f)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:1085 (0x71a762)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:717 (0x718f85)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:550 (0xb92a18)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:556 (0xb92dcc)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:119 (0x7d5627)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:555 (0xb92d0b)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:241 (0xbd7029)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:47 (0xbd6fbe)
/home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:146 (0xbd8fcb)
/home/runner/work/lazygit/lazygit/main.go:23 (0xbdaf1e)
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/proc.go:250 (0x5a919e)
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 (0x5d3d21)

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

1. Clone Gitlab hosted repository.
2. Navigate to directory
3. start lazygit
4. See error

**Expected behavior**
Normal startup of Lazygit displaying the repository.

**Screenshots**
None.

**Version info:**
_Run `lazygit --version` and paste the result here: Version 0.37.0
_Run `git --version` and paste the result here: git version 2.40.1.windows.1

**Additional context**
Windows 11 Pro
Domain member
Windows account without Administrator rights

Manual Update to version=0.38.2 did not resolve the issue.

ADDITIONAL INFO:
When I use my WSL2 to open the same repository (AlmaLinux 9) there is no problem. It's the same directory and data, navigated to the directory via /mnt/c/...

Logs:
Tailing log file C:\Users\djongepier\AppData\Roaming\lazygit\development.log

Jun 1 11:37:21 |DEBU| RunCommand command="git rev-parse --is-bare-repository"
Jun 1 11:37:21 |INFO| refreshing all scopes in async mode
Jun 1 11:37:21 |DEBU| RunCommand command="cmd /c title invoice - Lazygit"
Jun 1 11:37:21 |DEBU| RunCommand command="git merge-base \\\"HEAD\\\" \\\"HEAD\\\"@{u}"
Jun 1 11:37:21 |DEBU| RunCommand command="git branch -r"
Jun 1 11:37:21 |DEBU| RunCommand command="git stash list -z --pretty='%gs'"
Jun 1 11:37:21 |DEBU| RunCommand command="git for-each-ref --sort=-committerdate --format=\"%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)\" refs/heads"
Jun 1 11:37:21 |DEBU| RunCommand command="git tag --list --sort=-creatordate"
Jun 1 11:37:21 |ERRO| command="cmd /c title invoice - Lazygit"
Jun 1 11:37:21 |ERRO| *exec.ExitError exit status 1
/home/runner/work/lazygit/lazygit/pkg/utils/errors.go:13 (0x967525)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:215 (0x9674de)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:113 (0x96682a)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:52 (0x965ec5)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj.go:160 (0x96500f)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/os.go:289 (0x96ad98)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:678 (0xb938aa)
/home/runner/work/lazygit/lazygit/pkg/gui/layout.go:189 (0xb9d1ee)
/home/runner/work/lazygit/lazygit/pkg/gui/layout.go:121 (0xb9c693)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:659 (0x718a5f)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:1085 (0x71a762)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:717 (0x718f85)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:550 (0xb92a18)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:556 (0xb92dcc)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:119 (0x7d5627)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:555 (0xb92d0b)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:241 (0xbd7029)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:47 (0xbd6fbe)
/home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:146 (0xbd8fcb)
/home/runner/work/lazygit/lazygit/main.go:23 (0xbdaf1e)
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/proc.go:250 (0x5a919e)
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_amd64.s:1571 (0x5d3d21)

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.