TomHutter / fangotasia

1 stars 0 forks source link

tview crashes #2

Closed TomHutter closed 3 years ago

TomHutter commented 3 years ago

panic: runtime error: index out of range [0] with length 0 [recovered] panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]: github.com/rivo/tview.(Application).Run.func1(0xc00028c2a0) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/application.go:243 +0x87 panic(0x610d60, 0xc000241440) /usr/local/go/src/runtime/panic.go:969 +0x1b9 github.com/rivo/tview.(TextView).Draw(0xc000192800, 0x66b280, 0xc000196a00) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/textview.go:947 +0xdcd github.com/rivo/tview.(Grid).Draw(0xc00018c3f0, 0x66b280, 0xc000196a00) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/grid.go:627 +0x12ef github.com/rivo/tview.(Grid).Draw(0xc00018c510, 0x66b280, 0xc000196a00) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/grid.go:676 +0x1306 github.com/rivo/tview.(Application).draw(0xc00028c2a0, 0x0) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/application.go:583 +0xd9 github.com/rivo/tview.(Application).Run(0xc00028c2a0, 0x0, 0x0) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/application.go:339 +0x625 main.main() /workspaces/fantasia/fangotasia.go:33 +0x27f exit status 2

TomHutter commented 3 years ago

panic: runtime error: index out of range [1] with length 0 [recovered] panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]: github.com/rivo/tview.(Application).Run.func1(0x8f0400) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/application.go:243 +0x6c panic(0x1db578, 0xcd9f60) /usr/local/go/src/runtime/panic.go:969 +0x158 github.com/rivo/tview.(TextView).Draw(0x86af30, 0x229090, 0x8eed80) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/textview.go:947 +0xaac github.com/rivo/tview.(Grid).Draw(0x8ec2d0, 0x229090, 0x8eed80) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/grid.go:627 +0x1234 github.com/rivo/tview.(Grid).Draw(0x8ec370, 0x229090, 0x8eed80) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/grid.go:676 +0x1244 github.com/rivo/tview.(Application).draw(0x8f0400, 0x0) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/application.go:583 +0xb8 github.com/rivo/tview.(Application).Run(0x8f0400, 0x0, 0x0) /go/pkg/mod/github.com/rivo/tview@v0.0.0-20201018122409-d551c850a743/application.go:339 +0x458 main.main() /workspaces/fantasia/fangotasia.go:41 +0x148