~rjarry/aerc#15: 
crash when changing screen resolution

I have not diagnosed this properly. When changing screen resolution, I sometimes get this crash:

goroutine 1 [running]:
runtime/debug.Stack()
        /usr/lib/go-1.17/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
        /usr/lib/go-1.17/src/runtime/debug/stack.go:16 +0x19
main.PanicTermFix(0x0)
        /home/robin/os/aerc/aerc.go:231 +0x45
panic({0x8e55c0, 0xc000020030})
        /usr/lib/go-1.17/src/runtime/panic.go:1047 +0x266
git.sr.ht/~rjarry/aerc/lib/ui.(*Context).Subcontext(0xc0000d64d0, 0xc0002fe0c0, 0xc0000d64d0, 0xa37718, 0xc0001c6d00)
        /home/robin/os/aerc/lib/ui/context.go:47 +0x16e
git.sr.ht/~rjarry/aerc/lib/ui.(*Grid).Draw(0xc0000d64d0, 0xc0002fe0c0)
        /home/robin/os/aerc/lib/ui/grid.go:143 +0x2d5
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Draw(0xc0000d6580, 0xc0002fe0c0)
        /home/robin/os/aerc/widgets/aerc.go:177 +0x2e
git.sr.ht/~rjarry/aerc/lib/ui.(*UI).Tick(0xc0004240f0)
        /home/robin/os/aerc/lib/ui/ui.go:113 +0x1f7
main.main()
        /home/robin/os/aerc/aerc.go:216 +0xa6c
aerc crashed: Attempted to create context with negative offset

I cannot reproduce this consistently.

Status
RESOLVED FIXED
Submitter
~rjarry
Assigned to
No-one
Submitted
3 months ago
Updated
11 days ago
Labels
bug ui

~rjarry REPORTED FIXED 11 days ago

Connor Kuehl referenced this ticket in commit 01528ae1.

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