glab icon indicating copy to clipboard operation
glab copied to clipboard

crash on mesa CI at gitlab.freedesktop.org

Open okias opened this issue 3 years ago • 2 comments

Hello! First I want you to thank you for this amazing piece of software! Second, report of crash:

Description Crash on big CI ( gitlab.freedesktop.org ). There is lot of stages/pipelines... Logs

$ glab ci view testing-1
2022/04/27 13:50:34 runtime error: index out of range [0] with length 0
goroutine 1 [running]:
runtime/debug.Stack()
	/opt/hostedtoolcache/go/1.17.5/x64/src/runtime/debug/stack.go:24 +0x65
github.com/profclems/glab/commands/ci/view.recoverPanic(0x30)
	/home/runner/work/glab/glab/commands/ci/view/view.go:546 +0x4c
panic({0xcfe8e0, 0xc000592030})
	/opt/hostedtoolcache/go/1.17.5/x64/src/runtime/panic.go:1038 +0x215
github.com/rivo/tview.(*Application).Run.func1()
	/home/runner/go/pkg/mod/github.com/rivo/[email protected]/application.go:243 +0x4d
panic({0xcfe8e0, 0xc000592030})
	/opt/hostedtoolcache/go/1.17.5/x64/src/runtime/panic.go:1038 +0x215
github.com/profclems/glab/commands/ci/view.(*navigator).Navigate(0x0, {0x0, 0xc00062f7e8, 0x444a93}, 0x436036)
	/home/runner/work/glab/glab/commands/ci/view/view.go:299 +0x1ed
github.com/profclems/glab/commands/ci/view.inputCapture.func1(0xc0007cc0c0)
	/home/runner/work/glab/glab/commands/ci/view/view.go:164 +0x1d3
github.com/rivo/tview.(*Application).Run(0xc000642000)
	/home/runner/go/pkg/mod/github.com/rivo/[email protected]/application.go:318 +0x782
github.com/profclems/glab/commands/ci/view.drawView({{0x7fffbb53342b, 0x9}, {0xc000517990, 0xa}, 0xc000134380, {0xc000024180, 0x28}, 0xc000522e00, {0xf5af60, 0xc00000e018}})
	/home/runner/work/glab/glab/commands/ci/view/view.go:135 +0x6a6
github.com/profclems/glab/commands/ci/view.NewCmdView.func1(0xc0004c3400, {0xc00059d6b0, 0x1, 0x1})
	/home/runner/work/glab/glab/commands/ci/view/view.go:98 +0x1fa
github.com/spf13/cobra.(*Command).execute(0xc0004c3400, {0xc00059d690, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0xc0005ac280)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
main.main()
	/home/runner/work/glab/glab/cmd/glab/main.go:147 +0x90c

Your Environment x86_64, GNOME

  • Version used (Run glab --version): glab version 1.22.0 (2022-01-10)

  • Operating System and version: Debian unstable/testing

okias avatar Apr 27 '22 11:04 okias

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.

clemsbot avatar May 28 '22 02:05 clemsbot

ok, trick was not loading the huge list which won't fit 4k screen (I heard 8k screens should work for Mesa CI), but pressing any button while jobs being loaded.

okias avatar Jun 11 '22 10:06 okias