~sircmpwn/aerc2#130: Panic when resize terminal window

I'm trying to use aerc in i3, but when I open another terminal (causing the one running aerc to be resized and hidden) it panics:

panic: Attempted to create context larger than parent

goroutine 1 [running]: git.sr.ht/~sircmpwn/aerc/lib/ui.(Context).Subcontext(0xc00009a630, 0x0, 0x10, 0xd4, 0x22, 0xc00009b710) /home/jdsnape/go/aerc/lib/ui/context.go:49 +0x252 git.sr.ht/~sircmpwn/aerc/lib/ui.(Grid).Draw(0xc0000c0790, 0xc00009a630) /home/jdsnape/go/aerc/lib/ui/grid.go:116 +0xf0 git.sr.ht/~sircmpwn/aerc/widgets.(AccountWizard).Draw(0xc00012efc0, 0xc00009a630) /home/jdsnape/go/aerc/widgets/account-wizard.go:603 +0x47 git.sr.ht/~sircmpwn/aerc/lib/ui.(TabContent).Draw(0xc000078720, 0xc00009a630) /home/jdsnape/go/aerc/lib/ui/tab.go:154 +0x5c git.sr.ht/~sircmpwn/aerc/lib/ui.(Grid).Draw(0xc0000c06e0, 0xc00009a1e0) /home/jdsnape/go/aerc/lib/ui/grid.go:117 +0x111 git.sr.ht/~sircmpwn/aerc/widgets.(Aerc).Draw(0xc00016b960, 0xc00009a1e0) /home/jdsnape/go/aerc/widgets/aerc.go:101 +0x39 git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00019c050, 0x867700) /home/jdsnape/go/aerc/lib/ui/ui.go:93 +0x11d main.main() /home/jdsnape/go/aerc/aerc.go:113 +0x34b

Status
REPORTED
Submitter
~jdsnape
Assigned to
No-one
Submitted
2 months ago
Updated
23 days ago
Labels
bug

~jdsnape added bug 2 months ago

~matthiasbeyer 2 months ago

Can reproduce in sway on aerc 0.1.1.

~edoverflow a month ago

I was able to reproduce this in GNOME Shell using aerc 0.1.1. Going from split screen to full screen by using + causes aerc to panic.

~lanodan a month ago

Can reproduce in 0.1.2 and 8bb115dbae928111be52ed422dafb1caf72a744c by going into :new-account

~lanodan a month ago

Can reproduce in 0.1.2 and 8bb115dbae928111be52ed422dafb1caf72a744c by going into :new-account

~lanodan a month ago

Can reproduce in 0.1.2 and 8bb115dbae928111be52ed422dafb1caf72a744c by going into :new-account

~lanodan a month ago

Can reproduce in 0.1.2 and 8bb115dbae928111be52ed422dafb1caf72a744c by going into :new-account

~matthiasbeyer a month ago

This issue does not exist in 0.1.4 for me anymore.

~lanodan 30 days ago

[2019-07-17 18:07:31-0000] ~matthiasbeyer:

This issue does not exist in 0.1.4 for me anymore.

Still can reproduce after some resizes with tmux tiling modes.

panic: Attempted to create context larger than parent

goroutine 1 [running]: git.sr.ht/~sircmpwn/aerc/lib/ui.(Context).Subcontext(0xc000372360, 0x0, 0x0, 0xe3, 0x8, 0x5e338f) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/lib/ui/context.go:49 +0x252 git.sr.ht/~sircmpwn/aerc/lib/ui.(Grid).Draw(0xc0000ac000, 0xc000372360) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/lib/ui/grid.go:116 +0xf0 git.sr.ht/~sircmpwn/aerc/widgets.(AccountWizard).Draw(0xc000112480, 0xc000372360) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/widgets/account-wizard.go:603 +0x47 git.sr.ht/~sircmpwn/aerc/lib/ui.(TabContent).Draw(0xc00006e840, 0xc000372360) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/lib/ui/tab.go:154 +0x5c git.sr.ht/~sircmpwn/aerc/lib/ui.(Grid).Draw(0xc0000ac580, 0xc000372300) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/lib/ui/grid.go:117 +0x111 git.sr.ht/~sircmpwn/aerc/widgets.(Aerc).Draw(0xc000159c70, 0xc000372300) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/widgets/aerc.go:101 +0x39 git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00008a4b0, 0x875b00) /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/lib/ui/ui.go:93 +0x11d main.main() /var/tmp/portage/mail-client/aerc-0.1.4/work/aerc-0.1.4/aerc.go:131 +0x3e4

~jbowen 23 days ago

I also get a panic when splitting a tmux pane after starting aerc. Traceback here: https://paste.sr.ht/blob/3896bc98bdb3f558b2fb3b3f4a7725247ddb2e6d

I get this behavior if I build from the 0.1.4 tarball or current trunk.

My steps: - Start a tmux session: tmux new -s - Start aerc: aerc - Split the pane horizontally: <ctrl+b>+" (assuming default tmux keybindings)