Bug 324974 - Kmail crash at startup
Summary: Kmail crash at startup
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.11.1
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 326211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-16 20:45 UTC by Peter Biechele
Modified: 2013-10-25 20:51 UTC (History)
3 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 Peter Biechele 2013-09-16 20:45:59 UTC
Application: kmail (4.11.1)
KDE Platform Version: 4.11.1
Qt Version: 4.8.4
Operating System: Linux 3.8.0-30-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:
Started kmail!
kontact, kaddressbook still running.

---
DBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
 mMonitor true 
Enchant dict for "de_DE" 0x15fda70 
kmail2(6419) MessageViewer::ObjectTreeParser::defaultHandling: no htmlWriter() 
kmail2(6419) MessageViewer::ObjectTreeParser::defaultHandling: no htmlWriter() 
kmail2(6419) MessageViewer::ObjectTreeParser::defaultHandling: no htmlWriter() 
kmail2(6419) MessageViewer::ObjectTreeParser::defaultHandling: no htmlWriter() 
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/those/.kde/socket-those-laptop/kdeinit4__0
unnamed app(6418): Communication problem with  "kmail2" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 
----

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f883be397c0 (LWP 6419))]

Thread 2 (Thread 0x7f8816246700 (LWP 6422)):
#0  0x00007f88391b53cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f88313541dc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8831354304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f883a7fd036 in QEventDispatcherGlib::processEvents (this=0x7f88100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f883a7cd38f in QEventLoop::processEvents (this=this@entry=0x7f8816245d90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f883a7cd618 in QEventLoop::exec (this=this@entry=0x7f8816245d90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f883a6cf410 in QThread::exec (this=this@entry=0x15f6020) at thread/qthread.cpp:542
#7  0x00007f883a7aeedf in QInotifyFileSystemWatcherEngine::run (this=0x15f6020) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f883a6d1bec in QThreadPrivate::start (arg=0x15f6020) at thread/qthread_unix.cpp:338
#9  0x00007f8836ab9f8e in start_thread (arg=0x7f8816246700) at pthread_create.c:311
#10 0x00007f88391c1e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f883be397c0 (LWP 6419)):
[KCrash Handler]
#6  QTextLayout::lineCount (this=this@entry=0x1c0e520) at text/qtextlayout.cpp:841
#7  0x00007f8839e118fb in QTextDocumentLayoutPrivate::layoutBlock (this=this@entry=0x1743130, bl=..., blockPosition=blockPosition@entry=1837, blockFormat=..., layoutStruct=layoutStruct@entry=0x7fff29972990, layoutFrom=layoutFrom@entry=1581, layoutTo=layoutTo@entry=1582, previousBlockFormat=previousBlockFormat@entry=0x0) at text/qtextdocumentlayout.cpp:2689
#8  0x00007f8839e199c0 in QTextDocumentLayoutPrivate::layoutFlow (this=this@entry=0x1743130, it=..., layoutStruct=layoutStruct@entry=0x7fff29972990, layoutFrom=layoutFrom@entry=1581, layoutTo=layoutTo@entry=1582, width=width@entry=...) at text/qtextdocumentlayout.cpp:2402
#9  0x00007f8839e18517 in QTextDocumentLayoutPrivate::layoutFrame (this=this@entry=0x1743130, f=f@entry=0x1743640, layoutFrom=layoutFrom@entry=1581, layoutTo=layoutTo@entry=1582, frameWidth=..., frameWidth@entry=..., frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2143
#10 0x00007f8839e18a2f in QTextDocumentLayoutPrivate::layoutFrame (this=this@entry=0x1743130, f=f@entry=0x1743640, layoutFrom=layoutFrom@entry=1581, layoutTo=layoutTo@entry=1582, parentY=parentY@entry=...) at text/qtextdocumentlayout.cpp:2049
#11 0x00007f8839e1ad71 in QTextDocumentLayout::doLayout (this=this@entry=0x1743040, from=from@entry=1581, oldLength=oldLength@entry=0, length=length@entry=1) at text/qtextdocumentlayout.cpp:2939
#12 0x00007f8839e1bb29 in QTextDocumentLayout::documentChanged (this=0x1743040, from=1581, oldLength=0, length=1) at text/qtextdocumentlayout.cpp:2902
#13 0x00007f8839dfba56 in QTextDocumentPrivate::finishEdit (this=this@entry=0x1748120) at text/qtextdocument_p.cpp:1220
#14 0x00007f8839dfe940 in QTextDocumentPrivate::insert (this=0x1748120, pos=pos@entry=1581, strPos=strPos@entry=3278, strLength=strLength@entry=1, format=format@entry=54) at text/qtextdocument_p.cpp:473
#15 0x00007f8839e22eab in QTextCursor::insertText (this=this@entry=0x7fff29972e20, text=..., _format=...) at text/qtextcursor.cpp:1481
#16 0x00007f8839e22f2f in QTextCursor::insertImage (this=this@entry=0x7fff29972e20, format=...) at text/qtextcursor.cpp:2308
#17 0x00007f883284e0c7 in KPIMTextEdit::TextEdit::loadImage (this=0x1732960, image=..., matchName=..., resourceName=...) at ../../kpimtextedit/textedit.cpp:532
#18 0x00007f88353a3378 in MessageComposer::ComposerViewBase::collectImages (this=this@entry=0x123d3a0, root=<optimized out>) at ../../messagecomposer/composer/composerviewbase.cpp:1546
#19 0x00007f88353abd01 in MessageComposer::ComposerViewBase::setMessage (this=0x123d3a0, msg=...) at ../../messagecomposer/composer/composerviewbase.cpp:191
#20 0x00007f883aca1356 in KMComposeWin::setMessage (this=0x123c510, newMsg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, mayAutoSign=false, allowDecryption=<optimized out>, isModified=false) at ../../kmail/editor/kmcomposewin.cpp:1580
#21 0x00007f883ac1c123 in KMKernel::recoverDeadLetters (this=this@entry=0x7fff29973a40) at ../../kmail/kmkernel.cpp:1190
#22 0x0000000000402cf1 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:136

