~rjarry/aerc-devel

2 2

panic while sending email

Details
Message ID
<CLWC6TUYQ534.36LCA9MX25KP1@agar>
DKIM signature
missing
Download raw message
I'm running 0.11.0 so perhaps this was already fixed, but I got a crash
when pressing y to send an email. The email was short and opening aerc
back up and trying again worked. Figured I'd leave the trace here in
case it's useful. Might take a look myself this weekend if I get time.

Error: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/lib/go/src/runtime/debug/stack.go:24 +0x65
git.sr.ht/~rjarry/aerc/logging.PanicHandler()
	/builddir/aerc-0.11.0/logging/panic-logger.go:45 +0x64b
panic({0xa5d240, 0xc00003e708})
	/usr/lib/go/src/runtime/panic.go:844 +0x258
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).focus(0xc000388000, {0x0?, 0x0})
	/builddir/aerc-0.11.0/widgets/aerc.go:466 +0x139
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).BeginExCommand.func2()
	/builddir/aerc-0.11.0/widgets/aerc.go:497 +0x4c
git.sr.ht/~rjarry/aerc/widgets.(*ExLine).Event(0xc0006fc000, {0xb883c0?, 0xc00004c120?})
	/builddir/aerc-0.11.0/widgets/exline.go:82 +0xd1
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Event(0x388000?, {0xb883c0?, 0xc00004c120?})
	/builddir/aerc-0.11.0/widgets/aerc.go:241 +0x39c
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).simulate(0xc000388000, {0xc000375500, 0x6, 0x417368?})
	/builddir/aerc-0.11.0/widgets/aerc.go:230 +0x8d
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Event(0xc000388000, {0xb883c0?, 0xc0000bc960?})
	/builddir/aerc-0.11.0/widgets/aerc.go:258 +0x378
git.sr.ht/~rjarry/aerc/lib/ui.(*UI).Tick(0xc00009a050)
	/builddir/aerc-0.11.0/lib/ui/ui.go:101 +0x195
main.main()
	/builddir/aerc-0.11.0/aerc.go:227 +0xb14
Details
Message ID
<CLWD2QEKMUHP.2HCWIGLX0OKDO@marty>
In-Reply-To
<CLWC6TUYQ534.36LCA9MX25KP1@agar> (view parent)
DKIM signature
missing
Download raw message
Dakota Walsh, Aug 03, 2022 at 12:54:
> I'm running 0.11.0 so perhaps this was already fixed, but I got a crash
> when pressing y to send an email. The email was short and opening aerc
> back up and trying again worked. Figured I'd leave the trace here in
> case it's useful. Might take a look myself this weekend if I get time.
>
> Error: runtime error: index out of range [1] with length 1

Hi,

this has been fixed in this series:

https://lists.sr.ht/~rjarry/aerc-devel/patches/34050

This will be included in 0.12.0.
Details
Message ID
<CLWOD184QMFV.145J8NJLPM3F@agar>
In-Reply-To
<CLWD2QEKMUHP.2HCWIGLX0OKDO@marty> (view parent)
DKIM signature
missing
Download raw message
That's great news! Thanks for all your hard work on aerc!
Reply to thread Export thread (mbox)