Summary: | Crash when saving file with imported text | ||
---|---|---|---|
Product: | [Applications] calligrawords | Reporter: | raoul maher <raoul_maher> |
Component: | general | Assignee: | Calligra Words Bugs <calligra-words-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | cbo, gopalakbhat, irina |
Priority: | NOR | ||
Version: | 2.4.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/049ed76921986fc1713604fc453bdf40656d750a | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
500 word plain text file made by Kate that reliably causes the crash backtrace generated after installing more debug symbols console output while reproducing crash |
Description
raoul maher
2012-04-27 11:18:14 UTC
Can you please attach the text document that you opened in calligrawords. Created attachment 73291 [details]
New crash information added by DrKonqi
calligrawords (2.5.0) on KDE Platform 4.9.00 "release 558" using Qt 4.8.2
- What I was doing when the application crashed:
I opened a plain text file with Calligra Words 2.5.0, could do everything I wanted to it (edit, apply styles), then it crashed when it tried to save it. This happened with a very long text file (560K) and also when I tested with a 500-word plain text file.
Also, when I first created and saved a new .odt document and imported the plain text file into it, it crashed on saving.
Words doesn't crash when I copy text from the text file and paste it into the .odt document, neither with normal paste nor with "paste as text".
-- Backtrace (Reduced):
#6 QList<KUndo2Command*>::append (this=0xffffffff00000001, t=@0x7fffcf5ff488) at /usr/include/QtCore/qlist.h:509
#7 0x00007fd9c452d472 in KUndo2Command::KUndo2Command (this=0x23ca660, text=..., parent=0x10d26a0) at /usr/src/debug/calligra-2.5.0/libs/kundo2/kundo2stack.cpp:119
#8 0x00007fd9c4dd15d5 in UndoTextCommand (parent=0x10d26a0, p=0x10d2a00, document=0x1093da0, this=0x23ca660) at /usr/src/debug/calligra-2.5.0/libs/kotext/KoTextEditor_undo.cpp:90
#9 KoTextEditor::Private::documentCommandAdded (this=0x10d2a00) at /usr/src/debug/calligra-2.5.0/libs/kotext/KoTextEditor_undo.cpp:149
#10 0x00007fd9c4dcdc46 in qt_static_metacall (_a=0x7fffcf5ff980, _id=<optimized out>, _o=0x10d29e0, _c=<optimized out>) at /usr/src/debug/calligra-2.5.0/build/libs/kotext/KoTextEditor.moc:399
Created attachment 73292 [details]
500 word plain text file made by Kate that reliably causes the crash
This is the smallest plain text file I've tested the crash with; any larger plain text files I tried (largest was 560K) caused Words to crash on saving too.
Created attachment 73294 [details]
backtrace generated after installing more debug symbols
Created attachment 73295 [details]
console output while reproducing crash
(In reply to comment #3) > This is the smallest plain text file I've tested the crash with; any larger > plain text files I tried (largest was 560K) caused Words to crash on saving > too. Also crashes when saving a document which has original text and imported text (create a document; type some text; save; import some additional text; try to save: crash) Ok i can reproduce now - import thing is to use the import menu item, and not just paste the text in Git commit 02473ff77fe7f85d49e69db72e635afc2a7bb861 by C. Boemann. Committed on 22/08/2012 at 16:44. Pushed by boemann into branch 'master'. We shouldn't modify the document on saving, by adding a masterpagename to first paragraph which is not what the user would expect. Think if the user would later on copy paste this paragraph to somewhere in the middle of another master page. That would copy the masterpagename to causing an unwanted pagebreak and masterpage change This was originally added in 9472dc5b to fix pagestyle not being saved, but a quick check shows that the original bug https://bugs.kde.org/show_bug.cgi?id=184858 is not reopenend by removing this code now. M +0 -8 words/part/KWOdfWriter.cpp http://commits.kde.org/calligra/02473ff77fe7f85d49e69db72e635afc2a7bb861 Git commit 049ed76921986fc1713604fc453bdf40656d750a by C. Boemann. Committed on 22/08/2012 at 16:44. Pushed by boemann into branch 'calligra/2.5'. We shouldn't modify the document on saving, by adding a masterpagename to first paragraph which is not what the user would expect. Think if the user would later on copy paste this paragraph to somewhere in the middle of another master page. That would copy the masterpagename to causing an unwanted pagebreak and masterpage change This was originally added in 9472dc5b to fix pagestyle not being saved, but a quick check shows that the original bug https://bugs.kde.org/show_bug.cgi?id=184858 is not reopenend by removing this code now. M +0 -8 words/part/KWOdfWriter.cpp http://commits.kde.org/calligra/049ed76921986fc1713604fc453bdf40656d750a |