Closed christophershirk closed 10 years ago
Do you recall what action preceded the crash?
Unfortunately I don't recall, nor have I been able to reproduce the crash. At the time I was having difficulty getting a remote user to successfully exchange keys, so I was doing a lot of contact adding, removing, and re-adding of the same names. At one point there was a queued outgoing msg during this process, as well as a draft, but I don't remember the state of things when the pond client called panic.
This panic can be triggered by having contact A selected in the gui while a transmission to A happens and A has revoked us.
Apr 1 22:58:21: Starting fetch because of timer
Apr 1 22:58:21: Starting message transmission to pondserver://ZGL2WALCGXCKYBIHTWL5Q3TPCOEHSQB2XON5JHA2KHM5PJ3C7AFA@127.0.0.1:16333
Apr 1 22:58:21: Error from server pondserver://ZGL2WALCGXCKYBIHTWL5Q3TPCOEHSQB2XON5JHA2KHM5PJ3C7AFA@127.0.0.1:16333: error from server: GENERATION_REVOKED
Apr 1 22:58:21: Next network transaction in 5s seconds
Apr 1 22:58:21: Revoked by A
panic: no such widget: contactsVbox-16
goroutine 16 [running]:
runtime.panic(0x7b6100, 0xc2087feff0)
/.../src/go/src/pkg/runtime/panic.c:279 +0xf5
main.(*GTKUI).getWidget(0xc208052200, 0xc2080fcd10, 0xf, 0x0, 0x0)
/.../go/src/github.com/agl/pond/client/gtk.go:523 +0xed
main.(*GTKUI).handle(0xc208052200, 0x8930e0, 0xc208821740)
/.../go/src/github.com/agl/pond/client/gtk.go:590 +0x23e0
main.(*GTKUI).onAction(0xc208052200)
/.../go/src/github.com/agl/pond/client/gtk.go:99 +0x11b
main.func·018(0x1, 0x7f4bf3b4fa00)
/.../go/src/github.com/agl/pond/client/gtk.go:60 +0x29
reflect.Value.call(0x80e6c0, 0xc2080008f0, 0x0, 0x130, 0x92b530, ...)
/.../src/go/src/pkg/reflect/value.go:563 +0x1242
reflect.Value.Call(0x80e6c0, 0xc2080008f0, 0x0, 0x130, 0xc208821780, ...)
/.../src/go/src/pkg/reflect/value.go:411 +0xd7
github.com/agl/go-gtk/glib._go_glib_sourcefunc(0x2481200)
/.../go/src/github.com/agl/go-gtk/glib/glib.go:886 +0x28a
github.com/agl/go-gtk/gtk._Cfunc_gtk_main(0x4608aa)
/tmp/go-build770310214/github.com/agl/go-gtk/gtk/_obj/_cgo_defun.c:4248 +0x31
github.com/agl/go-gtk/gtk.Main()
/.../go/src/github.com/agl/go-gtk/gtk/gtk.go:881 +0x1a
main.(*GTKUI).Run(0xc208052200)
/.../go/src/github.com/agl/pond/client/gtk.go:80 +0x1a
main.main()
/.../go/src/github.com/agl/pond/client/main_linux.go:71 +0x844
Thanks for that. I see the (stupid) bug. Will fix tomorrow.
go version go1.2.1 linux/amd64 Pond version: commit 261faee2e7cc2521048d564dfb162dba45abab44
Crash output: