aerc crashes if I try to view messages with the following error:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x439af75] goroutine 1 [running]: git.sr.ht/~sircmpwn/aerc/widgets.HeaderLayout.forMessage(0xc0000ba1e0, 0x4, 0x4, 0xc0000c2b40, 0x0, 0x0, 0x203000) /Users/matthias/.local/share/aerc/widgets/headerlayout.go:18 +0x125 git.sr.ht/~sircmpwn/aerc/widgets.NewMessageViewer(0xc0000c2460, 0xc0000b41a0, 0xc00018c000, 0xc0000c2b40, 0xc0000d5c28) /Users/matthias/.local/share/aerc/widgets/msgviewer.go:50 +0x61 git.sr.ht/~sircmpwn/aerc/commands/account.ViewMessage.Execute(0xc0000ec3f0, 0xc0004a12f0, 0x1, 0x1, 0x0, 0xc000166e90) /Users/matthias/.local/share/aerc/commands/account/view.go:36 +0x16c git.sr.ht/~sircmpwn/aerc/commands.(*Commands).ExecuteCommand(0xc0000bc180, 0xc0000ec3f0, 0xc0004a12f0, 0x1, 0x1, 0xc00009e050, 0x453d701) /Users/matthias/.local/share/aerc/commands/commands.go:65 +0xfe main.execCommand(0xc0000ec3f0, 0xc00019c0f0, 0xc0004a12f0, 0x1, 0x1, 0xc0004a12f0, 0xc0002a8000) /Users/matthias/.local/share/aerc/aerc.go:58 +0xc5
This happens for every message in my Inbox. Two weeks ago when I tried aerc the first time with the same mailbox on a different computer, I could view messages just fine.
aerc was built from the latest master (version tag
Seems to be related to the official ProtonMail Bridge. It certainly worked in the past, but not anymore. Using hydroxide did fix this issue for me.
msg.RFC822Headeris nil when passed to
forMessage(). I was able to grep around and in
nil. It looks like
textproto.Reader()is returning an error and
headeris only assigned something if there is no error. Basically the error is not handled.
It looks like this was introduced by b83e7c9fa6a0d187a0f20d98d522cff792053cdd on Fri Jun 7 13:56:14 2019. Note the error returned by
While I have some other, unrelated errors when using the official bridge, I can't crash aerc by talking to it (protonmail-brigde v1.2.3)
How did you connect aerc to it exactly?