Bug 229553 - Inlining or attaching Image from Clipboard causes Kontact to crash [QMimeData::hasImage, KPIMTextEdit::TextEdit::insertFromMimeData, KMComposerEditor::insertFromMimeData]
Summary: Inlining or attaching Image from Clipboard causes Kontact to crash [QMimeData...
Status: RESOLVED DUPLICATE of bug 219959
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: 1.13.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 230359 236322 237073 238178 244195 249882 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-05 15:32 UTC by herr-schneider.m
Modified: 2010-09-19 00:26 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.96 KB, text/plain)
2010-03-24 17:28 UTC, Kai Krakow
Details
New crash information added by DrKonqi (4.58 KB, text/plain)
2010-03-30 09:22 UTC, Kapcsándi István
Details
kmail-20100507.kcrash (7.63 KB, application/octet-stream)
2010-05-07 17:36 UTC, Ladislav Nesnera
Details
New crash information added by DrKonqi (7.07 KB, text/plain)
2010-05-27 12:25 UTC, Tommy
Details
New crash information added by DrKonqi (6.16 KB, text/plain)
2010-07-04 22:17 UTC, quebec
Details
New crash information added by DrKonqi (5.58 KB, text/plain)
2010-07-05 08:29 UTC, Nicolas
Details
New crash information added by DrKonqi (5.41 KB, text/plain)
2010-07-20 03:54 UTC, john
Details
New crash information added by DrKonqi (5.98 KB, text/plain)
2010-07-26 14:27 UTC, Thierry Menigoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description herr-schneider.m 2010-03-05 15:32:41 UTC
Application: kontact (4.4.1)
KDE Platform Version: 4.4.1 (KDE 4.4.1) "release 225"
Qt Version: 4.6.2
Operating System: Linux 2.6.31.12-0.1-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
When taking a Screenshot with KSnapshot, copying to Clipboard and trying to insert this image into a KMail mail, kontact crashes, both inlining and attaching the image. Clipboard works with other apps, i.e. OpenOffice Writer.

The crash can be reproduced every time.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  QMimeData::hasImage (this=0x1b9bd50) at kernel/qmimedata.cpp:470
#6  0x00007ff9ba364748 in KPIMTextEdit::TextEdit::insertFromMimeData (this=0x1895660, source=0x1b9bd50) at /usr/src/debug/kdepimlibs-4.4.1/kpimtextedit/textedit.cpp:546
#7  0x00007ff9a769bc1d in KMComposerEditor::insertFromMimeData (this=0x1895660, source=0x1b9bd50) at /usr/src/debug/kdepim-4.4.1/kmail/kmcomposereditor.cpp:172
#8  0x00007ff9bf886b99 in KTextEdit::Private::handleShortcut (this=0x189e5f0, event=<value optimized out>) at /usr/src/debug/kdelibs-4.4.1/kdeui/widgets/ktextedit.cpp:338
#9  0x00007ff9bf88744d in KTextEdit::keyPressEvent (this=0x1895660, event=0xffffffff) at /usr/src/debug/kdelibs-4.4.1/kdeui/widgets/ktextedit.cpp:1059
#10 0x00007ff9bf88758b in KRichTextEdit::keyPressEvent (this=0x1895660, event=0x7fff1a0f4a70) at /usr/src/debug/kdelibs-4.4.1/kdeui/widgets/krichtextedit.cpp:482
#11 0x00007ff9ba364fb5 in KPIMTextEdit::TextEdit::keyPressEvent (this=0x1895660, e=0xffffffff) at /usr/src/debug/kdepimlibs-4.4.1/kpimtextedit/textedit.cpp:246
#12 0x00007ff9c028973e in KPIM::KMeditor::keyPressEvent (this=0x1895660, e=0x7fff1a0f4a70) at /usr/src/debug/kdepim-4.4.1/libkdepim/kmeditor.cpp:202
#13 0x00007ff9be1e8e1e in QWidget::event (this=0x1895660, event=0x7fff1a0f4a70) at kernel/qwidget.cpp:8033
#14 0x00007ff9be58d5b6 in QFrame::event (this=0x1895660, e=0x7fff1a0f4a70) at widgets/qframe.cpp:557
#15 0x00007ff9be61896b in QAbstractScrollArea::event (this=0x1895660, e=0x7fff1a0f4a70) at widgets/qabstractscrollarea.cpp:989
#16 0x00007ff9be603ee5 in QTextEdit::event (this=0x1895660, e=0x7fff1a0f4a70) at widgets/qtextedit.cpp:1070
#17 0x00007ff9be192e1c in QApplicationPrivate::notify_helper (this=0x649b50, receiver=0x1895660, e=0x7fff1a0f4a70) at kernel/qapplication.cpp:4300
#18 0x00007ff9be19abb1 in QApplication::notify (this=<value optimized out>, receiver=0x1895660, e=0x7fff1a0f4a70) at kernel/qapplication.cpp:3763
#19 0x00007ff9bf734456 in KApplication::notify (this=0x7fff1a0f5a30, receiver=0x1895660, event=0x7fff1a0f4a70) at /usr/src/debug/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302
#20 0x00007ff9bedd698c in QCoreApplication::notifyInternal (this=0x7fff1a0f5a30, receiver=0x1895660, event=0x7fff1a0f4a70) at kernel/qcoreapplication.cpp:704
#21 0x00007ff9be23c22a in QKeyMapper::sendKeyEvent (keyWidget=0x1895660, grab=<value optimized out>, type=KeyPress, code=86, modifiers=<value optimized out>, text=..., autorepeat=false, count=1, 
    nativeScanCode=55, nativeVirtualKey=118, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1861
