Bug 277733 - Words crashes when editing some specific text with record changes turned on
Summary: Words crashes when editing some specific text with record changes turned on
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Unclassified
Component: general (show other bugs)
Version: Git
Platform: Ubuntu Packages Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 05:58 UTC by Kubuntiac
Modified: 2011-07-19 13:08 UTC (History)
1 user (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 Kubuntiac 2011-07-14 05:58:41 UTC
Version:           svn (using KDE 4.6.4) 
OS:                Linux

When editing some specific pieces of text copied and pasted from FireFox, with record changes turned on, Words crashes. This only happens when pasting some pieces of text and not others (even if using paste as text). It is, however, 100% consistent, when the same text is used.

Reproducible: Always

Steps to Reproduce:
1. Open http://naturalparentingsummit.com in Firefox 5 (haven't tried others)
2. Copy the text from the first two bullet points (from the word Experienced to the word Earth)
3. Paste or paste as text in a new, default words file
4. Turn on Tools > Change Tracking > Record Changes
5. Double click to select the word "guidance"
6. Start to type

Actual Results:  
Crash

Expected Results:  
No crash.

OS: Linux (i686) release 2.6.38-8-generic-pae
Compiler: cc

Backtrace:
#0  0xb69f4a7d in ?? () from /usr/lib/libQtGui.so.4
#1  0xb69f0723 in ?? () from /usr/lib/libQtGui.so.4
#2  0xb69f1eec in QTextCursor::QTextCursor(QTextBlock const&) () from /usr/lib/libQtGui.so.4
#3  0xb7d4d3a5 in KoTextEditor::registerTrackedChange (this=0x870acb0, selection=..., changeType=KoGenChange::InsertChange, title=..., format=..., prevFormat=..., applyToWholeBlock=false)
    at /home/user/Apps/calligra/calligra-src/libs/kotext/KoTextEditor.cpp:443
#4  0xb7d53358 in KoTextEditor::insertText (this=0x870acb0, text=...) at /home/user/Apps/calligra/calligra-src/libs/kotext/KoTextEditor.cpp:1169
#5  0xb1dcfcb3 in TextTool::keyPressEvent (this=0x8a4bf28, event=0xbfffe814) at /home/user/Apps/calligra/calligra-src/plugins/textshape/TextTool.cpp:1092
#6  0xb7c9f291 in KoToolProxy::keyPressEvent (this=0xaf4b5e00, event=0xbfffe814) at /home/user/Apps/calligra/calligra-src/libs/flake/KoToolProxy.cpp:369
#7  0xb267234f in KWCanvas::keyPressEvent (this=0xabe093a0, e=0xbfffe814) at /home/user/Apps/calligra/calligra-src/words/part/KWCanvas.cpp:117
#8  0xb677cd28 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#9  0xb2672307 in KWCanvas::event (this=0xabe093a0, e=0xbfffe814) at /home/user/Apps/calligra/calligra-src/words/part/KWCanvas.cpp:112
#10 0xb6724d24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0xb672a081 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0xb725732a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#13 0xb608e0bb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0xb6722b3e in ?? () from /usr/lib/libQtGui.so.4
#15 0xb67d466d in ?? () from /usr/lib/libQtGui.so.4
#16 0xb67d4abe in ?? () from /usr/lib/libQtGui.so.4
#17 0xb67ad560 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb67d8b84 in ?? () from /usr/lib/libQtGui.so.4
#19 0xb5184aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#20 0xb5185270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#21 0xb5185524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#22 0xb60bb53c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0xb67d8775 in ?? () from /usr/lib/libQtGui.so.4
#24 0xb608d289 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0xb608d522 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0xb6091ecc in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#27 0xb67228e7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#28 0xb7fdbd45 in kdemain (argc=1, argv=0xbffff334) at /home/user/Apps/calligra/calligra-src/words/part/main.cpp:43
#29 0x0804876b in main (argc=1, argv=0xbffff334) at /home/user/Apps/calligra/calligra-build/words/part/calligrawords_dummy.cpp:3
Comment 1 Sebastian Sauer 2011-07-19 13:08:23 UTC
Fixed with 1eff0124a1de4ddbfd6055d5089a24e85e6a7ed2 .