~sircmpwn/aerc2#478: 
panic: Attempted to create context with negative offset

Occasionally, I will leave aerc running as I code other projects, and come back to the following error:

[koeng@kgnode2 ~]$ aerc
panic: Attempted to create context with negative offset

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Context).Subcontext(0xc0002864e0, 0x0, 0xffffffffffffffff, 0xbf, 0x1, 0xc00004bd70)
        git.sr.ht/~sircmpwn/aerc/lib/ui/context.go:47 +0x1e7
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0001684d0, 0xc0002864e0)
        git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:143 +0x256
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc000168580, 0xc0002864e0)
        git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:176 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc000260870, 0xc000020000)
        git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0x1d1
main.main()
        git.sr.ht/~sircmpwn/aerc/aerc.go:194 +0x697

aerc crashes, but tends not to crash when I am using it. I am using Arch Linux running the i3 window manager, running aerc in st. Any possible fixes?

Status
REPORTED
Submitter
~koeng
Assigned to
No-one
Submitted
3 months ago
Updated
7 days ago
Labels
No labels applied.

~samhh 7 days ago

I'm seeing the same a lot today. I'm on Arch under xmonad in Alacritty.

It seems to happen for me after opening URLs in urlscan and focusing away from aerc.

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