~maringuu

Trackers

~maringuu/assignments

Last active 3 months ago

~maringuu/sway-scripts

Last active 3 months ago

#1 Crash when holding down key 13 days ago

Ticket created by ~maringuu on ~gpanders/ijq

Hello,

I noticed a crash when holding down a key (e.g. space) and thus writing characters fast enough in the filter box.

It does not crash with echo {} | ijq and other simple jsons.

It does crash with this.

The log is this:

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

goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1(0xc00014c000)
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/application.go:244 +0x82
panic(0x598840, 0xc0003d7400)
	/usr/lib/go/src/runtime/panic.go:969 +0x166
github.com/rivo/tview.(*TextView).Draw(0xc00014e0f0, 0x5e1d80, 0xc000152000)
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/textview.go:944 +0xd89
github.com/rivo/tview.(*Flex).Draw(0xc000098b10, 0x5e1d80, 0xc000152000)
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/flex.go:179 +0x28b
github.com/rivo/tview.(*Grid).Draw(0xc000150000, 0x5e1d80, 0xc000152000)
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/grid.go:613 +0x1245
github.com/rivo/tview.(*Application).draw(0xc00014c000, 0x0)
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/application.go:582 +0xda
github.com/rivo/tview.(*Application).Draw.func1()
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/application.go:535 +0x2a
github.com/rivo/tview.(*Application).Run(0xc00014c000, 0x0, 0x0)
	/home/marten/go/pkg/mod/github.com/rivo/tview@v0.0.0-20200507165325-823f280c5426/application.go:371 +0x9a6
main.main()
	/home/marten/workspace/Fork/ijq/main.go:261 +0x15ee