tulir / gomuks

A Matrix client written in Go.
https://maunium.net/go/gomuks
GNU Affero General Public License v3.0
1.37k stars 123 forks source link

gomuks crashed when in the plain text screen (I think) #390

Closed mcepl closed 1 week ago

mcepl commented 2 years ago
runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
runtime/debug.Stack()
    /usr/lib64/go/1.19/src/runtime/debug/stack.go:24 +0x65
maunium.net/go/gomuks/debug.PrettyPanic({0x55618f5fc020, 0x55618fb644f0})
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/debug/debug.go:133 +0x19a
maunium.net/go/gomuks/debug.Recover()
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/debug/debug.go:107 +0x5a
panic({0x55618f5fc020, 0x55618fb644f0})
    /usr/lib64/go/1.19/src/runtime/panic.go:884 +0x212
maunium.net/go/mauview.(*Application).Start.func1()
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/vendor/maunium.net/go/mauview/application.go:104 +0x4d
panic({0x55618f5fc020, 0x55618fb644f0})
    /usr/lib64/go/1.19/src/runtime/panic.go:884 +0x212
maunium.net/go/mauview.(*Application).redraw(0xc0003fd5c0)
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/vendor/maunium.net/go/mauview/application.go:220 +0x25
maunium.net/go/mauview.(*Application).Start(0xc0003fd5c0)
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/vendor/maunium.net/go/mauview/application.go:156 +0x327
maunium.net/go/gomuks/ui.(*GomuksUI).Start(0xc0000b0000?)
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/ui/ui.go:75 +0x1d
main.(*Gomuks).Start(0xc000413650)
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/gomuks.go:115 +0x137
main.main()
    /home/abuild/rpmbuild/BUILD/gomuks-0.2.4/main.go:89 +0x60f