Bug 247087

Summary: Kontact crashes while pasting image into HTML email (Kmail)
Product: [Applications] kontact Reporter: Jay <jwg779-projects>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.4.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jay 2010-08-08 20:29:36 UTC
Application: kontact (4.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-24-generic i686
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
This bug is repeatable, every time.  When attempting to paste an image into a Kmail HTML email, a 2-item floating menu item appears ("Insert image in-line", "append image").  When either of these items are selected, or if the user escapes from the menu, Kontact crashes.  The image in question is either copied directly to Klipper from Ksnapshot, or is copied from Kolourpaint (unsaved file).

When pasting an image into a plain text email, this menu is not shown; rather, an input box is shown for entering the attachment name, which works without an issue.

The crash can be reproduced every time.

 -- Backtrace:
Application: Kontact (kontact), signal: Illegal instruction
[Current thread is 1 (Thread 0xb76e9990 (LWP 3713))]

Thread 2 (Thread 0xb1cd0b70 (LWP 3724)):
#0  0x00ebce16 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0x004e46fb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x004e9825 in QTimerInfoList::updateCurrentTime (this=0x9907674) at kernel/qeventdispatcher_unix.cpp:340
#3  0x004e986a in QTimerInfoList::timerWait (this=0x9907674, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x004e7818 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb1cd00ac) at kernel/qeventdispatcher_glib.cpp:136
#5  0x004e78a5 in timerSourcePrepare (source=0x0, timeout=0xec0ff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0x06a39aca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#7  0x06a39ee9 in ?? () from /lib/libglib-2.0.so.0
#8  0x06a3a4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#9  0x004e760f in QEventDispatcherGlib::processEvents (this=0x8fb92b8, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#10 0x004ba059 in QEventLoop::processEvents (this=0xb1cd0270, flags=) at kernel/qeventloop.cpp:149
#11 0x004ba4aa in QEventLoop::exec (this=0xb1cd0270, flags=...) at kernel/qeventloop.cpp:201
#12 0x003b65a8 in QThread::exec (this=0x9949c90) at thread/qthread.cpp:487
#13 0x00499c1b in QInotifyFileSystemWatcherEngine::run (this=0x9949c90) at io/qfilesystemwatcher_inotify.cpp:248
#14 0x003b932e in QThreadPrivate::start (arg=0x9949c90) at thread/qthread_unix.cpp:248
#15 0x0095796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0x0227ca4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb76e9990 (LWP 3713)):
[KCrash Handler]
#6  0x00660000 in QDBusReply<unsigned int>::operator= (this=0x56f7910, serviceName=...) at ../../include/QtDBus/../../src/dbus/qdbusreply.h:73
#7  QDBusReply (this=0x56f7910, serviceName=...) at ../../include/QtDBus/../../src/dbus/qdbusreply.h:69
#8  QDBusConnectionInterface::servicePid (this=0x56f7910, serviceName=...) at qdbusconnectioninterface.cpp:217
#9  0x005db330 in KPIMTextEdit::TextEdit::insertFromMimeData (this=0x9be9930, source=0x9da2290) at ../../kpimtextedit/textedit.cpp:546
#10 0xb4845420 in KMComposerEditor::insertFromMimeData (this=0x9be9930, source=0x9da2290) at ../../kmail/kmcomposereditor.cpp:172
#11 0x05cac38b in QTextEditControl::insertFromMimeData (this=0x9d98420, source=0x9da2290) at widgets/qtextedit.cpp:104
#12 0x05a3ce6f in QTextControl::paste (this=0x9d98420) at text/qtextcontrol.cpp:853
#13 0x05ca6316 in QTextEdit::paste (this=0x9be9930) at widgets/qtextedit.cpp:1013
#14 0x011e0da5 in KTextEdit::Private::handleShortcut (this=0x981d948, event=0xbfbc5904) at ../../kdeui/widgets/ktextedit.cpp:338
#15 0x011e187f in KTextEdit::keyPressEvent (this=0x9be9930, event=0xbfbc5904) at ../../kdeui/widgets/ktextedit.cpp:1059
#16 0x011c5087 in KRichTextEdit::keyPressEvent (this=0x9be9930, event=0xbfbc5904) at ../../kdeui/widgets/krichtextedit.cpp:482
#17 0x005dbc22 in KPIMTextEdit::TextEdit::keyPressEvent (this=0x9be9930, e=0xbfbc5904) at ../../kpimtextedit/textedit.cpp:246
#18 0x00d610dc in KPIM::KMeditor::keyPressEvent (this=0x9be9930, e=0xbfbc5904) at ../../libkdepim/kmeditor.cpp:202
#19 0x0582b503 in QWidget::event (this=0x9be9930, event=0xbfbc5904) at kernel/qwidget.cpp:8033
#20 0x05c27fd3 in QFrame::event (this=0x9be9930, e=0xbfbc5904) at widgets/qframe.cpp:557
#21 0x05cc2d97 in QAbstractScrollArea::event (this=0x9be9930, e=0xbfbc5904) at widgets/qabstractscrollarea.cpp:989
#22 0x05cabf4d in QTextEdit::event (this=0x9be9930, e=0xbfbc5904) at widgets/qtextedit.cpp:1070
#23 0x011dce73 in KTextEdit::event (this=0x9be9930, ev=0xbfbc5904) at ../../kdeui/widgets/ktextedit.cpp:327
#24 0x057cd4dc in QApplicationPrivate::notify_helper (this=0x8da05c8, receiver=0x9be9930, e=0xbfbc5904) at kernel/qapplication.cpp:4300
#25 0x057d5b71 in QApplication::notify (this=0xbfbc6364, receiver=0x9be9930, e=0xbfbc5904) at kernel/qapplication.cpp:3763
#26 0x010bef2a in KApplication::notify (this=0xbfbc6364, receiver=0x9be9930, event=0xbfbc5904) at ../../kdeui/kernel/kapplication.cpp:302
#27 0x004bba3b in QCoreApplication::notifyInternal (this=0xbfbc6364, receiver=0x9be9930, event=0xbfbc5904) at kernel/qcoreapplication.cpp:704
#28 0x057ce2be in QCoreApplication::sendSpontaneousEvent (receiver=0x9be9930, event=0x16) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#29 qt_sendSpontaneousEvent (receiver=0x9be9930, event=0x16) at kernel/qapplication.cpp:5279
#30 0x05887d90 in QKeyMapper::sendKeyEvent (keyWidget=0x9be9930, grab=false, type=QEvent::KeyPress, code=86, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, 
    nativeScanCode=55, nativeVirtualKey=118, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1861
#31 0x0588a2f5 in QKeyMapperPrivate::translateKeyEvent (this=0x8dcd908, keyWidget=0x9be9930, event=0xbfbc5fcc, grab=16) at kernel/qkeymapper_x11.cpp:1831
#32 0x0585d757 in QApplication::x11ProcessEvent (this=0xbfbc6364, event=0xbfbc5fcc) at kernel/qapplication_x11.cpp:3394
#33 0x0588d60a in x11EventSourceDispatch (s=0x8da56a8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x06a365e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#35 0x06a3a2d8 in ?? () from /lib/libglib-2.0.so.0
#36 0x06a3a4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#37 0x004e75d5 in QEventDispatcherGlib::processEvents (this=0x8d7f070, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#38 0x0588d135 in QGuiEventDispatcherGlib::processEvents (this=0x8d7f070, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x004ba059 in QEventLoop::processEvents (this=0xbfbc62c4, flags=) at kernel/qeventloop.cpp:149
#40 0x004ba4aa in QEventLoop::exec (this=0xbfbc62c4, flags=...) at kernel/qeventloop.cpp:201
#41 0x004be69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#42 0x057cd577 in QApplication::exec () at kernel/qapplication.cpp:3579
#43 0x0804b472 in main (argc=1, argv=0xbfbc6584) at ../../../kontact/src/main.cpp:224

Reported using DrKonqi
Comment 1 Jay 2010-08-08 20:41:43 UTC

*** This bug has been marked as a duplicate of bug 219959 ***