~sircmpwn/aerc2#240:
Crash when console becomes too small

To reproduce:

  1. Open aerc
  2. Make console window smaller until aerc crashes

Crashes around 79x25 cols/lines.

panic: Attempted to create context larger than parent

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Subcontext(0xc0009d8540, 0x0, 0x0, 0x0, 0x1, 0xc0001e6090)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/context.go:49 +0x252
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0002162c0, 0xc0009d8540)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/grid.go:130 +0xf0
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc0001da200, 0xc0009d8540)
    /tmp/makepkg/aerc-git/src/aerc/widgets/aerc.go:105 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0001e4280, 0x8b9900)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/ui.go:96 +0x11d
main.main()
    /tmp/makepkg/aerc-git/src/aerc/aerc.go:156 +0x43a
panic: Attempted to draw outside of context

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Printf(0xc0001a2540, 0x0, 0x0, 0x8000000, 0x89e3c7, 0x4, 0xc0000dfd40, 0x1, 0x1, 0x0)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/context.go:69 +0x3a3
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabStrip).Draw(0xc0002000c0, 0xc0001a2540)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/tab.go:151 +0x15c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0001e22c0, 0xc0001a2510)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/grid.go:131 +0x111
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc000220100, 0xc0001a2510)
    /tmp/makepkg/aerc-git/src/aerc/widgets/aerc.go:105 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00029e050, 0x8b9900)
    /tmp/makepkg/aerc-git/src/aerc/lib/ui/ui.go:96 +0x11d
main.main()
    /tmp/makepkg/aerc-git/src/aerc/aerc.go:156 +0x43a
Status
REPORTED
Submitter
~mkaito
Assigned to
No-one
Submitted
2 months ago
Updated
a month ago
Labels
No labels applied.

~jeffas 2 months ago

Think I've fixed the issue with tabstrips here: https://lists.sr.ht/~sircmpwn/aerc/%3C20190723183144.25782-1-dev%40jeffas.io%3E

~jeffas 2 months ago

And this should fix the grid creating too large subcontexts: https://lists.sr.ht/~sircmpwn/aerc/%3C20190723190314.15911-1-dev%40jeffas.io%3E

~pmolloy a month ago

Looks like this is a duplicate of #99

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