Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducible Error: When switching room with Ctrl + K and then pressing # and then Shift + tab #182

Closed
jgarte opened this issue Jun 24, 2020 · 1 comment

Comments

@jgarte
Copy link

jgarte commented Jun 24, 2020

gomuks version: 0.1.0
operating system: NixOS

I get a reproducible error when switching rooms with Ctrl + K.
I start search for rooms that start with #
Subsequently pressing Shift + Tab gives me the following error:

panic: runtime error: index out of range [-1] [recovered]
        panic: runtime error: index out of range [-1] [recovered]
        panic: runtime error: index out of range [-1]

goroutine 1 [running]:
maunium.net/go/gomuks/debug.Recover()
        /build/source/debug/debug.go:109 +0x94
panic(0xbef860, 0xc001e11ca0)
        /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.14.2/share/go/src/runtime/panic.go:969 +0x166
maunium.net/go/mauview.(*Application).Start.func1(0xc0000c3500)
        /build/source/vendor/maunium.net/go/mauview/application.go:99 +0x82
panic(0xbef860, 0xc001e11ca0)
        /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.14.2/share/go/src/runtime/panic.go:969 +0x166
maunium.net/go/gomuks/ui.(*FuzzySearchModal).OnKeyEvent(0xc00024fd00, 0xedc5a0, 0xc0026f0980, 0x7ffb9e18fb98)
        /build/source/ui/fuzzy-search-modal.go:138 +0x68d
maunium.net/go/gomuks/ui.(*MainView).OnKeyEvent(0xc000236370, 0xedc5a0, 0xc0026f0980, 0x0)
        /build/source/ui/view-main.go:182 +0x3ca
maunium.net/go/mauview.(*Application).Start(0xc0000c3500, 0x0, 0x0)
        /build/source/vendor/maunium.net/go/mauview/application.go:150 +0x3c1
maunium.net/go/gomuks/ui.(*GomuksUI).Start(0xc00057f5f0, 0xcf1d58, 0xc00057f5c0)
        /build/source/ui/ui.go:73 +0x2f
main.(*Gomuks).Start(0xc00057f5c0)
        /build/source/gomuks.go:115 +0x11c
main.main()
        /build/source/main.go:77 +0x484

I found this bug by mistake. I usually just press Tab instead of Shift + Tab.

@jgarte
Copy link
Author

jgarte commented Jun 24, 2020

Let me know if you need anymore information on my end.

@tulir tulir closed this as completed in 48537f9 Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant