unity-mail exits silently for apparently no reason

Bug #887394 reported by klonuo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity Mail
Fix Released
Medium
Dmitry Shachnev

Bug Description

Some days ago, I noticed that I'm not notified about incoming mails, and it turned out that unity-mail, although run at start-up, wasn't running (indicator wasn't there)

After witnessing this couple of times, I thought to run it from terminal and see if there will be some message when unity-mail disappears. There was indeed a message and here it is:

-----------------------------------------------------------
command: EXAMINE => socket error: EOF
unity-mail: ImapLib error occured in connection #0
Traceback (most recent call last):
  File "/usr/bin/unity-mail", line 716, in <module>
    UnityMail()
  File "/usr/bin/unity-mail", line 419, in __init__
    loop.run()
KeyboardInterrupt
-----------------------------------------------------------

I have no idea how KeyboardInterrupt might have happened, and happens after running unity-mail for some undefined time

I thought to report also my unity-mail version, but there seems to be another bug - on line 475 in /usr/bin/unity-mail this line:

print('Unity Mail, version %d' % app_version)

'app_version' variable is string and formater asks for number. This is the string: 'Unity Mail, version 0.9.1.2' on Ubuntu 11.04

klonuo (klonuo)
summary: - unity-mail exist silently for apparently no reason
+ unity-mail exits silently for apparently no reason
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I know about it. This is a regression introduced in 0.9, but I don't know yet what can cause that KeyboardInterrupt's. The latest version has a handler for such KeyboardInterrupt's, but it doesn't work always.

Changed in unity-mail:
assignee: nobody → Dmitry Shachnev (mitya57)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

> File "/usr/bin/unity-mail", line 419, in __init__
> loop.run()

It seems that you use not the most recent version (0.9.1.2). In this version, line 419 is "client.close()". And also there exists a handler (see http://paste.ubuntu.com/731958/). I will now improve that handler a bit because when some SSL errors occur, all connections must be reset.

Regarding crash on version display - I've committed a fix now.

Changed in unity-mail:
importance: High → Medium
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Done!

Changed in unity-mail:
status: In Progress → Fix Committed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

The fix will be now available in my test ppa (ppa:mitya57/test1, unity-mail version 0.9.3).
You can also download the .deb from https://launchpad.net/~mitya57/+archive/test1/+packages and test if it works fine.

Revision history for this message
klonuo (klonuo) wrote :

I run it for some hours without issue, so I guess you nailed it. Thanks for quick fix

As for version I was running before, I don't know - I use this PPA and Update Manager and sure I didn't touch the code. Except for %s in version report

Cheers

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Copied to main PPA.

Changed in unity-mail:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.