jesseduffield / lazygit

simple terminal UI for git commands
MIT License
50.96k stars 1.79k forks source link

Crash on startup #2697

Open djongepier opened 1 year ago

djongepier commented 1 year ago

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)

cheneysan commented 1 year ago

I get a similar error, also on Windows 11 Pro but with lazygit 0.39.4 (tried with go install and winget) and git 2.41.0.windows.3

2023/08/09 01:01:15 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 (0x1102e90)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:187 (0x1102e95)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:105 (0x1102359)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj_runner.go:44 (0x1101ba0)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/cmd_obj.go:185 (0x1100d85)
/home/runner/work/lazygit/lazygit/pkg/commands/oscommands/os.go:305 (0x1106901)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:801 (0x1236ee2)
/home/runner/work/lazygit/lazygit/pkg/gui/layout.go:191 (0x123d709)
/home/runner/work/lazygit/lazygit/pkg/gui/layout.go:123 (0x123d29e)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:692 (0xdbea34)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:1130 (0xdc071e)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:759 (0xdbf063)
/home/runner/work/lazygit/lazygit/vendor/github.com/jesseduffield/gocui/gui.go:732 (0xdbecfb)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:655 (0x1235cb4)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:661 (0x1235fd4)
/home/runner/work/lazygit/lazygit/pkg/utils/utils.go:119 (0xe730b3)
/home/runner/work/lazygit/lazygit/pkg/gui/gui.go:660 (0x1235f7c)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:262 (0x126221a)
/home/runner/work/lazygit/lazygit/pkg/app/app.go:48 (0x12621f3)
/home/runner/work/lazygit/lazygit/pkg/app/entry_point.go:151 (0x126453b)
/home/runner/work/lazygit/lazygit/main.go:23 (0x1265fac)
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/proc.go:250 (0xc58341)
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/asm_386.s:1326 (0xc80e11)
mloskot commented 8 months ago

I think this can be closed, winget install lazygit for 0.40.2 works for me, no run-time issues, see screenshot