~migadu/alps#156: 
Hangs on some emails

I sted this out on my Google Apps email and noticed that trying to open some emails causes some hangs, or I didn't wait long enough, either way there's a bit of a bug here I think.

Status
REPORTED
Submitter
~prologic
Assigned to
No-one
Submitted
1 year, 7 months ago
Updated
4 days ago
Labels
bug

~emersion 1 year, 7 months ago

Please share a trace of alps (hit Ctrl+backslash while it's hanging).

~prologic 1 year, 7 months ago

I took a stack trace, except that it's too big to paste here :D

~prologic 1 year, 7 months ago

Here's the stack trace I took but it'll expire in ~10mins (my self-hosted pastebin service is ephemeral):

https://paste.mills.io/p/8Q8jn3hR

I'm not sure how to paste large content here on sr.ht :)

~emersion 1 year, 7 months ago

You can use paste.sr.ht :P

~prologic 1 year, 7 months ago

Oh gawd I really am a sr.ht n00b! :O

Hold on...

~emersion 1 year, 7 months ago

It's stuck in a UID FETCH command for some reason. Maybe try with -debug to understand what's up? Make sure to remove any personal information from the log.

~prologic 1 year, 1 month ago

My sincerest apologies, I haven't had time to get back to debugging this.

I tried a more recent version of alps just doay and ran into the exact same issue, but of course I forgot to start the binary with -debug and then I wasn't able to repro a 2nd time 🤦‍♂️

If I can repro again in debug mode I'll report back with something more concrete, sorry!

~ogarcia 1 year, 1 month ago

I can reproduce it always (using GMAIL as IMAP server):

  1. Pick any post thread and (vĂ­a GMAIL web interface) set last message as unread (in your INBOX folder).
  2. Start alps (in my case simply run alps -debug -theme alps imaps://imap.gmail.com smtps://smtp.gmail.com)
  3. Enter with same GMAIL account
  4. Try to open the unread message.
  5. Client hangs.

I can capture a debug log here https://lesma.eu/vibinujo

~ogarcia 10 months ago

Any news about this? Have you been able to reproduce it? If I can do anything else or help in any way, please let me know.

~kon 10 months ago

I have submitted a relevant patch. Could you report whether it fixes the issue you described?

~ogarcia 10 months ago

I just did some tests now and it seems to work correctly 👌. I will keep it under observation and confirm the results tomorrow.

~ogarcia 10 months ago

After a week of tests all works perfect. ~kon patch fix this issue.

~emersion 4 days ago

Okay, so the issue is that the FETCH command marks the message as read, and causes an unilateral FETCH (FLAGS) response as a side effect.

This is going to be better handled by go-imap v2.

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