Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Progress Indicator spinning forever

#288

I often notice the progress indicator newer stopping after syncing with an IMAP server. Restarting mailmate often fixes it. I'm using Version 1.4.3 (3023).

Reported by Tobias Ottenweller · September 30th, 2012 @ 03:53 PM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny

    I haven't seen this myself. When it happens could you then try to select the IDLE connection in the Activity Viewer and send me the last part of the log (can be seen when dragging the split view divider at the bottom of the Activity Viewer window). Thanks.

    October 1st, 2012 @ 06:45 AM

  2. Tobias Ottenweller
    Tobias Ottenweller

    The thing now also happened at my gmail account. In the upper part of the activity viewer at the IMAP entry it shows:

    <empty line>
    S21 IDLE
    D105 UID FETCH 157:* (UID)
    

    While selecting the line with no text in it the lower part displays the following:

    Synchronizing mailbox: INBOX/davical
    Selecting mailbox: INBOX/davical
    Clearing connection to imap.googlemail.com
    Trying to connect to imap.googlemail.com on port 993
    Successful connection.
    Initiating SSL/TLS...
    

    Selecting the IDLE line the last lines are the following:

    S: H19 OK Success
    C: S20 NOOP
    S: S20 OK Success
    Running IDLE (keeping a live connection)
    C: S21 IDLE
    S: + idling
    S: * 2662 EXISTS
    Warning: Unnecessary EXISTS response received.
    S: * 2662 EXISTS
    Warning: Unnecessary EXISTS response received.
    

    October 1st, 2012 @ 09:19 PM

  3. Tobias Ottenweller
    Tobias Ottenweller

    I also did a little bit of observing. While the indicator keeps spinning MailMate still receives mails from corresponding IMAP account. But MailMate won't notify me via playing a sound or displaying a notification.

    October 1st, 2012 @ 09:23 PM

  4. benny
    benny

    That makes sense since MailMate won't play the sound until the related account is fully synchronized. Apparently MailMate is hanging in the SSL handshake when trying to connect to the server. I believe I've seen this issue on 10.5. I've never seen it on 10.7. What is your OS version?

    The handshake attempt should time out, but that does not seem to happen. The handshake is handled by the openssl library and there may not be anything I can (easily) do about that. Does it happen often?

    October 2nd, 2012 @ 07:18 AM

  5. Tobias Ottenweller
    Tobias Ottenweller

    I'm on Mountain Lion (10.8.2).

    But I think I found what was causing it. Recently I got a new server and I migrated my mail setup to this server. The SSL certificate I'm currently using was not valid and I never told the system to trust it. So I had to confirm it every time I launched MailMate.

    Now my local machine trusts my server certificate and the problems are gone. So I guess MailMate or OpenSSL was stuck at the point waiting for the user to decide wether the certificate/server is trustworthy or not. But my theory is broken since the endless spinning progress indicator thing also happened on a gmail account.

    October 8th, 2012 @ 03:25 PM

  6. benny
    benny

    Is this still an issue? (Sorry for the late follow-up.)

    October 9th, 2013 @ 01:07 PM

  7. Tobias Ottenweller
    Tobias Ottenweller

    Yes, this is still a problem.

    October 13th, 2013 @ 12:19 PM

  8. benny
    benny

    Are you on the latest beta of MailMate now?

    What I previously wrote is unfortunately still true: “The handshake attempt should time out, but that does not seem to happen. The handshake is handled by the openssl library and there may not be anything I can (easily) do about that.”

    There might be something in your setup that triggers this problem more often than for other users (I have no other reports). A flaky internet connection perhaps?

    The most likely fix for this will be if I switch from OpenSSL to an Apple framework (I should do this for other reasons, but it is a non-trivial change).

    October 14th, 2013 @ 07:13 AM

  9. Tobias Ottenweller
    Tobias Ottenweller

    I'm running the latest beta.

    I also observed this issues again. I don't think flaky internet connections are causing the issue. It happens a lot when waking up my macbook from sleep and MailMate is going to reconnect? to the servers.

    October 21st, 2013 @ 09:37 AM

  10. benny
    benny

    Is it a particular account? Or any account?

    If you use the Activity Viewer, do you then still have something hanging after this line:

    Initiating SSL/TLS...
    

    October 21st, 2013 @ 09:40 AM

  11. Tobias Ottenweller
    Tobias Ottenweller

    Random accounts. Couldn't say that it is happening only on a particularly one.

    Still kind of the same problems. One account is stuck right at this momenent:

    'R5 IDLE':

    Synchronizing mailbox (attempting to do it quickly): Drafts
    Selecting mailbox: Drafts
    Clearing connection to <br> Trying to connect to <server> on port 993<br> Successful connection.<br> Initiating SSL/TLS...<\/p> <p>While copying over the log the state changed and the account is now unstuck again. But another account is now spinning forever. See attached file.<\/p>

    October 21st, 2013 @ 09:57 AM

  12. benny
    benny

    Stopping after IDLE is fine. It is supposed to hang waiting for new messages. And this should not result in an active spinner.

    It might take some time for Initiating SSL/TLS... to complete.

    The interesting part is probably what appears to be the hanging after LOGOUT statements. If you think you can reliably reproduce that state then I could try adding some additional debug output (to the logs).

    Anything special about your network setup? Slow/Fast internet connection?

    October 21st, 2013 @ 10:05 AM

  13. Tobias Ottenweller
    Tobias Ottenweller

    Sorry I'm not able to reproduce those issues. I'm usually on a 16Mbit connection. Nothing special about it.

    I also switched to Mavericks right after it got released. Not having any issues since than.

    I guess you can close this ticket since nobody else seems to have this problems.

    November 9th, 2013 @ 11:06 AM

  14. benny
    benny
    • State changed from new to cantreproduce

    November 9th, 2013 @ 02:13 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.