Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1153861 > unrolled thread
| Started by | Pelle <pelle@riseup.net> |
|---|---|
| First post | 2023-07-12 11:20 +0200 |
| Last post | 2023-07-14 21:10 +0200 |
| Articles | 13 — 5 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#1040907: aerc: Freeze when pasting to body on email compose Pelle <pelle@riseup.net> - 2023-07-12 11:20 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-13 19:40 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose "Robin Jarry" <robin@jarry.cc> - 2023-07-14 18:00 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 18:10 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose "pelle" <pelle@riseup.net> - 2023-07-14 18:30 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 19:20 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 19:40 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 20:00 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 20:30 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 20:10 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose "Koni Marti" <koni.marti@gmail.com> - 2023-07-14 20:20 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 20:40 +0200
Bug#1040907: aerc: Freeze when pasting to body on email compose Nilesh Patra <nilesh@debian.org> - 2023-07-14 21:10 +0200
| From | Pelle <pelle@riseup.net> |
|---|---|
| Date | 2023-07-12 11:20 +0200 |
| Subject | Bug#1040907: aerc: Freeze when pasting to body on email compose |
| Message-ID | <GQEaR-9v1-11@gated-at.bofh.it> |
Package: aerc Version: 0.15.2-1 Severity: normal Dear aerc maintainer, I find that aerc almost always freezes when pasting into the compose area. It can easily be reproduced here: * Open aerc. * Compose an email. * Move cursor from headers onto the email body compose area. * In another window, open a text editor, enter "hello world" 100 times and copy it. * Back in aerc, paste into the compose area by `SHIFT+INSERT` * Some of the text will be pasted, but then aerc will get stuck, sometimes like "hell|" * Aerc stops responding to any input, including `CTRL+C` I have tested an confirmed this is an issue whether using vim or nvim text editor, and whether using kitty, alacritty or foot terminal emulator. -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.3.0-2-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages aerc depends on: ii libc6 2.37-5 ii libnotmuch5 0.37-1+b1 Versions of packages aerc recommends: ii dante-client 1.4.2+dfsg-7 ii gnupg 2.2.40-1.1 pn w3m <none> Versions of packages aerc suggests: ii notmuch 0.37-1+b1 -- no debconf information
[toc] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-13 19:40 +0200 |
| Message-ID | <GR8sh-uSh-9@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
Hi, On Wed, 12 Jul 2023 11:09:03 +0200 Pelle <pelle@riseup.net> wrote: > Package: aerc > Version: 0.15.2-1 > Severity: normal > > I find that aerc almost always freezes when pasting into the compose area. > > It can easily be reproduced here: > * Open aerc. > * Compose an email. > * Move cursor from headers onto the email body compose area. > * In another window, open a text editor, enter "hello world" 100 times and copy it. > * Back in aerc, paste into the compose area by `SHIFT+INSERT` > * Some of the text will be pasted, but then aerc will get stuck, sometimes like "hell|" > * Aerc stops responding to any input, including `CTRL+C` > > I have tested an confirmed this is an issue whether using vim or nvim text editor, and whether using kitty, alacritty or foot terminal emulator. Thanks for reporting this, and I can confirm the behavior. @Robin, is this an issue known to you as upstream? Could you please take a look at this? Best, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | "Robin Jarry" <robin@jarry.cc> |
|---|---|
| Date | 2023-07-14 18:00 +0200 |
| Message-ID | <GRtn3-cNx-7@gated-at.bofh.it> |
| In reply to | #1154064 |
Nilesh Patra, Jul 13, 2023 at 19:27: > Hi, > > On Wed, 12 Jul 2023 11:09:03 +0200 Pelle <pelle@riseup.net> wrote: > > Package: aerc > > Version: 0.15.2-1 > > Severity: normal > > > > I find that aerc almost always freezes when pasting into the compose area. > > > > It can easily be reproduced here: > > * Open aerc. > > * Compose an email. > > * Move cursor from headers onto the email body compose area. > > * In another window, open a text editor, enter "hello world" 100 times and copy it. > > * Back in aerc, paste into the compose area by `SHIFT+INSERT` > > * Some of the text will be pasted, but then aerc will get stuck, sometimes like "hell|" > > * Aerc stops responding to any input, including `CTRL+C` > > > > I have tested an confirmed this is an issue whether using vim or nvim text editor, and whether using kitty, alacritty or foot terminal emulator. > > Thanks for reporting this, and I can confirm the behavior. @Robin, is > this an issue known to you as upstream? > Could you please take a look at this? Hi Nilesh, I cannot reproduce this but maybe Tim can have a look. What editor is this?
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 18:10 +0200 |
| Message-ID | <GRtwK-d68-5@gated-at.bofh.it> |
| In reply to | #1154206 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 05:49:41PM +0200, Robin Jarry wrote:
> I cannot reproduce this but maybe Tim can have a look.
This is an upstream bug, and I can repro it by building aerc via make,
i.e. there are no debian go packages at play here.
Interestingly, this bug does not get triggered when I use micro as my
editor (a golang based text editor).
Here's the way I could reproduce:
$ for in in {0..100}; do echo 'hello world' >> /tmp/hwl; done
$ cat /tmp/hwl | xclip -sel clipboard
$ EDITOR=vim ./aerc
:compose
Goto the body and try paste using ctrl+shift+v or shift+Ins (whatever
bindings are default for your terminal). You'll see it hanging --
sometimes with half-pasted text.
I get the same result when I try with EDITOR=nano.
Best,
Nilesh
[toc] | [prev] | [next] | [standalone]
| From | "pelle" <pelle@riseup.net> |
|---|---|
| Date | 2023-07-14 18:30 +0200 |
| Message-ID | <GRtQ6-dcv-1@gated-at.bofh.it> |
| In reply to | #1153861 |
> Robin and I are both on wayland...I'm guessing with xclip you are on X? I wonder > if that comes into play at all? I'm having the issue in Sway. I've noticed that the freeze happens in vim when pasting with `CTRL+V` or `SHIFT+INSERT` while pasting works fine with `p`.
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 19:20 +0200 |
| Message-ID | <GRuCt-dIk-1@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 11:19:32AM -0500, Tim Culverhouse wrote: > I also can't repro. I tried pasting "hello world\n"x100, and "hello world"x100 > (all on the same line), both in vim and nvim, and in foot and wezterm - all of > those combinations work. I tried with qterminal, kitty and deepin-terminal and I could repro it in all the three. I really doubt if it is specific to terminal. And... I tried with wezterm. It worked on first try, but on trying to paste the text 2-3 times in a row (on the same compose area) I'm able to see a hang. Are you using debian though? > Robin and I are both on wayland...I'm guessing with xclip you are on X? I wonder > if that comes into play at all? It does not. I tried with a KDE with wayland now, and can repro. Best, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 19:40 +0200 |
| Message-ID | <GRuVP-dOT-15@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 12:25:37PM -0500, Tim Culverhouse wrote: > On Fri Jul 14, 2023 at 12:14 PM CDT, Nilesh Patra wrote: > > And... I tried with wezterm. It worked on first try, but on trying to > > paste the text 2-3 times in a row (on the same compose area) I'm able to > > see a hang. > > Are you in insert mode when pasting? Ofcourse! > > Are you using debian though? > > No, I'm on Arch > (btw). ^^^ Lol. Best, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 20:00 +0200 |
| Message-ID | <GRvfb-dVr-3@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
I fiddled a bit and noticed that it works OK on aerc 0.14.0 and I notice the odd behavior on aerc 0.15.0. Something changed between these two which causes it to explode. Best, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 20:30 +0200 |
| Message-ID | <GRvId-ekH-9@gated-at.bofh.it> |
| In reply to | #1154230 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 11:22:09PM +0530, Nilesh Patra wrote:
> I fiddled a bit and noticed that it works OK on aerc 0.14.0 and I notice
> the odd behavior on aerc 0.15.0.
>
> Something changed between these two which causes it to explode.
I did a bisect meanwhile and found the commit that broke it.
Didn't review the diff but probably some race condition sneeked in
somewhere.
c7b122f4c4a87cd54402c78465e1a5c882f37aeb is the first bad commit
commit c7b122f4c4a87cd54402c78465e1a5c882f37aeb
Author: Tim Culverhouse <tim@timculverhouse.com>
Date: Sun Apr 23 08:01:23 2023 -0500
tcell-term: upgrade to latest release
Upgrade tcell-term to latest release.
This is a complete rewrite of tcell-term, and includes many minor bug
fixes and overall improvements. Notably:
- Improved parsing
- One fewer goroutine
- Improved API
- Improved redraw messaging
- Improved key support
- Improved mouse support
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry<robin@jarry.cc>
go.mod | 6 +++---
go.sum | 10 +++++++---
widgets/terminal.go | 35 +++++++++++++++++++----------------
3 files changed, 29 insertions(+), 22 deletions(-)
Best,
Nilesh
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 20:10 +0200 |
| Message-ID | <GRvoR-ee5-1@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 07:47:33PM +0200, Robin Jarry wrote: > After aerc has died, share the trace.log file contents. Ideally via > paste service, lists.sr.ht bounce emails that have attachments. There you go https://pb.envs.net/?816fb8c61575e2ba#4kD2xS4wJMGrsCd8tBhPfqHDJZ7qeM6qERaobgoYj46F Best, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | "Koni Marti" <koni.marti@gmail.com> |
|---|---|
| Date | 2023-07-14 20:20 +0200 |
| Message-ID | <GRvyx-eho-1@gated-at.bofh.it> |
| In reply to | #1154234 |
On Fri Jul 14, 2023 at 7:59 PM CEST, Nilesh Patra wrote:
> On Fri, Jul 14, 2023 at 07:47:33PM +0200, Robin Jarry wrote:
> > After aerc has died, share the trace.log file contents. Ideally via
> > paste service, lists.sr.ht bounce emails that have attachments.
>
> There you go
>
> https://pb.envs.net/?816fb8c61575e2ba#4kD2xS4wJMGrsCd8tBhPfqHDJZ7qeM6qERaobgoYj46F
I can reproduce the issue on the released version (0.15.2). However, it
seems fixed on current master. I think commit 9a20640f ("ui: avoid races
with queue redraw") fixed this issue as well.
If I read your log correctly, you are running 0.15.0. Could you maybe
try the latest master?
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 20:40 +0200 |
| Message-ID | <GRvRU-enK-9@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 08:13:16PM +0200, Robin Jarry wrote: > Nilesh Patra, Jul 14, 2023 at 19:59: > > There you go > > > > https://pb.envs.net/?816fb8c61575e2ba#4kD2xS4wJMGrsCd8tBhPfqHDJZ7qeM6qERaobgoYj46F > > Thanks a lot that helps. It looks like there is a deadlock due to two > goroutines trying to interact with the terminal: I'm going ahead with an upload in debian with this patch backported. From a distro pov I consider this a major breakeage. Given that aerc is designed to facilitate patch workflow as a goal, it makes it useless if I can't paste more than 4-5 lines in one go. If you disagree, feel free to revert the upload. You have the rights. Best, Nilesh
[toc] | [prev] | [next] | [standalone]
| From | Nilesh Patra <nilesh@debian.org> |
|---|---|
| Date | 2023-07-14 21:10 +0200 |
| Message-ID | <GRwkV-eMX-1@gated-at.bofh.it> |
| In reply to | #1153861 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 14, 2023 at 09:02:31PM +0200, Robin Jarry wrote: > Nilesh Patra, Jul 14, 2023 at 20:35: > > On Fri, Jul 14, 2023 at 08:13:16PM +0200, Robin Jarry wrote: > > > Nilesh Patra, Jul 14, 2023 at 19:59: > > > > There you go > > > > > > > > https://pb.envs.net/?816fb8c61575e2ba#4kD2xS4wJMGrsCd8tBhPfqHDJZ7qeM6qERaobgoYj46F > > > > > > Thanks a lot that helps. It looks like there is a deadlock due to two > > > goroutines trying to interact with the terminal: > > > > I'm going ahead with an upload in debian with this patch backported. > > From a distro pov I consider this a major breakeage. Given that aerc is > > designed to facilitate patch workflow as a goal, it makes it useless if > > I can't paste more than 4-5 lines in one go. > > > > If you disagree, feel free to revert the upload. You have the rights. > > Sure thing. It is certainly less risky than tagging a release in a rush. Thanks a lot for quick response and the patch! Best, Nilesh
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web