Bug 294921 - KMail don't start
Summary: KMail don't start
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.9.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 12:17 UTC by Sascha Manns
Modified: 2015-09-08 20:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Manns 2012-02-27 12:17:25 UTC
Version:           4.8 (using KDE 4.8.0) 
OS:                Linux

KMail doesn't start.

Reproducible: Always

Steps to Reproduce:
Just start KMail


Expected Results:  
start

Mo Feb 27 [13:05:07][sascha@saigkill:~]$ kontact
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
"/usr/bin/kontact(9112)" Soprano: "org.freedesktop.DBus.Error.NoReply - Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
local socket error: QLocalSocket::SocketTimeoutError 
"/usr/bin/kontact(9112)" Soprano: "Timeout (5)": "Command timed out."
"/usr/bin/kontact(9112)" Soprano: "org.freedesktop.DBus.Error.NoReply - Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Comment 1 Laurent Montel 2012-02-27 13:02:12 UTC
please more infos.
do you use nepomuk ?
Do you have process in memory ? (akonadi*)
etc.
Comment 2 CisBug 2012-05-07 08:04:30 UTC
I confirm this bug in KDE 4.8.3.
Nepomuk/Strigi is running and configured in KDE Systemsettings to index files and email.
First start of kmail after power up is usually ok. One or two hours later kmail is freezing the user interface. It is even not possible to close the kmail window, but KDE is offering the possibility to kill the process.

Next start of kmail is not possible. Error message:
~> kmail
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
"/usr/bin/kmail(2908)" Soprano: "org.freedesktop.DBus.Error.NoReply - Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

local socket error: QLocalSocket::SocketTimeoutError 
"/usr/bin/kmail(2908)" Soprano: "Timeout (5)": "Command timed out."
"/usr/bin/kmail(2908)" Soprano: "org.freedesktop.DBus.Error.NoReply - Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Comment 3 Matěj Laitl 2012-09-07 13:54:38 UTC
I have the same problem. I have Nepomuk enabled and enabled for indexing e-mails. Starting other pim-related applications (akonadiconsole) also hangs. Clicking the "Details..." in the "Desktop Search - KDE Control Module" to troubleshoot freezes the dialog.

Related: http://forums.gentoo.org/viewtopic-t-919074-start-0.html (affects me, too)
KDE 4.9.0
akonadi-server 1.8.0
soprano 2.8.0

$ ps -HAf | egrep 'virtuo|akonadi'
strohel   2003  1996  0 14:31 ?        00:00:10       /usr/bin/virtuoso-t +foreground +configfile /tmp/virtuoso_jd1996.ini +wait
strohel  19399     1  0 14:52 ?        00:00:01   /usr/bin/akonadi_control
strohel  19401 19399  1 14:52 ?        00:00:29     akonadiserver
strohel  19411 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource akonadi_akonotes_resource_4
strohel  19412 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_archivemail_agent --identifier akonadi_archivemail_agent
strohel  19413 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_birthdays_resource --identifier akonadi_birthdays_resource
strohel  19414 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_agent_launcher akonadi_contacts_resource akonadi_contacts_resource_4
strohel  19415 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_googlecalendar_resource --identifier akonadi_googlecalendar_resource_0
strohel  19417 19399  0 14:52 ?        00:00:01     /usr/bin/akonadi_googlecontacts_resource --identifier akonadi_googlecontacts_resource_0
strohel  19418 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_agent_launcher akonadi_ical_resource akonadi_ical_resource_10
strohel  19419 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_agent_launcher akonadi_ical_resource akonadi_ical_resource_12
strohel  19420 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_agent_launcher akonadi_ical_resource akonadi_ical_resource_13
strohel  19421 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_10
strohel  19423 19399  1 14:52 ?        00:00:33     /usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_9
strohel  19424 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_agent_launcher akonadi_maildir_resource akonadi_maildir_resource_7
strohel  19425 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
strohel  19426 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mailfilter_agent
strohel  19427 19399  0 14:52 ?        00:00:00     /usr/bin/akonadi_nepomuk_feeder --identifier akonadi_nepomuk_feeder

Backtrace of kmail when it hangs on start:

#0  0x00007ffff514d1a8 in *__GI___poll (fds=0x7fffffffc6a0, nfds=1, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:83
#1  0x00007fffeae88ee0 in socket_do_iteration (transport=0x66c970, flags=6, timeout_milliseconds=<optimized out>)
    at /var/tmp/portage/sys-apps/dbus-1.6.2/work/dbus-1.6.2/dbus/dbus-transport-socket.c:1125
#2  0x00007fffeae87dcd in _dbus_transport_do_iteration (transport=0x66c970, flags=<optimized out>, timeout_milliseconds=<optimized out>)
    at /var/tmp/portage/sys-apps/dbus-1.6.2/work/dbus-1.6.2/dbus/dbus-transport.c:977
#3  0x00007fffeae76215 in _dbus_connection_do_iteration_unlocked (connection=0x66d930, pending=<optimized out>, flags=6, timeout_milliseconds=-1)
    at /var/tmp/portage/sys-apps/dbus-1.6.2/work/dbus-1.6.2/dbus/dbus-connection.c:1234
#4  0x00007fffeae77113 in _dbus_connection_block_pending_call (pending=0x6702d0) at /var/tmp/portage/sys-apps/dbus-1.6.2/work/dbus-1.6.2/dbus/dbus-connection.c:2415
#5  0x00007fffeae7685d in dbus_connection_send_with_reply_and_block (connection=0x66d930, message=0x66d6d0, timeout_milliseconds=2147483647, error=0x7fffffffc900)
    at /var/tmp/portage/sys-apps/dbus-1.6.2/work/dbus-1.6.2/dbus/dbus-connection.c:3530
#6  0x00007ffff317bcd7 in q_dbus_connection_send_with_reply_and_block (error=0x7fffffffc900, timeout_milliseconds=2147483647, message=0x66d6d0, 
    connection=<optimized out>) at qdbus_symbols_p.h:135
#7  QDBusConnectionPrivate::sendWithReply (this=0x66cbf0, message=..., sendMode=<optimized out>, timeout=2147483647) at qdbusintegrator.cpp:1904
#8  0x00007ffff3166ed3 in QDBusConnection::call (this=0x7fffffffcea0, message=<optimized out>, mode=<optimized out>, timeout=<optimized out>) at qdbusconnection.cpp:597
#9  0x00007ffff79a332b in KUniqueApplication::start (flags=<optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-4.9.1/work/kdelibs-4.9.1/kdeui/kernel/kuniqueapplication.cpp:294
#10 0x00007ffff70466aa in KontactInterface::PimUniqueApplication::start (flags=...)
    at /var/tmp/portage/kde-base/kdepimlibs-4.9.1/work/kdepimlibs-4.9.1/kontactinterface/pimuniqueapplication.cpp:121
#11 0x00007ffff7046c13 in KontactInterface::PimUniqueApplication::start ()
    at /var/tmp/portage/kde-base/kdepimlibs-4.9.1/work/kdepimlibs-4.9.1/kontactinterface/pimuniqueapplication.cpp:75
#12 0x0000000000403313 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.9.0-r2/work/kmail-4.9.0/kmail/main.cpp:110

It seems to hang on some DBUS call. How do I debug where's the problem? (other app didn't reply?)
Comment 4 Martin Steigerwald 2015-09-08 20:48:19 UTC
Sascha and anyone who confirmed the bug, thank you for your report and your comments. They are about a version of KMail which uses Nepomuk and is unmaintained. Thus closing. If a recent version of KMail still does not start, please open a new bug report, provide version you use, and also provide the information Laurent requested. Thank you, Martin