Reported using DrKonqi
Comment 1 Peter Biechele 2013-09-27 09:14:44 UTC
Does anybody have an idea???
Please, kmail is unsable??
Comment 2 Laurent Montel 2013-09-27 10:19:27 UTC
Remove ~/.kde/share/apps/kmail2/autosave/*
Comment 3 Peter Biechele 2013-09-27 19:25:14 UTC
Thanks a lot !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thats it!

Just deleted the files in the autosave dir and voila, kmail is running again!!!!
Comment 4 Gustavo Alvarez 2013-10-21 00:55:47 UTC
i have this issue. but remove /home/$USER/.kde4/share/apps/kmail2/autosave not fix the issue for me

└───╼  kmail
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/sl1pkn07/.kde4/share/apps/messageviewer/themes/" 
kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/usr/share/apps/messageviewer/themes/" 
kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/sl1pkn07/.kde4/share/apps/messageviewer" 
kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/usr/share/apps/messageviewer" 
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/sl1pkn07/.kde4/socket-sL1pKn07/kdeinit4__0
unnamed app(5773): Communication problem with  "kmail2" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb78068b7c0 (LWP 6069))]

Thread 2 (Thread 0x7fb75aff9700 (LWP 6072)):
#0  0x00007fb77b80103f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fb771c28cfd in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007fb771c28d39 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007fb77b7fd0a2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007fb77d9fd43d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fb78068b7c0 (LWP 6069)):
[KCrash Handler]
#5  0x00007fb76bf390f8 in ?? () from /usr/lib/libQtSensors.so.1
#6  0x00007fb76bf37dc3 in QtMobility::QSensor::addFilter(QtMobility::QSensorFilter*) () from /usr/lib/libQtSensors.so.1
#7  0x00007fb77118752e in ?? () from /usr/lib/libQtWebKit.so.4
#8  0x00007fb7711872c3 in ?? () from /usr/lib/libQtWebKit.so.4
#9  0x00007fb7709fe112 in ?? () from /usr/lib/libQtWebKit.so.4
#10 0x00007fb7709fe15e in ?? () from /usr/lib/libQtWebKit.so.4
#11 0x00007fb7709fe61b in ?? () from /usr/lib/libQtWebKit.so.4
#12 0x00007fb7707a2acb in ?? () from /usr/lib/libQtWebKit.so.4
#13 0x00007fb7707aa2c5 in QWebPage::QWebPage(QObject*) () from /usr/lib/libQtWebKit.so.4
#14 0x00007fb76e5464ca in KWebPage::KWebPage(QObject*, QFlags<KWebPage::IntegrationFlags>) () from /usr/lib/libkdewebkit.so.5
#15 0x00007fb76e5498cd in KWebView::KWebView(QWidget*, bool) () from /usr/lib/libkdewebkit.so.5
#16 0x00007fb776b46507 in MessageViewer::MailWebView::MailWebView(KActionCollection*, QWidget*) () from /usr/lib/libmessageviewer.so.4
#17 0x00007fb776b2f6f8 in ?? () from /usr/lib/libmessageviewer.so.4
#18 0x00007fb776b35fc4 in ?? () from /usr/lib/libmessageviewer.so.4
#19 0x00007fb776b1ea67 in MessageViewer::Viewer::Viewer(QWidget*, QWidget*, KActionCollection*, QFlags<Qt::WindowType>) () from /usr/lib/libmessageviewer.so.4
#20 0x00007fb77f4455ec in ?? () from /usr/lib/libkmailprivate.so.4
#21 0x00007fb77f495013 in KMMainWidget::createWidgets() () from /usr/lib/libkmailprivate.so.4
#22 0x00007fb77f4a4e36 in KMMainWidget::KMMainWidget(QWidget*, KXMLGUIClient*, KActionCollection*, KSharedPtr<KSharedConfig>) () from /usr/lib/libkmailprivate.so.4
#23 0x00007fb77f40bf6e in ?? () from /usr/lib/libkmailprivate.so.4
#24 0x00007fb77f45402f in KMKernel::openReader(bool) () from /usr/lib/libkmailprivate.so.4
#25 0x00007fb77f459f10 in KMKernel::action(bool, bool, QString const&, QString const&, QString const&, QString const&, QString const&, KUrl const&, KUrl::List const&, QStringList const&, QString const&, QString const&) () from /usr/lib/libkmailprivate.so.4
#26 0x00007fb77f45aa13 in KMKernel::handleCommandLine(bool) () from /usr/lib/libkmailprivate.so.4
#27 0x0000000000403417 in _start ()


archlinux 64bits
kmail 4.11.2
qt4 4.8.5
Linux sL1pKn07 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013 x86_64 GNU/Linux
Comment 5 Gustavo Alvarez 2013-10-21 13:25:09 UTC
Hi, is kde 4.11.2, sorry

greetings
Comment 6 Jekyll Wu 2013-10-23 09:53:25 UTC
*** Bug 326211 has been marked as a duplicate of this bug. ***
Comment 7 Gustavo Alvarez 2013-10-25 20:51:46 UTC
(In reply to comment #4)
> i have this issue. but remove /home/$USER/.kde4/share/apps/kmail2/autosave
> not fix the issue for me
> 
> └───╼  kmail
> QDBusConnection: session D-Bus connection created before QCoreApplication.
> Application may misbehave.
> QDBusConnection: session D-Bus connection created before QCoreApplication.
> Application may misbehave.
> kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know
> "/home/sl1pkn07/.kde4/share/apps/messageviewer/themes/" 
> kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know
> "/usr/share/apps/messageviewer/themes/" 
> kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know
> "/home/sl1pkn07/.kde4/share/apps/messageviewer" 
> kmail2(5774)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know
> "/usr/share/apps/messageviewer" 
> *** KMail got signal 11 (Exiting)
> *** Dead letters dumped.
> KCrash: Application 'kmail' crashing...
> KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
> sock_file=/home/sl1pkn07/.kde4/socket-sL1pKn07/kdeinit4__0
> unnamed app(5773): Communication problem with  "kmail2" , it probably
> crashed. 
> Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did
> not receive a reply (timeout by message bus)" " 
> 
> Application: KMail (kmail), signal: Segmentation fault
> Using host libthread_db library "/usr/lib/libthread_db.so.1".
> [Current thread is 1 (Thread 0x7fb78068b7c0 (LWP 6069))]
> 
> Thread 2 (Thread 0x7fb75aff9700 (LWP 6072)):
> #0  0x00007fb77b80103f in pthread_cond_wait@@GLIBC_2.3.2 () from
> /usr/lib/libpthread.so.0
> #1  0x00007fb771c28cfd in ?? () from /usr/lib/libQtWebKit.so.4
> #2  0x00007fb771c28d39 in ?? () from /usr/lib/libQtWebKit.so.4
> #3  0x00007fb77b7fd0a2 in start_thread () from /usr/lib/libpthread.so.0
> #4  0x00007fb77d9fd43d in clone () from /usr/lib/libc.so.6
> 
> Thread 1 (Thread 0x7fb78068b7c0 (LWP 6069)):
> [KCrash Handler]
> #5  0x00007fb76bf390f8 in ?? () from /usr/lib/libQtSensors.so.1
> #6  0x00007fb76bf37dc3 in
> QtMobility::QSensor::addFilter(QtMobility::QSensorFilter*) () from
> /usr/lib/libQtSensors.so.1
> #7  0x00007fb77118752e in ?? () from /usr/lib/libQtWebKit.so.4
> #8  0x00007fb7711872c3 in ?? () from /usr/lib/libQtWebKit.so.4
> #9  0x00007fb7709fe112 in ?? () from /usr/lib/libQtWebKit.so.4
> #10 0x00007fb7709fe15e in ?? () from /usr/lib/libQtWebKit.so.4
> #11 0x00007fb7709fe61b in ?? () from /usr/lib/libQtWebKit.so.4
> #12 0x00007fb7707a2acb in ?? () from /usr/lib/libQtWebKit.so.4
> #13 0x00007fb7707aa2c5 in QWebPage::QWebPage(QObject*) () from
> /usr/lib/libQtWebKit.so.4
> #14 0x00007fb76e5464ca in KWebPage::KWebPage(QObject*,
> QFlags<KWebPage::IntegrationFlags>) () from /usr/lib/libkdewebkit.so.5
> #15 0x00007fb76e5498cd in KWebView::KWebView(QWidget*, bool) () from
> /usr/lib/libkdewebkit.so.5
> #16 0x00007fb776b46507 in
> MessageViewer::MailWebView::MailWebView(KActionCollection*, QWidget*) ()
> from /usr/lib/libmessageviewer.so.4
> #17 0x00007fb776b2f6f8 in ?? () from /usr/lib/libmessageviewer.so.4
> #18 0x00007fb776b35fc4 in ?? () from /usr/lib/libmessageviewer.so.4
> #19 0x00007fb776b1ea67 in MessageViewer::Viewer::Viewer(QWidget*, QWidget*,
> KActionCollection*, QFlags<Qt::WindowType>) () from
> /usr/lib/libmessageviewer.so.4
> #20 0x00007fb77f4455ec in ?? () from /usr/lib/libkmailprivate.so.4
> #21 0x00007fb77f495013 in KMMainWidget::createWidgets() () from
> /usr/lib/libkmailprivate.so.4
> #22 0x00007fb77f4a4e36 in KMMainWidget::KMMainWidget(QWidget*,
> KXMLGUIClient*, KActionCollection*, KSharedPtr<KSharedConfig>) () from
> /usr/lib/libkmailprivate.so.4
> #23 0x00007fb77f40bf6e in ?? () from /usr/lib/libkmailprivate.so.4
> #24 0x00007fb77f45402f in KMKernel::openReader(bool) () from
> /usr/lib/libkmailprivate.so.4
> #25 0x00007fb77f459f10 in KMKernel::action(bool, bool, QString const&,
> QString const&, QString const&, QString const&, QString const&, KUrl const&,
> KUrl::List const&, QStringList const&, QString const&, QString const&) ()
> from /usr/lib/libkmailprivate.so.4
> #26 0x00007fb77f45aa13 in KMKernel::handleCommandLine(bool) () from
> /usr/lib/libkmailprivate.so.4
> #27 0x0000000000403417 in _start ()
> 
> 
> archlinux 64bits
> kmail 4.11.2
> qt4 4.8.5
> Linux sL1pKn07 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013
> x86_64 GNU/Linux

ok, i fixed the issue


is a long history and my english is very poor (qtwebkit + qtmobility related)

sorry and greetings