~typish


#281 Panic on pasting while composing a month ago

Comment by ~typish on ~sircmpwn/aerc2

Turns out it was a combination of: - I had a global keybinding that got triggered when pasting, and switched from compose to another tab - the following pasted characters triggered urlview on a message and later did something else, not sure what, as I cannot reproduce it manually typing.

I wonder if aerc should expose some kind ofpaste interfacing xsel and bypassing these kinds of problems for fields?

#281 Panic on pasting while composing a month ago

Comment by ~typish on ~sircmpwn/aerc2

I further had this panic when pasting with Ctrl-V (my terminal is Kitty) an email address in the To: field: ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7a3d5f]

goroutine 1 [running]: git.sr.ht/~sircmpwn/aerc/lib/ui.(Context).HideCursor(...) /build/aerc-0.2.1/lib/ui/context.go:114 git.sr.ht/~sircmpwn/aerc/widgets.(Terminal).Close(0xc000181c30, 0x93fea0, 0xc0000ae130) /build/aerc-0.2.1/widgets/terminal.go:189 +0x7f git.sr.ht/~sircmpwn/aerc/widgets.(Terminal).flushTerminal(0xc000181c30) /build/aerc-0.2.1/widgets/terminal.go:166 +0x101 git.sr.ht/~sircmpwn/aerc/widgets.(Terminal).Event(0xc000181c30, 0x940520, 0xc0000b8380, 0x7f83d8215840) /build/aerc-0.2.1/widgets/terminal.go:375 +0xde git.sr.ht/~sircmpwn/aerc/widgets.(Aerc).Event(0xc0002e0000, 0x940520, 0xc0000b8380, 0xc0002de300) /build/aerc-0.2.1/widgets/aerc.go:216 +0x28e git.sr.ht/~sircmpwn/aerc/lib/ui.(UI).Tick(0xc0003081e0, 0xc000020000) /build/aerc-0.2.1/lib/ui/ui.go:90 +0xc9 main.main() /build/aerc-0.2.1/aerc.go:172 +0x565 ```

#281 Panic on pasting while composing 2 months ago

Ticket created by ~typish on ~sircmpwn/aerc2

I was editing an email in neovim, and pasted some text; aerc collapsed.

The stacktrace was mangled by the terminal emulator: this is all I could recover:

internal/poll.(*FD).Read(0xc0004dfa40, 0xc00158b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.12.1/share/go/src/internal/poll/fd_unix.go:165 +0x131
os.(*File).read(...)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.12.1/share/go/src/os/file_unix.go:263
os.(*File).Read(0xc001282318, 0xc00158b000, 0x1000, 0x1000, 0x8f, 0x0, 0x0)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.12.1/share/go/src/os/file.go:108 +0x70
git.sr.ht/~sircmpwn/aerc/widgets.NewTerminal.func1(0xc001b4e210, 0xc00121a640)
/build/aerc-0.2.1/widgets/terminal.go:127 +0xd4
created by git.sr.ht/~sircmpwn/aerc/widgets.NewTerminal
/build/aerc-0.2.1/widgets/terminal.go:123 +0xf8

goroutine 853 [chan receive, 18 minutes]:
git.sr.ht/~sircmpwn/aerc/widgets.NewTerminal.func1(0xc001b4e840, 0xc0002c0dc0)
/build/aerc-0.2.1/widgets/terminal.go:124 +0x3c
created by git.sr.ht/~sircmpwn/aerc/widgets.NewTerminal
/build/aerc-0.2.1/widgets/terminal.go:123 +0xf8

goroutine 854 [chan receive, 18 minutes]:
git.sr.ht/~sircmpwn/aerc/widgets.NewTerminal.func1(0xc001b4e9a0, 0xc0002c0e60)
/build/aerc-0.2.1/widgets/terminal.go:124 +0x3c
created by git.sr.ht/~sircmpwn/aerc/widgets.NewTerminal
/build/aerc-0.2.1/widgets/terminal.go:123 +0xf8
[signal SIGSEGV: segmentation violation code=0x2 addr=0x7f820c357000 pc=0x7f8226fa3ccf]

runtime stack:
runtime.throw(0x8c5949, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.12.1/share/go/src/runtime/panic.go:617 +0x72
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.12.1/share/go/src/runtime/signal_unix.go:374 +0x4a9