#288 new
Tobias Ottenweller

Progress Indicator spinning forever

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

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).

Comments and changes to this ticket

  • benny

    benny October 1st, 2012 @ 06:45 AM

    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.

  • Tobias Ottenweller

    Tobias Ottenweller October 1st, 2012 @ 09:19 PM

    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.
    
  • Tobias Ottenweller

    Tobias Ottenweller October 1st, 2012 @ 09:23 PM

    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.

  • benny

    benny October 2nd, 2012 @ 07:18 AM

    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?

  • Tobias Ottenweller

    Tobias Ottenweller October 8th, 2012 @ 03:25 PM

    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.

  • benny

    benny October 9th, 2013 @ 01:07 PM

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

  • Tobias Ottenweller

    Tobias Ottenweller October 13th, 2013 @ 12:19 PM

    Yes, this is still a problem.

  • benny

    benny October 14th, 2013 @ 07:13 AM

    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).

  • Tobias Ottenweller

    Tobias Ottenweller October 21st, 2013 @ 09:37 AM

    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.

  • benny

    benny October 21st, 2013 @ 09:40 AM

    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...
    
  • Tobias Ottenweller

    Tobias Ottenweller October 21st, 2013 @ 09:57 AM

    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>

  • benny

    benny October 21st, 2013 @ 10:05 AM

    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?

  • Tobias Ottenweller

    Tobias Ottenweller November 9th, 2013 @ 11:06 AM

    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.

  • benny

    benny November 9th, 2013 @ 02:13 PM

    • State changed from “new” to “cantreproduce”

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages