View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010925 | Scribus | Import / Export | public | 2012-07-21 15:22 | 2012-08-02 19:53 |
Reporter | ale | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.4.2.svn | ||||
Fixed in Version | 1.4.2.svn | ||||
Summary | 0010925: Crash when importing an .odt with bullet lists in it | ||||
Description | When importing the attached .odt file, Scribus 1.4 crashes. Scribus 1.5svn does not. | ||||
Additional Information | Program received signal SIGSEGV, Segmentation fault. 0x00007fffdf67548d in std::_Bit_reference::operator bool (this=0x7fffffffb940) at /usr/include/c++/4.7/bits/stl_bvector.h:82 82 { return !!(*_M_p & _M_mask); } (gdb) bt #0 0x00007fffdf67548d in std::_Bit_reference::operator bool (this=0x7fffffffb940) at /usr/include/c++/4.7/bits/stl_bvector.h:82 0000001 0x00007fffdf673690 in ContentReader::startElement (this=0x1482d70, name=..., attrs=...) at /home/ale/docs/src/scribus14/scribus/plugins/gettext/sxwim/contentreader.cpp:134 0000002 0x00007fffdf674c5c in ContentReader::startElement (fullname=0x21120cd "text:list-item", atts=0x0) at /home/ale/docs/src/scribus14/scribus/plugins/gettext/sxwim/contentreader.cpp:336 0000003 0x00007ffff598e47c in xmlParseStartTag () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000004 0x00007ffff5999138 in xmlParseElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000005 0x00007ffff5997d38 in xmlParseContent () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000006 0x00007ffff5999053 in xmlParseElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000007 0x00007ffff5997d38 in xmlParseContent () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000008 0x00007ffff5999053 in xmlParseElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000009 0x00007ffff5997d38 in xmlParseContent () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000010 0x00007ffff5999053 in xmlParseElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000011 0x00007ffff5997d38 in xmlParseContent () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000012 0x00007ffff5999053 in xmlParseElement () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000013 0x00007ffff599a022 in xmlParseDocument () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000014 0x00007ffff599a82c in xmlSAXParseFileWithData () from /usr/lib/x86_64-linux-gnu/libxml2.so.2 0000015 0x00007fffdf674a6f in ContentReader::parse (this=0x1482d70, fileName=...) at /home/ale/docs/src/scribus14/scribus/plugins/gettext/sxwim/contentreader.cpp:284 0000016 0x00007fffdf67cb6b in SxwIm::SxwIm (this=0x148b710, fileName=..., enc=..., w=0x1ce6c60, textOnly=false) at /home/ale/docs/src/scribus14/scribus/plugins/gettext/sxwim/sxwim.cpp:104 0000017 0x00007fffdf67c2a5 in GetText (filename=..., encoding=..., textOnly=false, writer=0x1ce6c60) at /home/ale/docs/src/scribus14/scribus/plugins/gettext/sxwim/sxwim.cpp:55 0000018 0x00000000008acf2b in gtGetText::CallDLL (this=0x1ca34c0, idata=..., filePath=..., encoding=..., textOnly=false, append=false, importItem=0x210ea70) at /home/ale/docs/src/scribus14/scribus/gtgettext.cpp:250 0000019 0x00000000008ac106 in gtGetText::launchImporter (this=0x1ca34c0, importer=4, filename=..., textOnly=false, encoding=..., append=false, target=0x0) at /home/ale/docs/src/scribus14/scribus/gtgettext.cpp:107 0000020 0x0000000000c52463 in ScribusMainWindow::slotGetContent (this=0x14a5f80) at /home/ale/docs/src/scribus14/scribus/scribus.cpp:4353 0000021 0x00000000006af38f in ScribusMainWindow::qt_static_metacall (_o=0x14a5f80, _c=QMetaObject::InvokeMetaMethod, _id=58, _a=0x7fffffffcae0) at /home/ale/docs/src/scribus14/build/scribus/moc_scribus.cxx:463 0000022 0x00007ffff65685cf in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000023 0x00007ffff7004502 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000024 0x00007ffff70046f0 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000025 0x00007ffff7004857 in QAction::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000026 0x00007ffff700a70c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000027 0x00007ffff700eb8a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000028 0x00007ffff6552bde in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000029 0x00007ffff703b534 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000030 0x00007ffff703ca43 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000031 0x00007ffff7010869 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000032 0x00007ffff6552bde in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000033 0x00007ffff70a7bca in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000034 0x00007ffff70a8001 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000035 0x00007ffff7084c58 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000036 0x00007ffff70abcf2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000037 0x00007ffff219c205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 0000038 0x00007ffff219c538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 0000039 0x00007ffff219c5f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 0000040 0x00007ffff65812e6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000041 0x00007ffff70ab96e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 0000042 0x00007ffff655192f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000043 0x00007ffff6551bb8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000044 0x00007ffff6556d78 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 0000045 0x0000000000ea9e83 in mainApp (argc=1, argv=0x7fffffffe4e8) at /home/ale/docs/src/scribus14/scribus/main_nix.cpp:84 0000046 0x0000000000ea9e10 in main (argc=1, argv=0x7fffffffe4e8) at /home/ale/docs/src/scribus14/scribus/main_nix.cpp:52 | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
|
|
Both 1.4.x and 1.5.0svn crash when using the OpenOffice.org Writer importer. Everything works better when using the OpenDocument importer.... The OpenOffice.org Writer importer is for legacy *.sxw files and is not expected to work quite well with OpenDocument files. |
|
ok! i think that we should change the label for the .sxw... if one does not notice the difference (or does not know what opendocument is), she will choose "openoffice" as a source when using writer's files. i don't think that anybody still uses .sxw files, so it should get a not so sexy label. i'm attaching a patch that makes more visible the extension of the files, which is what most people know. for 1.5svn i have the feeling that there is no urgent need for action, since "Automatic" is the default choice and it picks the correct importer. but i have the feeling that the label "OpenOffice Writer documents" should be changed there, too! (... or even removed...): if i'm using Open or Libre -Office this is what i will be choosing. (in 1.4 the alternative to changing the labels is indeed to preselect "Automatic"... if it works as good as in 1.5svn!) |
|
odt_sxw.diff (809 bytes)
Index: plugins/gettext/odtim/odtim.cpp =================================================================== --- plugins/gettext/odtim/odtim.cpp (revision 17728) +++ plugins/gettext/odtim/odtim.cpp (working copy) @@ -44,7 +44,7 @@ QString FileFormatName() { - return QObject::tr("OpenDocument Text Documents"); + return QObject::tr("ODT OpenDocument Files"); } QStringList FileExtensions() Index: plugins/gettext/sxwim/sxwim.cpp =================================================================== --- plugins/gettext/sxwim/sxwim.cpp (revision 17728) +++ plugins/gettext/sxwim/sxwim.cpp (working copy) @@ -42,7 +42,7 @@ QString FileFormatName() { - return QObject::tr("OpenOffice.org Writer Documents"); + return QObject::tr("SXW OO.org Writer Files"); } QStringList FileExtensions() |
|
I fixed the crash, but for better result please use the OpenDocument importer. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-07-21 15:22 | ale | New Issue | |
2012-07-21 15:23 | ale | File Added: test_bullets.odt | |
2012-07-21 15:46 | jghali | Note Added: 0028536 | |
2012-07-21 16:42 | ale | Note Added: 0028537 | |
2012-07-21 16:42 | ale | File Added: odt_sxw.diff | |
2012-07-21 16:46 | jghali | Note Added: 0028538 | |
2012-07-21 16:46 | jghali | Status | new => resolved |
2012-07-21 16:46 | jghali | Fixed in Version | => 1.4.2.svn |
2012-07-21 16:46 | jghali | Resolution | open => fixed |
2012-07-21 16:46 | jghali | Assigned To | => jghali |
2012-08-02 19:53 | cbradney | Status | resolved => closed |