Bug 180944 - selecting "Cut" from right-click menu crashes KWord
Summary: selecting "Cut" from right-click menu crashes KWord
Status: RESOLVED DUPLICATE of bug 175911
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-16 09:57 UTC by Alexander van Loon
Modified: 2009-01-25 22:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
file which cut crashes (201.27 KB, application/vnd.oasis.opendocument.text)
2009-01-24 13:15 UTC, Martin Bednar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander van Loon 2009-01-16 09:57:57 UTC
Version:           2.0 beta 5 (using Devel)
OS:                Linux
Installed from:    Compiled sources

If you cut some text in KWord by using the right-click (context?) menu and selecting "Cut", KWord will crash. It will not crash and cut text correctly if you use the Ctrl+X shortcut though. I'm using beta 5 on the KDE Four Live CD which was released yesterday.
Comment 1 T Zachmann 2009-01-17 05:41:36 UTC
I cannot reproduce this with current svn. Maybe there is something I do different to you or the bug was fixed by one of the commits in the meantime. 

Maybe you can attach a document when you describe exactly which text is selected when you use the cut from the context menu so that we can verify that the bug is indeed fixed. 
Comment 2 Martin Bednar 2009-01-24 13:15:57 UTC
Created attachment 30559 [details]
file which cut crashes

Reproduced with Beta5 using this file : open kword with it, scroll down to text, select any text, right click -> cut = crash.
Comment 3 T Zachmann 2009-01-25 08:03:04 UTC
I selected the following text:

vůči 		Lenovo Technology B.V. organizační složce 
Praha 4, Chodov, V Parku č.o.4,č.p.2294, PSČ 148 00
IČ: 272 43 869

After pressing Cut from the popup menu I got the following crash:

Application: KWord (kword), signal SIGABRT

Thread 1 (Thread 0xb59956c0 (LWP 23219)):
[KCrash Handler]
#6  0xb7f5c410 in __kernel_vsyscall ()
#7  0xb68a7085 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb68a8a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb6b9434d in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbfc24e90 "ASSERT failure in QVector<T>::operator[]: \"index out of range\", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 325") at global/qglobal.cpp:2102
#10 0xb6b943d1 in qFatal (msg=0xb6ce9b3c "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2303
#11 0xb6b94428 in qt_assert_x (where=0xb7697c32 "QVector<T>::operator[]", what=0xb7697a88 "index out of range", file=0xb7697aa8 "../../include/QtCore/../../src/corelib/tools/qvector.h", line=325)
    at global/qglobal.cpp:1880
#12 0xb71780f1 in QVector<QScriptItem>::operator[] (this=0x834ae18, i=-1) at ../../include/QtCore/../../src/corelib/tools/qvector.h:325
#13 0xb7274682 in QTextLineItemIterator (this=0xbfc27234, _eng=0x84d2358, lineNum=0, pos=@0xbfc278e0, _selection=0x0) at text/qtextlayout.cpp:958
#14 0xb72749fa in QTextLine::draw (this=0xbfc27908, p=0xbfc2814c, pos=@0xbfc278e0, selection=0x0) at text/qtextlayout.cpp:1895
#15 0xb7276277 in QTextLayout::draw (this=0x84d7f00, p=0xbfc2814c, pos=@0xbfc27a08, selections=@0xbfc27a7c, clip=@0xbfc279a8) at text/qtextlayout.cpp:1123
#16 0xb39a76cd in Layout::draw (this=0x8e0c618, painter=0xbfc2814c, context=@0xbfc27b1c) at /home/tz/develop/kde/svn/koffice/plugins/textshape/Layout.cpp:763
#17 0xb41a069a in KoTextDocumentLayout::draw (this=0x84b66e0, painter=0xbfc2814c, context=@0xbfc27b1c) at /home/tz/develop/kde/svn/koffice/libs/kotext/KoTextDocumentLayout.cpp:192
#18 0xb398e1c7 in TextShape::paintComponent (this=0x8313570, painter=@0xbfc2814c, converter=@0x83aee90) at /home/tz/develop/kde/svn/koffice/plugins/textshape/TextShape.cpp:150
#19 0xb401f3fd in KoShapeContainer::paint (this=0x8313570, painter=@0xbfc2814c, converter=@0x83aee90) at /home/tz/develop/kde/svn/koffice/libs/flake/KoShapeContainer.cpp:112
#20 0xb402313b in KoShapeManager::paintShape (this=0x8917fb8, shape=0x8313570, painter=@0xbfc2814c, converter=@0x83aee90, forPrint=false)
    at /home/tz/develop/kde/svn/koffice/libs/flake/KoShapeManager.cpp:226
#21 0xb4021e05 in KoShapeManagerPaintingStrategy::paint (this=0x8918298, shape=0x8313570, painter=@0xbfc2814c, converter=@0x83aee90, forPrint=false)
    at /home/tz/develop/kde/svn/koffice/libs/flake/KoShapeManagerPaintingStrategy.cpp:52