#22 0x00007ff9be23e7a0 in QKeyMapperPrivate::translateKeyEvent (this=0x6927a0, keyWidget=0x1895660, event=<value optimized out>, grab=255) at kernel/qkeymapper_x11.cpp:1831
#23 0x00007ff9be217234 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff1a0f5640) at kernel/qapplication_x11.cpp:3394
#24 0x00007ff9be241932 in x11EventSourceDispatch (s=0x6588c0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#25 0x00007ff9b65ebdee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00007ff9b65ef7b8 in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00007ff9b65ef8e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00007ff9bedfff06 in QEventDispatcherGlib::processEvents (this=0x613810, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#29 0x00007ff9be24151e in QGuiEventDispatcherGlib::processEvents (this=0x7ff9bee7c87e, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007ff9bedd52a2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007ff9bedd567c in QEventLoop::exec (this=0x7fff1a0f5970, flags=) at kernel/qeventloop.cpp:201
#32 0x00007ff9bedd93cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#33 0x0000000000403ede in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.4.1/kontact/src/main.cpp:224

Reported using DrKonqi
Comment 1 Dario Andres 2010-03-16 13:23:58 UTC
*** Bug 230359 has been marked as a duplicate of this bug. ***
Comment 2 Kai Krakow 2010-03-24 17:28:42 UTC
Created attachment 42239 [details]
New crash information added by DrKonqi

I can reproduce this copying an image or part of an image from Gimp to clipboard and then trying to paste it inline into a new mail in KMail. Result is that the system becomes unresponsive for half a second or so and the harddisk starts to work, then KMail crashes.

What really pissed me off (sorry) is, that KMail didn't restore the mail content I worked on for about 15 minutes before. This feature was there in KMail 3.5 which reopened mail drafts (even unsaved ones) right after a crash. :-(
Comment 3 Kapcsándi István 2010-03-30 09:22:02 UTC
Created attachment 42372 [details]
New crash information added by DrKonqi

Steps to reproduce:
1. take a snapshot with ksnapshot
2. click on 'copy to clipboard'
3. go to kmail, create a new mail
4. paste the image into the mail as inline or as attachment.
Last step cause kmail crash.
Comment 4 Ladislav Nesnera 2010-05-07 17:36:56 UTC
Created attachment 43341 [details]
kmail-20100507.kcrash

