Bug 248541 - KMail hang/freeze and requires termination
Summary: KMail hang/freeze and requires termination
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.3
Platform: Slackware Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-20 21:05 UTC by Unknown
Modified: 2015-04-12 10:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
report when trying to start Akonadi (13.30 KB, application/octet-stream)
2011-12-06 12:30 UTC, Alex Fisher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2010-08-20 21:05:04 UTC
Version:           1.13.3 (using KDE 4.4.3) 
OS:                Linux

Kmail randomly hang or freeze while I am typing an email...  The cursor still blinks and I can switch windows but everything is frozen.  Buttons are not responsive, cursor cannot be moved, menus are also frozen...

This requires termination (kill) and results in loss of data.

Reproducible: Sometimes

Steps to Reproduce:
Just reply to an email or create a new email.

Actual Results:  
kmail freeze/hang and requires to be killed. I  suspect that akonadi (who constantly complains of errors, etc) is behind that.

Expected Results:  
Continue to function.

OS: Linux (i686) release 2.6.33.4-smp
Compiler: gcc
Slackware 13.1
kmail 1.13.3
Comment 1 Unknown 2010-08-20 21:09:05 UTC
It now happens every time.  Kontact/kmail is not un-usable...
Comment 2 Unknown 2010-08-20 21:10:11 UTC
(In reply to comment #1)
> It now happens every time.  Kontact/kmail is not un-usable...

I meant is NOW un-usable.... :)
Comment 3 Unknown 2010-08-21 06:05:25 UTC
Several posts on misc forums over the web seems to indicate that Akonadi is responsible for this problem.  Please look at a similar bug filed :http://osdir.com/ml/kdepim-bugs/2010-06/msg00662.html

The person seems to have fixed the problem by killing akonadi but I cannot see any akonadi processes (ps -A) when Kontact/Kmail is running.  Except that, I am experiencing all the same symptoms as the OP of the other bug report.

Again please do not hesitate to ask for information or anything else that can help in fixing this problem.

Thanks!
Comment 4 Unknown 2010-08-23 22:30:57 UTC
I think this should be merged (upon approval from KDE team) with bug https://bugs.kde.org/show_bug.cgi?id=241081
Comment 5 Ariel Garcia 2010-09-13 18:54:23 UTC
I am also affected by this issue, it started happening in the last months (i guess since KDE 4.4, but i might be wrong). I am currently running kmail 1.13.5 on KDE 4.4.5 (Debian packages).

However, it looks to me that it is related to updating some underlying library or KDE component while the KDE session is open (i run Debian testing and update on a daily basis keeping my KDE session open for weeks or months).
Once the problem starts happening, kmail keeps freezing, but the problem gets solved (looks to me at least) by logging-out of the KDE session, making sure no user processes keep running, and starting a new KDE session.

I don't think this has to do with Bug #241081. This one just happens without any remote session nor when sending, just while typing an email.
Comment 6 Unknown 2010-09-13 23:25:55 UTC
I'm not sure either if it is related to bug #241081 but I definitely have the same issue as you have...just while typing an email.

I have not used Kmail in weeks... it is virtually useless on my computer.  Akonadi is also dead so that does not help.
Comment 7 João Eiras 2010-11-10 17:43:28 UTC
I have this problem.
This happens if Akonadi fails to start and I try to send an email.

So to reproduce:
 - open KMail and kill akonadi if it running (akonadictl stop)
 - open a new message window, type something and Send
 -> Complete UI freeze

This is exacerbated by the fact that akonadi is fragile as crystal and crashes often with any minor problem.
Comment 8 Ariel Garcia 2010-12-01 16:49:54 UTC
Ping?

Probably duplicate of http://bugs.kde.org/show_bug.cgi?id=250047
Comment 9 Ariel Garcia 2010-12-08 23:10:01 UTC
Some additional info:

I was able to "reanimate" my apparently frozen kmail by just restarting akonadi!

So: 
- using kmail, new mail, after a while the GUI freezes
- actually GUI was not frozen, it is more like no input at all is accepted, either mouse or kbd: at some point I could see the Inbox panel updating and listing some new mail, even if i couldn't activate any menu or buttons, also cursor didn't blink.

- then i run 
      akonadictl stop
      akonadictl start

- and bingo, kmail was breathing again... :-)

Hope it helps, and that some devel reads this report and switches the status to "confirmed" ;-)
Comment 10 Unknown 2010-12-09 00:50:31 UTC
running akonadictl stop will issue:

D-Bus session bus is not available!
"[
0: akonadictl(_Z11akBacktracev+0x35) [0x8052685]
1: akonadictl() [0x8052b4e]
2: [0xffffe400]
3: /lib/libc.so.6(gsignal+0x47) [0xb70d5a67]
4: /lib/libc.so.6(abort+0x182) [0xb70d72e2]
5: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x84) [0xb74c6dc4]
6: akonadictl(_ZN15FileDebugStream9writeDataEPKcx+0xc4) [0x8053ab4]
7: /usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x8e) [0xb755f48e]
8: /usr/lib/libQtCore.so.4(+0x10c6b5) [0xb75726b5]
9: /usr/lib/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3d) [0xb7573bcd]
10: akonadictl(_ZN6QDebugD1Ev+0x43) [0x804f373]
11: akonadictl(_ZN13AkApplicationC1ERiPPc+0x129) [0x804e2d9]
12: akonadictl(main+0x30) [0x80548d0]
13: /lib/libc.so.6(__libc_start_main+0xe6) [0xb70c0b86]
14: akonadictl() [0x804dd41]
]
"

and akonadictl start will issue:

D-Bus session bus is not available!
"[
0: akonadictl(_Z11akBacktracev+0x35) [0x8052685]
1: akonadictl() [0x8052b4e]
2: [0xffffe400]
3: /lib/libc.so.6(gsignal+0x47) [0xb70f4a67]
4: /lib/libc.so.6(abort+0x182) [0xb70f62e2]
5: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x84) [0xb74e5dc4]
6: akonadictl(_ZN15FileDebugStream9writeDataEPKcx+0xc4) [0x8053ab4]
7: /usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x8e) [0xb757e48e]
8: /usr/lib/libQtCore.so.4(+0x10c6b5) [0xb75916b5]
9: /usr/lib/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3d) [0xb7592bcd]
10: akonadictl(_ZN6QDebugD1Ev+0x43) [0x804f373]
11: akonadictl(_ZN13AkApplicationC1ERiPPc+0x129) [0x804e2d9]
12: akonadictl(main+0x30) [0x80548d0]
13: /lib/libc.so.6(__libc_start_main+0xe6) [0xb70dfb86]
14: akonadictl() [0x804dd41]
]
"

how should i interpret this???
Comment 11 Ariel Garcia 2010-12-09 11:44:14 UTC
Uhm... probably you don't have a session dbus running
   (you can try starting it with "dbus-daemon --fork --session" )
but no clue if that is required for akonadi.

Anyways, did restarting akonadi "unfreeze" your kmail? it works for me repetitively :-)
Comment 12 Unknown 2010-12-10 02:23:18 UTC
I have no clue what is going on here... I tried "dbus-daemon --fork --session" and nothing happens.  Then I tried to start akonadi with akonadictl start and got the same thing as above.

No, restarting akonadi does not unfreeze kmail....
Comment 13 Alex Fisher 2011-12-06 12:30:43 UTC
Created attachment 66434 [details]
report when trying to start Akonadi
Comment 14 Laurent Montel 2015-04-12 10:21:13 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.