gomuks icon indicating copy to clipboard operation
gomuks copied to clipboard

Crash when trying to logout

Open Miepee opened this issue 3 years ago • 0 comments

Not sure exactly how this happened. I tried to logout by using /logout, where nothing happened. Typed it again, where still nothing happened for a while. Then I suddenly got logged out and gomuks crashed.

Crash log:

runtime error: invalid memory address or nil pointer dereference
goroutine 24985 [running]:
runtime/debug.Stack(0x13f0ce0, 0xc0007245d0, 0xc0013a9c08)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x9f
maunium.net/go/gomuks/debug.PrettyPanic(0xe88620, 0x18d8420)
        /builds/tulir/gomuks/debug/debug.go:133 +0x245
maunium.net/go/gomuks/debug.Recover()
        /builds/tulir/gomuks/debug/debug.go:107 +0x65
panic(0xe88620, 0x18d8420)
        /usr/local/go/src/runtime/panic.go:965 +0x1b9
maunium.net/go/mautrix.(*Client).incrementSyncingID(...)
        /builds/tulir/gomuks/.cache/pkg/mod/maunium.net/go/[email protected]/client.go:288
maunium.net/go/mautrix.(*Client).StopSync(...)
        /builds/tulir/gomuks/.cache/pkg/mod/maunium.net/go/[email protected]/client.go:298
maunium.net/go/gomuks/matrix.(*Container).Stop(0xc000149030)
        /builds/tulir/gomuks/matrix/matrix.go:287 +0xb4
maunium.net/go/gomuks/matrix.(*Container).Logout(0xc000149030)
        /builds/tulir/gomuks/matrix/matrix.go:272 +0x45
maunium.net/go/gomuks/ui.cmdLogout(0xc000288e60)
        /builds/tulir/gomuks/ui/commands.go:779 +0x37
maunium.net/go/gomuks/ui.(*CommandProcessor).HandleCommand(0xc0000d2910, 0xc000288e60)
        /builds/tulir/gomuks/ui/command-processor.go:271 +0x107
created by maunium.net/go/gomuks/ui.(*RoomView).InputSubmit
        /builds/tulir/gomuks/ui/room-view.go:681 +0x9c

Using Arch Linux, and the Gomuks-bin package from AUR version 0.2.4.1

Miepee avatar Apr 01 '22 11:04 Miepee