#22 0xb4023591 in KoShapeManager::paint (this=0x8917fb8, painter=@0xbfc2814c, converter=@0x83aee90, forPrint=false) at /home/tz/develop/kde/svn/koffice/libs/flake/KoShapeManager.cpp:200
#23 0xb424e429 in KWCanvas::paintEvent (this=0x8916a60, ev=0xbfc2866c) at /home/tz/develop/kde/svn/koffice/kword/part/KWCanvas.cpp:270
#24 0xb70ae37e in QWidget::event (this=0x8916a60, event=0xbfc2866c) at kernel/qwidget.cpp:7301
#25 0xb70508c5 in QApplicationPrivate::notify_helper (this=0x805afa0, receiver=0x8916a60, e=0xbfc2866c) at kernel/qapplication.cpp:3803
#26 0xb70524ae in QApplication::notify (this=0xbfc29f0c, receiver=0x8916a60, e=0xbfc2866c) at kernel/qapplication.cpp:3768
#27 0xb7a12ebb in KApplication::notify (this=0xbfc29f0c, receiver=0x8916a60, event=0xbfc2866c) at /home/tz/develop/kde/svn/kdelibs/kdeui/kernel/kapplication.cpp:311
#28 0xb6c9270a in QCoreApplication::notifyInternal (this=0xbfc29f0c, receiver=0x8916a60, event=0xbfc2866c) at kernel/qcoreapplication.cpp:583
#29 0xb705c79f in QCoreApplication::sendSpontaneousEvent (receiver=0x8916a60, event=0xbfc2866c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#30 0xb70bc0ce in qt_sendSpontaneousEvent (receiver=0x8916a60, event=0xbfc2866c) at kernel/qapplication_x11.cpp:4588
#31 0xb70b5d87 in QWidgetPrivate::drawWidget (this=0x8917ce0, pdev=0x8200234, rgn=@0xbfc287ec, offset=@0xbfc287c4, flags=4, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4636
#32 0xb70b6425 in QWidgetPrivate::paintSiblingsRecursive (this=0x8919e48, pdev=0x8200234, siblings=@0xbfc28934, index=0, rgn=@0xbfc289dc, offset=@0xbfc289b4, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4735
#33 0xb70b60b5 in QWidgetPrivate::drawWidget (this=0x8919e48, pdev=0x8200234, rgn=@0xbfc289dc, offset=@0xbfc289b4, flags=4, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4677
#34 0xb70b6425 in QWidgetPrivate::paintSiblingsRecursive (this=0x8918ac8, pdev=0x8200234, siblings=@0xbfc28b24, index=1, rgn=@0xbfc28bcc, offset=@0xbfc28ba4, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4735
#35 0xb70b60b5 in QWidgetPrivate::drawWidget (this=0x8918ac8, pdev=0x8200234, rgn=@0xbfc28bcc, offset=@0xbfc28ba4, flags=4, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4677
#36 0xb70b6425 in QWidgetPrivate::paintSiblingsRecursive (this=0x891c888, pdev=0x8200234, siblings=@0xbfc28d14, index=3, rgn=@0xbfc28dbc, offset=@0xbfc28d94, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4735
#37 0xb70b60b5 in QWidgetPrivate::drawWidget (this=0x891c888, pdev=0x8200234, rgn=@0xbfc28dbc, offset=@0xbfc28d94, flags=4, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4677
#38 0xb70b6425 in QWidgetPrivate::paintSiblingsRecursive (this=0x84b1688, pdev=0x8200234, siblings=@0xbfc28f04, index=4, rgn=@0xbfc28fac, offset=@0xbfc28f84, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4735
#39 0xb70b60b5 in QWidgetPrivate::drawWidget (this=0x84b1688, pdev=0x8200234, rgn=@0xbfc28fac, offset=@0xbfc28f84, flags=4, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4677
#40 0xb70b6425 in QWidgetPrivate::paintSiblingsRecursive (this=0x820b8f8, pdev=0x8200234, siblings=@0xbfc290f4, index=0, rgn=@0xbfc2919c, offset=@0xbfc29174, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4735
#41 0xb70b60b5 in QWidgetPrivate::drawWidget (this=0x820b8f8, pdev=0x8200234, rgn=@0xbfc2919c, offset=@0xbfc29174, flags=4, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4677
#42 0xb70b6425 in QWidgetPrivate::paintSiblingsRecursive (this=0x81f6428, pdev=0x8200234, siblings=@0xbfc294e4, index=14, rgn=@0xbfc2921c, offset=@0x8201dfc, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4735
#43 0xb70b62e7 in QWidgetPrivate::paintSiblingsRecursive (this=0x81f6428, pdev=0x8200234, siblings=@0xbfc294e4, index=37, rgn=@0xbfc2929c, offset=@0x8201dfc, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4725
#44 0xb70b62e7 in QWidgetPrivate::paintSiblingsRecursive (this=0x81f6428, pdev=0x8200234, siblings=@0xbfc294e4, index=38, rgn=@0xbfc2931c, offset=@0x8201dfc, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4725
#45 0xb70b62e7 in QWidgetPrivate::paintSiblingsRecursive (this=0x81f6428, pdev=0x8200234, siblings=@0xbfc294e4, index=55, rgn=@0xbfc2939c, offset=@0x8201dfc, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4725
#46 0xb70b62e7 in QWidgetPrivate::paintSiblingsRecursive (this=0x81f6428, pdev=0x8200234, siblings=@0xbfc294e4, index=57, rgn=@0xbfc29600, offset=@0x8201dfc, flags=4, sharedPainter=0x8e50ff0)
    at kernel/qwidget.cpp:4725
