~rucikir


#449 panic SIGSEGV: pty.StartWithAttrs 2 months ago

Comment by ~rucikir on ~sircmpwn/aerc2

I encountered this error too, running latest f9bba3d1.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x55dd28569c72]

goroutine 1 [running]:
github.com/creack/pty.StartWithAttrs(0x0, 0xc00001b8e8, 0xc0007aa280, 0xc0007c6000, 0x0, 0x0)
	github.com/creack/pty@v1.1.10/run.go:57 +0xb2
git.sr.ht/~sircmpwn/aerc/widgets.(*Terminal).Draw(0xc0004320b0, 0xc000412c90)
	git.sr.ht/~sircmpwn/aerc/widgets/terminal.go:241 +0x8de
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0003676b0, 0xc0004129f0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:144 +0x277
git.sr.ht/~sircmpwn/aerc/widgets.(*Composer).Draw(0xc000998120, 0xc0004129f0)
	git.sr.ht/~sircmpwn/aerc/widgets/compose.go:309 +0x4a
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc000264bd0, 0xc0004129f0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/tab.go:394 +0x7c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0000be4d0, 0xc00011e180)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:144 +0x277
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc0000be580, 0xc00011e180)
	git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:176 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0003b0000, 0xc000120000)
	git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0x1d1
main.main()
	git.sr.ht/~sircmpwn/aerc/aerc.go:194 +0x697

I seems that term.cmd is nil in this line:

tty, err := pty.StartWithAttrs(term.cmd, &winsize, &syscall.SysProcAttr{Setsid: true, Setctty: true, Ctty: 1})

but that’s weird because with the test just before, the function should have exited before reaching this line.

#397 SEGFAULT in aerc/widgets.(*MessageList).Draw 2 months ago

Comment by ~rucikir on ~sircmpwn/aerc2

I’ve ran into this issue once again; the trace I’m getting has changed and matches the previous message. I think it happened when one message hasn’t loaded or is being send, and I quit aerc (but I’m not sure).

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x562457762ced]

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/widgets.(*MessageList).Draw(0xc000249da0, 0xc00080e6c0)
	git.sr.ht/~sircmpwn/aerc/widgets/msglist.go:108 +0x62d
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc000154630, 0xc00080e630)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:144 +0x277
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).Draw(0xc000286bd0, 0xc00080e630)
	git.sr.ht/~sircmpwn/aerc/widgets/account.go:139 +0x3b
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc000286b60, 0xc00080e630)
	git.sr.ht/~sircmpwn/aerc/lib/ui/tab.go:394 +0x7c
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc0001544d0, 0xc000226090)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:144 +0x277
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc000154580, 0xc000226090)
	git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:176 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00026c820, 0xc0002c6000)
	git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0x1d1
main.main()
	git.sr.ht/~sircmpwn/aerc/aerc.go:194 +0x697

it seems to be because msg.Envelope is nil on the indicated line

https://git.sr.ht/~sircmpwn/aerc/tree/743683a0c19c75ba87d65b6d0c9be117d0224a3e/widgets/msglist.go#L108

Indeed, that seems to be the case.

#397 SEGFAULT in aerc/widgets.(*MessageList).Draw 7 months ago

bug added by ~rucikir on ~sircmpwn/aerc2

#397 SEGFAULT in aerc/widgets.(*MessageList).Draw 7 months ago

Ticket created by ~rucikir on ~sircmpwn/aerc2

Hi!

I encountered this crash with aerc 0.3.0.r183.g61e9940. I don’t know how to reproduce it, I’ll add more information if I get this bug again.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x562f10e3326b]

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/widgets.(*MessageList).Draw(0xc000033440, 0xc0009084e0)
	git.sr.ht/~sircmpwn/aerc/widgets/msglist.go:112 +0x2cb
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc000136580, 0xc0009081b0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:142 +0x257
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).Draw(0xc000209a40, 0xc0009081b0)
	git.sr.ht/~sircmpwn/aerc/widgets/account.go:142 +0x3b
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc000209960, 0xc0009081b0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/tab.go:393 +0x61
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc000136420, 0xc00010abd0)
	git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:142 +0x257
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc0001364d0, 0xc00010abd0)
	git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:172 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00007e0f0, 0xc0001ee000)
	git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0xf8
main.main()
	git.sr.ht/~sircmpwn/aerc/aerc.go:192 +0x674

#369 Unable to select text with mouse-enabled 9 months ago

Comment by ~rucikir on ~sircmpwn/aerc2

Oh. Thanks.

#369 Unable to select text with mouse-enabled 9 months ago

bug added by ~rucikir on ~sircmpwn/aerc2

#369 Unable to select text with mouse-enabled 9 months ago

Ticket created by ~rucikir on ~sircmpwn/aerc2

Hi! I’m using aerc-git from the AUR. I noticed that when I set mouse-enabled=true in the config file, I can’t select text in the terminal. When mouse-enabled is set to false, I can select text as usual, and copy from the terminal. If it’s impossible to have the best of both worlds (mouse events and text selection), then I think a warning in the configuration would be appreciated. I reproduced this bug with termite and alacritty.

Thanks!