Bug 331740 - KMail Random Crashing after hitting Forward upon Wakeup from Sleep
Summary: KMail Random Crashing after hitting Forward upon Wakeup from Sleep
Status: RESOLVED NOT A BUG
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 4.12.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-03-04 18:49 UTC by Craig
Modified: 2014-03-21 17:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.17 KB, text/plain)
2014-03-04 18:55 UTC, Craig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig 2014-03-04 18:49:02 UTC
Application: kontact (4.12.2)
KDE Platform Version: 4.12.2
Qt Version: 4.8.5
Operating System: Linux 3.13.5-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Never experienced prior, was immediately after waking from Sleep Mode
1. Selected an HTML Email
2. Hit "F" to Forward Inline
3. Kontact Crashes
Restarted Kontact and tried again on same email, same thing (crash) until after crashing 3 times tried forwarding a different email which did not crash, then tried the original email again and it worked without crash - seems to be OK for the time being.

- Custom settings of the application:
May have something to do with waking from sleep as experienced (repeated) immediately after waking laptop up and trying to forward until crashed a few times and was OK.

Sleep is the only thing I can think of which was different in this Scenario never experienced before. Will update if experience again but for now seems OK.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
To enable execution of this file add
	add-auto-load-safe-path /usr/lib/libstdc++.so.6.0.19-gdb.py
line to your configuration file "/home/craig/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/craig/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[Current thread is 1 (Thread 0x7f741af267c0 (LWP 5737))]

Thread 4 (Thread 0x7f73fe55c700 (LWP 5738)):
#0  0x00007f741251004f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f7415ce394d in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f7415ce3989 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f741250c0a2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f741848dd1d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f73bdc59700 (LWP 5739)):
#0  0x00007f741251004f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f7415a2544d in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f7415d130e6 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f741250c0a2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f741848dd1d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f739ffff700 (LWP 5747)):
#0  0x00007f741848535d in poll () from /usr/lib/libc.so.6
#1  0x00007f7411f4b584 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f7411f4b68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f7418bfbb46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f7418bcdb1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f7418bcde15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f7418acc6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f7418aced8f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f741250c0a2 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f741848dd1d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f741af267c0 (LWP 5737)):
[KCrash Handler]
#5  0x00007f74183dd389 in raise () from /usr/lib/libc.so.6
#6  0x00007f74183de788 in abort () from /usr/lib/libc.so.6
#7  0x00007f741841b204 in __libc_message () from /usr/lib/libc.so.6
#8  0x00007f74184209ae in malloc_printerr () from /usr/lib/libc.so.6
#9  0x00007f74184216b6 in _int_free () from /usr/lib/libc.so.6
#10 0x00007f7418b171d8 in QString::free(QString::Data*) () from /usr/lib/libQtCore.so.4
#11 0x00007f74198128c9 in QTextEngine::LayoutData::~LayoutData() () from /usr/lib/libQtGui.so.4
#12 0x00007f741981c7b8 in QTextEngine::freeMemory() () from /usr/lib/libQtGui.so.4
#13 0x00007f7419822b51 in QTextLayout::draw(QPainter*, QPointF const&, QVector<QTextLayout::FormatRange> const&, QRectF const&) const () from /usr/lib/libQtGui.so.4
#14 0x00007f74199cd6e9 in QLineControl::draw(QPainter*, QPoint const&, QRect const&, int) () from /usr/lib/libQtGui.so.4
#15 0x00007f74199c63c2 in QLineEdit::paintEvent(QPaintEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007f741a39cf20 in KLineEdit::paintEvent(QPaintEvent*) () from /usr/lib/libkdeui.so.5
#17 0x00007f741961d414 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007f74199cac11 in QLineEdit::event(QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f741a39ca90 in KLineEdit::event(QEvent*) () from /usr/lib/libkdeui.so.5
#20 0x00007f74195ce0dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f74195d46a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007f741a2ed77a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#23 0x00007f7418bceebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#24 0x00007f7419617b21 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#25 0x00007f7419618550 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#26 0x00007f74196176dc in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#27 0x00007f7419618550 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#28 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#29 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#30 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#31 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#32 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#33 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#34 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#35 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#36 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#37 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#38 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#39 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#40 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#41 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#42 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#43 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#44 0x00007f74196183bf in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#45 0x00007f74196176dc in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#46 0x00007f7419618550 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#47 0x00007f74196176dc in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#48 0x00007f74197d60be in ?? () from /usr/lib/libQtGui.so.4
#49 0x00007f74197d6435 in ?? () from /usr/lib/libQtGui.so.4
#50 0x00007f7419637e58 in ?? () from /usr/lib/libQtGui.so.4
#51 0x00007f7419644c66 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#52 0x00007f741966b162 in ?? () from /usr/lib/libQtGui.so.4
#53 0x00007f7411f4b296 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#54 0x00007f7411f4b5e8 in ?? () from /usr/lib/libglib-2.0.so.0
#55 0x00007f7411f4b68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#56 0x00007f7418bfbb25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#57 0x00007f741966b216 in ?? () from /usr/lib/libQtGui.so.4
#58 0x00007f7418bcdb1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#59 0x00007f7418bcde15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#60 0x00007f7418bd2f4b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#61 0x00000000004036d0 in ?? ()
#62 0x00007f74183c9b05 in __libc_start_main () from /usr/lib/libc.so.6
#63 0x0000000000403b98 in _start ()