#47 0xb70b60b5 in QWidgetPrivate::drawWidget (this=0x81f6428, pdev=0x8200234, rgn=@0xbfc29600, offset=@0x8201dfc, flags=5, sharedPainter=0x8e50ff0) at kernel/qwidget.cpp:4677
#48 0xb7226e3a in QWidgetBackingStore::cleanRegion (this=0x8201df0, rgn=@0xbfc29650, widget=0x819eac0, recursiveCopyToScreen=true) at painting/qbackingstore.cpp:1039
#49 0xb72276ed in qt_syncBackingStore (widget=0x819eac0) at painting/qbackingstore.cpp:313
#50 0xb70ae875 in QWidget::event (this=0x819eac0, event=0x8d97e18) at kernel/qwidget.cpp:7447
#51 0xb744096b in QMainWindow::event (this=0x819eac0, event=0x8d97e18) at widgets/qmainwindow.cpp:1268
#52 0xb7ad87ab in KMainWindow::event (this=0x819eac0, ev=0x8d97e18) at /home/tz/develop/kde/svn/kdelibs/kdeui/widgets/kmainwindow.cpp:1074
#53 0xb7b18927 in KXmlGuiWindow::event (this=0x819eac0, ev=0x8d97e18) at /home/tz/develop/kde/svn/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:133
#54 0xb70508c5 in QApplicationPrivate::notify_helper (this=0x805afa0, receiver=0x819eac0, e=0x8d97e18) at kernel/qapplication.cpp:3803
#55 0xb70524ae in QApplication::notify (this=0xbfc29f0c, receiver=0x819eac0, e=0x8d97e18) at kernel/qapplication.cpp:3768
#56 0xb7a12ebb in KApplication::notify (this=0xbfc29f0c, receiver=0x819eac0, event=0x8d97e18) at /home/tz/develop/kde/svn/kdelibs/kdeui/kernel/kapplication.cpp:311
#57 0xb6c9270a in QCoreApplication::notifyInternal (this=0xbfc29f0c, receiver=0x819eac0, event=0x8d97e18) at kernel/qcoreapplication.cpp:583
#58 0xb704d53d in QCoreApplication::sendEvent (receiver=0x819eac0, event=0x8d97e18) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#59 0xb6c92c22 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x804b410) at kernel/qcoreapplication.cpp:1195
#60 0xb6c92dd3 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1091
#61 0xb70fb046 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#62 0xb6cc2773 in postEventSourceDispatch (s=0x805d310) at kernel/qeventdispatcher_glib.cpp:205
#63 0xb672bcc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#64 0xb672f083 in ?? () from /usr/lib/libglib-2.0.so.0
#65 0xb672f63e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#66 0xb6cc1b8c in QEventDispatcherGlib::processEvents (this=0x805b0d8, flags=@0xbfc29e04) at kernel/qeventdispatcher_glib.cpp:319
#67 0xb70f968c in QGuiEventDispatcherGlib::processEvents (this=0x805b0d8, flags=@0xbfc29e34) at kernel/qguieventdispatcher_glib.cpp:198
#68 0xb6c8f5ca in QEventLoop::processEvents (this=0xbfc29eb0, flags=@0xbfc29e74) at kernel/qeventloop.cpp:143
#69 0xb6c8f809 in QEventLoop::exec (this=0xbfc29eb0, flags=@0xbfc29eb8) at kernel/qeventloop.cpp:190
#70 0xb6c92ef3 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#71 0xb70505de in QApplication::exec () at kernel/qapplication.cpp:3331
#72 0xb7f57e82 in kdemain (argc=1, argv=0xbfc2a004) at /home/tz/develop/kde/svn/koffice/kword/part/main.cpp:38
#73 0x08048736 in main (argc=) at /home/ko2/koffice-build/kword/part/kword_dummy.cpp:3

Comment 4 Alexander van Loon 2009-01-25 10:50:37 UTC
I just fired up the KDE Four Live CD of 15 januari with KOffice beta 5 again, which I also used when I reported this bug. This time it wasn't possible for me to trigger the bug. I didn't try cutting from the document attached here though, when I was affected by the bug any attempt to cut would crash KWord no matter what AFAIK. Fortunately I see you guys already figured it out. Thank you.
Comment 5 Thomas Zander 2009-01-25 22:05:55 UTC

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