I have the same problem (Comment #3) with Qt: 4.6.2; KDE Development Platform: 4.4.3 (KDE 4.4.3); KMail: 1.13.3
Comment 5 Tommy 2010-05-27 12:25:29 UTC
Created attachment 43934 [details]
New crash information added by DrKonqi

The fall makes insertion of graphics from the clipboard
Comment 6 Jonathan Thomas 2010-05-27 20:51:34 UTC
*** Bug 236322 has been marked as a duplicate of this bug. ***
Comment 7 Jonathan Thomas 2010-05-27 20:51:38 UTC
*** Bug 237073 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2010-06-06 23:01:21 UTC
*** Bug 238178 has been marked as a duplicate of this bug. ***
Comment 9 quebec 2010-07-04 22:17:45 UTC
Created attachment 48593 [details]
New crash information added by DrKonqi

I made a screenshoot with KSnapshot and it's exactly the same behavior at my system.
Comment 10 Nicolas 2010-07-05 08:29:39 UTC
Created attachment 48597 [details]
New crash information added by DrKonqi

Same behaviour:
[CTRL+V] to insert image into new Mail -> Add Image as Inline
Comment 11 Nicolas L. 2010-07-12 23:53:24 UTC
*** Bug 244195 has been marked as a duplicate of this bug. ***
Comment 12 john 2010-07-20 03:54:22 UTC
Created attachment 49322 [details]
New crash information added by DrKonqi

kontact (4.4.5) on KDE Platform 4.4.92 (KDE 4.4.92 (KDE 4.5 RC2)) using Qt 4.7.0

- What I was doing when the application crashed:

Simply attempting to paste an image inline crashes Kontact every time.

-- Backtrace (Reduced):
#6  QMimeData::hasImage (this=0x2675920) at kernel/qmimedata.cpp:470
#7  0x00007f55705c7c68 in KPIMTextEdit::TextEdit::insertFromMimeData (this=0x1ebf5f0, source=0x2675920) at ../../kpimtextedit/textedit.cpp:548
[...]
#9  0x00007f5575ba8489 in KTextEdit::Private::handleShortcut (this=0x1ec7310, event=<value optimized out>) at ../../kdeui/widgets/ktextedit.cpp:340
#10 0x00007f5575ba8d5d in KTextEdit::keyPressEvent (this=0x1ebf5f0, event=0xffffffff) at ../../kdeui/widgets/ktextedit.cpp:1071
#11 0x00007f5575b9283b in KRichTextEdit::keyPressEvent (this=0x1ebf5f0, event=0x7fff45a98e40) at ../../kdeui/widgets/krichtextedit.cpp:468
Comment 13 Thierry Menigoz 2010-07-26 14:27:23 UTC
Created attachment 49487 [details]
New crash information added by DrKonqi

KMail composer crashes when I wanted to past a screenshot from Clipboard as an integrated image to my new message, just after I selected the "Integrated image" option popping up after the "Paste..." action
Comment 14 Jay 2010-08-08 20:59:57 UTC
This is the same as Bug 219959.  Additional notes: This affects only HTML format emails.  Even if the user escapes from the floating menu ("insert in-line" or "as attachment"), Kontact still crashes.  I assume that means that it's an issue with the menu code itself and not related to the clipboard content.  This still affects Kmail 1.13.2 under KDE 4.2.2.

In order to minimize data loss, set your autosave to 1 minute intervals (Kmail/Settings/Composer).
Comment 15 Jay 2010-08-08 21:03:24 UTC
*** This bug has been confirmed by popular vote. ***
Comment 16 Martin L ü c h e m 2010-08-08 21:38:10 UTC
What I do not understand: Why does the status of this bug and the corresponding bug stay "new" or "unconfirmed"? 

One more hint and "workaround" for people that prefer html mails:

If you paste the image before switching to html mode this will work. This shows exactly that the bug is linked to the html editor in kmail.

Regards, Martin
Comment 17 Martin L ü c h e m 2010-08-08 21:41:56 UTC
(In reply to comment #14)
> In order to minimize data loss, set your autosave to 1 minute intervals
> (Kmail/Settings/Composer).

Sorry to tell you but autosave does not work at my machine, no matter if 1 or 2 minutes!  Martin
Comment 18 Martin L ü c h e m 2010-08-08 21:46:28 UTC
This is really funny! If I switch to use an "external editor" (Kwrite) drag and drop will work even if the editor absolutely does not look like kwrite but the normal kmail editor. What does this mean?

Martin
Comment 19 Björn Ruberg 2010-08-09 00:38:49 UTC

*** This bug has been marked as a duplicate of bug 219959 ***
Comment 20 Christophe Marin 2010-09-19 00:26:31 UTC
*** Bug 249882 has been marked as a duplicate of this bug. ***