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 sending a message #398

Closed bodqhrohro closed 1 week ago

bodqhrohro commented 2 years ago
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x70 pc=0xdde6a5]

goroutine 1 [running]:
go.mau.fi/mauview.(*Application).ForceStop(...)
        /opt/gone/pkg/mod/go.mau.fi/mauview@v0.1.4-0.20220424212347-bfa59b8f6ad0/application.go:198
maunium.net/go/gomuks/ui.(*GomuksUI).Finish(0xc000004280?)
        /media/d/temp/git/gomuks/ui/ui.go:88 +0x25
maunium.net/go/gomuks/debug.Recover()
        /media/d/temp/git/gomuks/debug/debug.go:104 +0x42
panic({0xf6bd00, 0x182cd30})
        /usr/lib/go-1.19/src/runtime/panic.go:884 +0x212
maunium.net/go/gomuks/ui.(*RoomView).GetStatus(0xc00089b680)
        /media/d/temp/git/gomuks/ui/room-view.go:230 +0x1d5
maunium.net/go/gomuks/ui.(*RoomView).Draw(0xc00089b680, {0x127e5e0, 0xc0004d35e0?})
        /media/d/temp/git/gomuks/ui/room-view.go:323 +0x2f0
go.mau.fi/mauview.(*Box).Draw(0xc00023c140, {0x127e5e0, 0xc0004d3730})
        /opt/gone/pkg/mod/go.mau.fi/mauview@v0.1.4-0.20220424212347-bfa59b8f6ad0/box.go:184 +0x256
go.mau.fi/mauview.(*Flex).Draw(0xc0004d50e0, {0x7f0fc15b6a10, 0xc000004280})
        /opt/gone/pkg/mod/go.mau.fi/mauview@v0.1.4-0.20220424212347-bfa59b8f6ad0/flex.go:109 +0xc3
maunium.net/go/gomuks/ui.(*MainView).Draw(0xc0003fc420, {0x7f0fc15b6a10, 0xc000004280})
        /media/d/temp/git/gomuks/ui/view-main.go:109 +0x4d
go.mau.fi/mauview.(*Application).Start(0xc00007a780)
        /opt/gone/pkg/mod/go.mau.fi/mauview@v0.1.4-0.20220424212347-bfa59b8f6ad0/application.go:183 +0x8d3
maunium.net/go/gomuks/ui.(*GomuksUI).Start(0xc0000b03c0?)
        /media/d/temp/git/gomuks/ui/ui.go:80 +0x1d
main.(*Gomuks).Start(0xc000447350)
        /media/d/temp/git/gomuks/gomuks.go:154 +0x137
main.main()
        /media/d/temp/git/gomuks/main.go:89 +0x605