Reported using DrKonqi
Comment 1 Craig 2014-03-04 18:55:42 UTC
Created attachment 85412 [details]
New crash information added by DrKonqi

kontact (4.12.2) on KDE Platform 4.12.2 using Qt 4.8.5

Experienced multiple times again after submitting bug from original crashes via forward. Is not limited to forwarding and seems to be affecting anything with opening/closing Kontact windows but may be wrong there and just be confined to KMail Email Windows for whatever reason. Still only thing that is different than normal is it went into sleep mode after going into low battery last night and did not wake up until thismorning.

- What I was doing when the application crashed:
1. With a forward window open, I closed it to reply instead and...
2. Crashed
3. I reopened and selected the email again, hit Reply to All
4. Crashed again

If conntinues to happen (which it seems to be doing quite randomly) will try restarting session to see if resolves.

-- Backtrace (Reduced):
#5  0x00007f00c4d14523 in QVariant::~QVariant() () from /usr/lib/libQtCore.so.4
[...]
#7  0x00007f00c594f6a5 in QTextFormat::~QTextFormat() () from /usr/lib/libQtGui.so.4
#8  0x00007f005d55bee9 in Grantlee::MarkupDirector::processFragment(QTextBlock::iterator, QTextFragment const&, QTextDocument const*) () from /usr/lib/libgrantlee_gui.so.0
#9  0x00007f005d55b428 in Grantlee::MarkupDirector::processBlockContents(QTextFrame::iterator, QTextBlock const&) () from /usr/lib/libgrantlee_gui.so.0
#10 0x00007f005d55b016 in Grantlee::MarkupDirector::processBlock(QTextFrame::iterator, QTextBlock const&) () from /usr/lib/libgrantlee_gui.so.0
Comment 2 Craig 2014-03-04 19:22:24 UTC
Final Comment: 
Continues to crash, it seemed okay for a few minutes but again started crashing even upon Reply All and with random emails (seemingly) BUT not as much as with the one email which started/noticed the whole issue. That email is an html email with outside/internet sources within (not loaded) however do not think that to be an issue as tried with another similar email and had no issues. The email is a ticket thread from Yahoo Support.

I tried restarting my computer to clear things out and when opening contact, I hit forward with the one email and had no issues but then when closing the forward window it crashed again as above. Additionally that is not the only email being affected as mentioned for some reason however it seems to happen more or almost always with that one email whether it be when hitting forward/reply to all OR when doing that it works and the window is X'd out of.

Also happening when hit reply, it doesn't crash, I write my reply and hit send then it crashes. Fortunately the email sent when restarting at it was in outbox but still, anyone have any ideas why this could be happening and so frequently plus seemingly random?

The only packages updated yesterday which as mentioned prior to thismorning did not notice ANY issues or experience any crashes really at ALL ever, the updated packages yesterday are as follows:
[2014-03-04 02:31] [PACMAN] starting full system upgrade
[2014-03-04 02:31] [PACMAN] upgraded gdk-pixbuf2 (2.30.5-1 -> 2.30.6-1)
[2014-03-04 02:31] [PACMAN] upgraded libmsn (4.2.1-1 -> 4.2.1-2)
[2014-03-04 02:31] [PACMAN] upgraded libpulse (4.0-6 -> 5.0-1)
[2014-03-04 02:31] [PACMAN] upgraded webkitgtk2 (1.10.2-8 -> 2.2.5-2)

Maybe a package was not upgraded due to the mirror not being fully synced which one of those packages rely on? I just ran a system upgrade and here is what is available now (and just upgraded):
==> Package upgrade only (new release):
extra/kdebase-workspace 4.11.6-2        2 -> 3
extra/orbit2            2.14.19-2       2 -> 3

==> Software upgrade (new version) :
core/systemd            208-11          -> 210-2
core/systemd-sysvcompat 208-11          -> 210-2
extra/chromium          33.0.1750.117-1 -> 33.0.1750.146-1
extra/eclipse           4.3.1-2         -> 4.3.2-1
extra/xterm             301-1           -> 302-1

==> New package :
extra/libseccomp        2.1.1-1         (required by systemd)

However I somewhat doubt that to be the issue just from a quick glance, after updating it is still happening but I will try to restart and if that seems to help the issue I will post back. Beyond that does anyone have any ideas why this could be? Honestly yesterday I was in SSH all day and suddenly the email problems thismorning after waking from sleep and now this is non-stop which is a killer as I run through hundreds of emails per day. Thanks guys,
Comment 3 Craig 2014-03-21 17:18:03 UTC
Seems to have resolved after move to .3 and restarting.