Bug 297658 - kmail mail editor window hangs when sending a mail
Summary: kmail mail editor window hangs when sending a mail
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.8
Platform: openSUSE Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-04-07 14:20 UTC by Thomas Arend
Modified: 2018-10-27 02:35 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen shot of hanging mail editor window (99.72 KB, image/png)
2012-04-07 14:20 UTC, Thomas Arend
Details
authenticity check dialogue which appears only again since nepomuk semantic desktop has been disabled (34.50 KB, image/png)
2012-10-11 13:08 UTC, Christian Heller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Arend 2012-04-07 14:20:18 UTC
Created attachment 70211 [details]
Screen shot of hanging mail editor window

After click on send the mail editor window hangs.

When closing the window the user is asked if he wants zu save the message as draft, discard the message or abort.

See screen shot
Comment 1 Lukasz 2012-05-09 09:53:54 UTC
Related bug:
https://bugs.kde.org/show_bug.cgi?id=296353
Comment 2 Thomas Arend 2012-06-02 16:17:21 UTC
Still in 4.8.3
Comment 3 sombragris 2012-07-16 03:07:44 UTC
I can confirm this behavior in KDE 4.9 RC1. I might add that this behavior is not constant; i.e., kmail sometimes sends the message, sometimes it doesn't. Please fix ! Thanks :)
Comment 4 Laurent Montel 2012-07-16 05:59:23 UTC
ok but perhaps you can give more informations...
Comment 5 Lukasz 2012-07-16 08:01:59 UTC
With semantic desktop disabled I don't see this issue.
Comment 6 sombragris 2012-07-16 13:49:59 UTC
Hi Laurent, thanks for your help. I'll try to give you as much information as I can remember.

My setup has the full semantic desktop enabled. Sometimes, Kmail sends the mail without problem. Sometimes, it hangs. If that is the case, then Kmail either has the compose window greyed out indefinitely or, sometimes, it sends it after 20-30 min (!).

My accounts are all POP3, i.e., I'm no IMAP user. My sending account is a regular SMTP account.

Sometimes I've observed that this behavior is more likely in mails with attachments of a significant size (~>300 kb) but again, this is not essential.

Right now, I've just wanted to forward an old mail to a client and the behavior happened again. The compose window is greyed out and I... am waiting for Kmail to send it.

Finally, I have mail folders of a very large size; I have mail there from the KDE 2.1 days, back in 2000-2001, so you can figure.

I hope this helps. Thanks :)
Comment 7 sombragris 2012-07-16 14:38:13 UTC
I would like to add that I experience this behavior in both KMail as a standalone app and the Mail component of Kontact.
Comment 8 sombragris 2012-07-17 16:52:52 UTC
Yesterday I wanted to send an email with an attachment of 915 KB. Not to be surprised, I got the greyed out compose window again after pressing "Send". I left it out on purpose, and went on to do other things.

About one hour later, the mail finally got sent.
Comment 9 sombragris 2012-07-20 02:23:00 UTC
I tried to open Kmail and Kontact in the Razor-qt desktop environment. I got the same problems. Looking into the matter, I spotted these:

eduardo  18607  2.2  3.5 2213572 108188 pts/0  Sl   22:14   0:06 kmail
eduardo  18668  0.3  1.2 459248 38360 ?        S    22:15   0:00 /usr/bin/akonadi_archivemail_agent --identifier akonadi_archivemail_agent
eduardo  18676  5.4  1.1 308492 36476 ?        Sl   22:15   0:15 /usr/bin/akonadi_agent_launcher akonadi_maildir_resource akonadi_maildir_resource_1
eduardo  18677  0.1  0.7 280388 22492 ?        S    22:15   0:00 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
eduardo  18678  0.3  1.3 466800 40568 ?        S    22:15   0:01 /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mailfilter_agent
eduardo  19050  0.0  0.0   7068   964 pts/0    R+   22:19   0:00 grep mail

