Crash while tailing a pretty active web log
foozmeat opened this issue · 6 comments
panic: runtime error: index out of range [507] with length 0 [recovered]
panic: runtime error: index out of range [507] with length 0
goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1(0x1400021c1c0)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/application.go:243 +0x7c
panic(0x104d10c80, 0x1400013c4b0)
/opt/homebrew/Cellar/go/1.16/libexec/src/runtime/panic.go:965 +0x14c
github.com/rivo/tview.(*TextView).Draw(0x14000200600, 0x104d50218, 0x14000254240)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/textview.go:1017 +0xb18
github.com/rivo/tview.(*Flex).Draw(0x14000069590, 0x104d50218, 0x14000254240)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/flex.go:183 +0x2b8
github.com/rivo/tview.(*Flex).Draw(0x140000695c0, 0x104d50218, 0x14000254240)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/flex.go:183 +0x2b8
github.com/rivo/tview.(*Pages).Draw(0x14000069680, 0x104d50218, 0x14000254240)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/pages.go:277 +0xb0
github.com/rivo/tview.(*Application).draw(0x1400021c1c0, 0x0)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/application.go:597 +0xac
github.com/rivo/tview.(*Application).Draw.func1()
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/application.go:550 +0x28
github.com/rivo/tview.(*Application).Run(0x1400021c1c0, 0x0, 0x0)
/Users/james/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210427112837-09cec83b1732/application.go:376 +0x850
main.main()
/Users/james/Developer/damon/cmd/damon/main.go:104 +0x9d8
On the server I got this error:
[ERROR] http: request failed: method=GET path=/v1/node/ error="rpc error: missing node ID" code=500
@foozmeat thank you for testing Damon so much and sharing these errors.
Did that happen multiple times, or was this a one time thing?
This happens regularly for me after approximately a minute or so.
First it just stops tailing and then crashes on the next key pressed.
@dermetfan thank you for confirmation. I'll look into this.
@foozmeat @dermetfan I was able to identify the issue and I'm working on PR to fix this.
Hey @foozmeat @dermetfan,
I was finally able to fix this issue with PR #36. I'm really sorry for the delay. I was able to identify the issue but it was in general bigger fix than expected.
Please let me know if it works for you. Otherwise, feel free to reopen the issue.