~rjarry/aerc#173: 
aerc-startup issue

I was wanting to have the option :split 20 when aerc starts so thought I could put it onto the line:

aerc-startup=aerc :split 20

But this just gives me the following errors:

aerc has encountered a critical error and has terminated. Please help us fix
this by sending this log and the steps to reproduce the crash to:
~rjarry/aerc-devel@lists.sr.ht

Thank you

Version: 0.15.1.r0.g3c1703f +notmuch (go1.20.3 amd64 linux)

This error was also written to: /tmp/aerc-crash-20230501-230406.log
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x561482bcda3c]

goroutine 16 [running]:
git.sr.ht/~rjarry/aerc/log.PanicHandler()
	git.sr.ht/~rjarry/aerc/log/panic-logger.go:51 +0x70f
panic({0x561482dd7e00, 0x56148324f720})
	runtime/panic.go:890 +0x263
git.sr.ht/~rjarry/aerc/lib.(*MessageStore).Selected(...)
	git.sr.ht/~rjarry/aerc/lib/msgstore.go:586
git.sr.ht/~rjarry/aerc/widgets.(*MessageList).Selected(...)
	git.sr.ht/~rjarry/aerc/widgets/msglist.go:391
git.sr.ht/~rjarry/aerc/widgets.(*AccountView).Split(0xc000266460, 0x7f7f88ea7108?)
	git.sr.ht/~rjarry/aerc/widgets/account.go:571 +0x47c
git.sr.ht/~rjarry/aerc/commands/account.Split.Execute({}, 0x2?, {0xc0007b01a0, 0x2, 0xc0007d4eb0?})
	git.sr.ht/~rjarry/aerc/commands/account/split.go:69 +0x225
git.sr.ht/~rjarry/aerc/commands.(*Commands).ExecuteCommand(0xc0007131d8?, 0x561482df0aa0?, {0xc0002af640?, 0x2, 0x4}, 0x7f7f60356100?, 0x10?)
	git.sr.ht/~rjarry/aerc/commands/commands.go:129 +0x30e
main.execCommand(0xc0000000c0, 0xc00023e000, {0xc0002af640, 0x2, 0x4}, 0xc0000dbdb8?, 0x56148273d0c8?)
	git.sr.ht/~rjarry/aerc/main.go:72 +0x22f
main.main.func1({0xc0002af640?, 0x56148260e188?, 0xc000284b90?}, 0x10?, 0x10?)
	git.sr.ht/~rjarry/aerc/main.go:200 +0x45
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Command(0x0?, {0xc0002af640?, 0x56148260be07?, 0x10?})
	git.sr.ht/~rjarry/aerc/widgets/aerc.go:793 +0x67
git.sr.ht/~rjarry/aerc/lib/ipc.(*AercServer).handleMessage(0xc00023c080, 0xc0007a4390)
	git.sr.ht/~rjarry/aerc/lib/ipc/receive.go:128 +0x2b1
git.sr.ht/~rjarry/aerc/lib/ipc.(*AercServer).Serve(0xc00023c080)
	git.sr.ht/~rjarry/aerc/lib/ipc/receive.go:82 +0x6da
created by git.sr.ht/~rjarry/aerc/lib/ipc.StartServer
	git.sr.ht/~rjarry/aerc/lib/ipc/receive.go:36 +0x1d0

Have I done something wrong or is this a bug ?

Status
RESOLVED FIXED
Submitter
~justinesmithies
Assigned to
No-one
Submitted
9 months ago
Updated
20 days ago
Labels
bug

~poldi1405 9 months ago

Can you try adding a delay? So something like sleep 1 && aerc :split 20

~mpldr 9 months ago

We should also think of a way to make sure commands too soon after startup don't tear down aerc.

~justinesmithies 9 months ago*

Yes adding a delay like this sleep 1 && aerc :split 20 works perfectly thank you.

FYI I can get the delay down to 0.5 without causing any issues.

~rjarry REPORTED FIXED 20 days ago

Robin Jarry referenced this ticket in commit fd4dd42.

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