~karl1


#271 panic in pty.StartWithSize a month ago

Ticket created by ~karl1 on ~sircmpwn/aerc2

This panic happens occasionally on my box when tied into IMAP. It's always at the redrawing of the screen and most annoying when it's right after saving a message that is ready to send. Is there any way to get that message back after this crash?

[karl1@linux aerc]$ aerc
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x789270]

goroutine 1 [running]:
git.sr.ht/~sircmpwn/pty.StartWithSize(0x0, 0xc000635ab0, 0xc0007900c8, 0x0, 0x0)
        /home/karl1/go/pkg/mod/git.sr.ht/~sircmpwn/pty@v0.0.0-20190330154901-3a43678975a9/run.go:36 +0xa0
git.sr.ht/~sircmpwn/aerc/widgets.(*Terminal).Draw(0xc00061d8c0, 0xc00063fbf0)
        /home/karl1/aerc/aerc-0.2.1/widgets/terminal.go:239 +0x7ae
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc00061d810, 0xc00063f500)
        /home/karl1/aerc/aerc-0.2.1/lib/ui/grid.go:140 +0x267
git.sr.ht/~sircmpwn/aerc/widgets.(*Composer).Draw(0xc000138400, 0xc00063f500)
        /home/karl1/aerc/aerc-0.2.1/widgets/compose.go:175 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc0000b8900, 0xc00063f500)
        /home/karl1/aerc/aerc-0.2.1/lib/ui/tab.go:225 +0x5c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000de6e0, 0xc00018d920)
        /home/karl1/aerc/aerc-0.2.1/lib/ui/grid.go:140 +0x267
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc0000d8510, 0xc00018d920)
        /home/karl1/aerc/aerc-0.2.1/widgets/aerc.go:129 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0000bc5f0, 0xc0000a1a00)
        /home/karl1/aerc/aerc-0.2.1/lib/ui/ui.go:97 +0x11d
main.main()
        /home/karl1/aerc/aerc-0.2.1/aerc.go:172 +0x565