There are a series of akonadi agents. I closed Kmail (and it crashed). Then I issued a "pkill akonadi" (I felt confident doing this since I wasn't using KDE). Then, I restarted Kmail, and I was able to send one or two messages; but for the third or four, Kmail hung again.

I tried to open the akonadi console to make some sense of what happened, but sorry, it is beyond my level of expertise ;-). Thanks.
Comment 10 sombragris 2012-08-13 15:20:40 UTC
Hi, I can tell that the occurrence of this behavior reduced noticeably with KDE 4.9 final. However, it is still present. Right now I was sending an email with a 500 KB attachment and I got stung by this bug again. Thus, I exited Kontact and then called Kmail. It should be safe, because I exited Kontact, but no. Dr. Konqui  promptly informed me that Kontact (which I supposedly exited previously) crashed. This is the crash report:

Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f92171157c0 (LWP 4290))]

Thread 5 (Thread 0x7f91fd9e3700 (LWP 4307)):
#0  0x00007f921159da94 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f921656ef9d in ?? () from /usr/lib64/qt/lib/libQtWebKit.so.4
#2  0x00007f921656f0a9 in ?? () from /usr/lib64/qt/lib/libQtWebKit.so.4
#3  0x00007f9211599eae in start_thread () from /lib64/libpthread.so.0
#4  0x00007f9210837dad in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f91fd0e2700 (LWP 4308)):
#0  0x00007f921082f28f in poll () from /lib64/libc.so.6
#1  0x00007f920d77af04 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f920d77b024 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9211962c36 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#4  0x00007f921193380f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#5  0x00007f9211933a98 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#6  0x00007f9211837230 in QThread::exec() () from /usr/lib64/qt/lib/libQtCore.so.4
#7  0x00007f921183a17b in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#8  0x00007f9211599eae in start_thread () from /lib64/libpthread.so.0
#9  0x00007f9210837dad in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f9199b2f700 (LWP 21252)):
#0  0x00007f921159bea3 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f920d7b67c1 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f920d77aeea in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f920d77b024 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f9211962c36 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#5  0x00007f921193380f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#6  0x00007f9211933a98 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#7  0x00007f9211837230 in QThread::exec() () from /usr/lib64/qt/lib/libQtCore.so.4
#8  0x00007f92119143cf in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#9  0x00007f921183a17b in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#10 0x00007f9211599eae in start_thread () from /lib64/libpthread.so.0
#11 0x00007f9210837dad in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f91ae3a1700 (LWP 21433)):
#0  0x00007f921159de01 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f921183a5d7 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt/lib/libQtCore.so.4
#2  0x00007f921182df1f in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#3  0x00007f921183a17b in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#4  0x00007f9211599eae in start_thread () from /lib64/libpthread.so.0
#5  0x00007f9210837dad in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f92171157c0 (LWP 4290)):
[KCrash Handler]
#5  0x00000000000306ab in ?? ()
#6  0x00007f9214fe3e7d in Kontact::MainWindow::selectPlugin(KontactInterface::Plugin*) () from /usr/lib64/libkontactprivate.so.4
#7  0x00007f9214ba9d45 in KontactInterface::UniqueAppHandler::newInstance() () from /usr/lib64/libkontactinterface.so.4
#8  0x00007f91b45166a8 in ?? () from /usr/lib64/kde4/kontact_kmailplugin.so
#9  0x00007f9214baa27c in KontactInterface::UniqueAppHandler::newInstance(QByteArray const&, QByteArray const&) () from /usr/lib64/libkontactinterface.so.4
#10 0x00007f9214baa2e9 in ?? () from /usr/lib64/libkontactinterface.so.4
#11 0x00007f9214baa37b in KontactInterface::UniqueAppHandler::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkontactinterface.so.4
#12 0x00007f92113369a3 in ?? () from /usr/lib64/qt/lib/libQtDBus.so.4
#13 0x00007f92113379c6 in ?? () from /usr/lib64/qt/lib/libQtDBus.so.4
#14 0x00007f9211338137 in ?? () from /usr/lib64/qt/lib/libQtDBus.so.4
#15 0x00007f92113384fb in ?? () from /usr/lib64/qt/lib/libQtDBus.so.4
#16 0x00007f921194939e in QObject::event(QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#17 0x00007f92125bcf5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#18 0x00007f92125c13da in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#19 0x00007f92132eb196 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#20 0x00007f9211934abe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#21 0x00007f9211938421 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt/lib/libQtCore.so.4
#22 0x00007f9211962a83 in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#23 0x00007f920d77ac35 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f920d77af68 in ?? () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f920d77b024 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f9211962c16 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#27 0x00007f921265d06e in ?? () from /usr/lib64/qt/lib/libQtGui.so.4
#28 0x00007f921193380f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#29 0x00007f9211933a98 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#30 0x00007f9211dc2be3 in KJob::exec() () from /usr/lib64/libkdecore.so.5
#31 0x00007f91b37647e8 in KMKernel::cleanup() () from /usr/lib64/libkmailprivate.so.4
#32 0x00007f91b3aa3d33 in ?? () from /usr/lib64/kde4/kmailpart.so
#33 0x00007f91b3aa3e29 in ?? () from /usr/lib64/kde4/kmailpart.so
#34 0x00007f9214ba8dbe in KontactInterface::Plugin::~Plugin() () from /usr/lib64/libkontactinterface.so.4
#35 0x00007f91b451465f in ?? () from /usr/lib64/kde4/kontact_kmailplugin.so
#36 0x00007f91b4514689 in ?? () from /usr/lib64/kde4/kontact_kmailplugin.so
#37 0x00007f9214fe0906 in Kontact::MainWindow::~MainWindow() () from /usr/lib64/libkontactprivate.so.4
#38 0x00007f9214fe0a69 in Kontact::MainWindow::~MainWindow() () from /usr/lib64/libkontactprivate.so.4
#39 0x00007f92119493c8 in QObject::event(QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#40 0x00007f921260bf2a in QWidget::event(QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#41 0x00007f92129ceb0b in QMainWindow::event(QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#42 0x00007f92133dca58 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libkdeui.so.5
#43 0x00007f92125bcf5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#44 0x00007f92125c13da in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#45 0x00007f92132eb196 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#46 0x00007f9211934abe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#47 0x00007f9211938421 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt/lib/libQtCore.so.4
#48 0x00007f9211962a83 in ?? () from /usr/lib64/qt/lib/libQtCore.so.4
#49 0x00007f920d77ac35 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#50 0x00007f920d77af68 in ?? () from /usr/lib64/libglib-2.0.so.0
#51 0x00007f920d77b024 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#52 0x00007f9211962c16 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#53 0x00007f921265d06e in ?? () from /usr/lib64/qt/lib/libQtGui.so.4
#54 0x00007f921193380f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#55 0x00007f9211933a98 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt/lib/libQtCore.so.4
#56 0x00007f9211938738 in QCoreApplication::exec() () from /usr/lib64/qt/lib/libQtCore.so.4
#57 0x000000000040365b in ?? ()
#58 0x00007f9210765a95 in __libc_start_main () from /lib64/libc.so.6
#59 0x0000000000403bd9 in _start ()
Comment 11 Christian Heller 2012-10-11 12:18:20 UTC
I can confirm the bug and ALL things exactly as reported by sombragris.
Therefore, I am currently sending email via web browser ...
Debian GNU/Linux testing daily up front.
The bug occurs since some weeks in kmail 1.13.7 under KDE 4.8.4.
Just now I deactivated the "semantic desktop" as proposed by Lukasz
and it seems to work fine. I have sent three emails without the
kmail composer window to freeze.
Would be nice to have this fixed one day, since kmail was one of the
earliest and best KDE applications.
Thanks.
Comment 12 Christian Heller 2012-10-11 13:08:21 UTC
Created attachment 74475 [details]
authenticity check dialogue which appears only again since nepomuk semantic desktop has been disabled

Our mail server normally causes the attached dialogue (screenshot) to appear.
Since kmail composer freezed when pressing the "send" button,
the dialogue never appeared anymore.
Now, following the advice to disable "nepomuk semantic desktop",
kmail composer sends emails again without freezing AND the dialogue
DOES appear again, before sending or when checking for emails.
Don't know if this is relevant, I just observed it.
Comment 13 Martin Steigerwald 2015-04-12 09:59:58 UTC
Hello. I haven´t seen this behavior since a long time, currently using KMail from kdepim 4.14 branches on Akonadi from 1.13 branch. Can you still reproduce the behavior with KMail from kdepim 4.14 and Akonadi 1.13? If yes, please try to give a description on how to reproduce it and also include details on your setup like IMAP / POP3 with maildir, mail account size, versions… I will close the bug in a month without any reply. Thank you, Martin
Comment 14 Martin Steigerwald 2015-04-12 11:46:18 UTC
Setting to waiting for info.
Comment 15 Andrew Crouthamel 2018-09-25 21:48:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 16 Andrew Crouthamel 2018-10-27 02:35:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!