~sircmpwn/aerc2#142
panic: Attempted to create context larger than parent

  • MacOS 10.14.5
  • Tmux stable 2.9a, installed from Homebrew
  • Aerc built from master

Reproduction

  • Start tmux.
  • Start aerc for the first time.
  • Create a vertical tmux split.

Expected behavior: aerc adapts to reduced space available.

Actual behavior: aerc crashes with trace below:

12:50 ~/b/aerc ⑃master
><((°> ./aerc
panic: Attempted to create context larger than parent

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Subcontext(0xc00031d980, 0x0, 0x0, 0xb1, 0x8, 0x419f4ff)
        /Users/james/bin/aerc/lib/ui/context.go:49 +0x252
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0001c4370, 0xc00031d980)
        /Users/james/bin/aerc/lib/ui/grid.go:116 +0xf0
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountWizard).Draw(0xc0001d4900, 0xc00031d980)
        /Users/james/bin/aerc/widgets/account-wizard.go:603 +0x47
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc000192300, 0xc00031d980)
        /Users/james/bin/aerc/lib/ui/tab.go:154 +0x5c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0001c42c0, 0xc00031d920)
        /Users/james/bin/aerc/lib/ui/grid.go:117 +0x111
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc0001e25b0, 0xc00031d920)
        /Users/james/bin/aerc/widgets/aerc.go:101 +0x39
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0000b2320, 0x4463d00)
        /Users/james/bin/aerc/lib/ui/ui.go:93 +0x11d
main.main()
        /Users/james/bin/aerc/aerc.go:113 +0x34b
Status
RESOLVED DUPLICATE
Submitter
~jamesgecko
Assigned to
No-one
Submitted
8 months ago
Updated
8 months ago
Labels
bug

~sircmpwn REPORTED DUPLICATE 8 months ago

dupe of #99

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