panic: Attempted to draw outside of context

When finishing the account setup tutorial, aerc suddenly exits without saving config or setting up accounts. Re-launching aerc restarts the account setup wizard, and nothing previously entered has been saved.

No change to terminal window size. No other changes other than filling in the account setup fields.

go version go1.12.7 linux/amd64 Ubuntu 19.04 Gnome 3.32.1

Note this happens when opening the gnome terminal at default size. When I resize the window to 50% of my screen prior to opening aerc, it doesn't panic.

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Printf(0xc000251e30, 0x2, 0x1, 0x0, 0x870052, 0x4, 0xc00029dc78, 0x1, 0x1, 0x50)
/home/jvc26/aerc/lib/ui/context.go:69 +0x3a3
git.sr.ht/~sircmpwn/aerc/widgets.(*selecter).Draw(0xc000088550, 0xc000251e30)
/home/jvc26/aerc/widgets/account-wizard.go:756 +0x17e
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000aa790, 0xc000251ad0)
/home/jvc26/aerc/lib/ui/grid.go:117 +0x111
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountWizard).Draw(0xc0001138c0, 0xc000251ad0)
/home/jvc26/aerc/widgets/account-wizard.go:640 +0x47
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc00006a720, 0xc000251ad0)
/home/jvc26/aerc/lib/ui/tab.go:170 +0x5c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000aa580, 0xc000155560)
/home/jvc26/aerc/lib/ui/grid.go:117 +0x111
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc00014a200, 0xc000155560)
/home/jvc26/aerc/widgets/aerc.go:103 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc000088690, 0x88a500)
/home/jvc26/aerc/lib/ui/ui.go:93 +0x11d

main.main() /home/jvc26/aerc/aerc.go:151 +0x431

Assigned to
3 years ago
2 years ago
No labels applied.

~j3s 2 years ago

I think that this has been resolved since you posted this ticket ~jvc26. Could you validate?

~sircmpwn REPORTED FIXED 2 years ago

Register here or Log in to comment, or comment via email.