Bug 334422

Summary: error when open docx
Product: [Applications] calligrawords Reporter: khrysRo <bymask>
Component: filtersAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: cbo, inge
Priority: NOR Keywords: drkonqi
Version First Reported In: 2.8.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description khrysRo 2014-05-06 16:11:58 UTC
Application: calligrawords (2.8.2)
KDE Platform Version: 4.13.0
Qt Version: 4.8.5
Operating System: Linux 3.11.10-7-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

-- Information about the crash:
everytime when I open a .docx documment, calligra words restarts, before don't happen this. in release 2.7 p.e.

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (calligrawords), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007fa089d2988c in WordsTableHandler::tableEnd (this=0x2bd9d20) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/tablehandler.cpp:241
#6  0x00007fa089cfe1bb in Document::slotTableFound (this=0x2b02df0, table=0x2b425f0) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/document.cpp:909
#7  0x00007fa089d0011c in Document::qt_static_metacall (_o=0x2f0eeb5, _c=4067591964, _id=1, _a=0x2) at /usr/src/debug/calligra-2.8.2/build/filters/words/msword-odf/document.moc:76
#8  0x00007fa0aaacad68 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#9  0x00007fa089d08adb in tableFound (_t1=0x2b425f0, this=0x2bda140) at /usr/src/debug/calligra-2.8.2/build/filters/words/msword-odf/texthandler.moc:168
#10 WordsTextHandler::tableEndFound (this=0x2bda140) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/texthandler.cpp:691
#11 0x00007fa089a46dd7 in wvWare::Parser9x::processParagraph (this=this@entry=0x2b541f0, fc=fc@entry=13316) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/wv2/src/parser9x.cpp:724
#12 0x00007fa089a49b0a in wvWare::Parser9x::processPiece<unsigned short> (this=this@entry=0x2b541f0, string=string@entry=0x2ec7a70, fc=fc@entry=2048, limit=limit@entry=6482, position=...) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/wv2/src/parser9x.cpp:593
#13 0x00007fa089a48453 in wvWare::Parser9x::parseHelper (this=this@entry=0x2b541f0, startPos=...) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/wv2/src/parser9x.cpp:523
#14 0x00007fa089a48900 in wvWare::Parser9x::parseBody (this=this@entry=0x2b541f0) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/wv2/src/parser9x.cpp:478
#15 0x00007fa089a48a82 in wvWare::Parser9x::parse (this=0x2b541f0) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/wv2/src/parser9x.cpp:175
#16 0x00007fa089cfc1a8 in Document::parse (this=this@entry=0x2b02df0) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/document.cpp:441
#17 0x00007fa089cf78ab in MSWordOdfImport::convert (this=<optimized out>, from=..., to=...) at /usr/src/debug/calligra-2.8.2/filters/words/msword-odf/mswordodfimport.cpp:239
#18 0x00007fa096084c38 in CalligraFilter::ChainLink::invokeFilter (this=0x2a78b70, parentChainLink=parentChainLink@entry=0x0) at /usr/src/debug/calligra-2.8.2/libs/main/KoFilterChainLink.cpp:90
#19 0x00007fa09607e88d in KoFilterChain::invokeChain (this=0x2879b70) at /usr/src/debug/calligra-2.8.2/libs/main/KoFilterChain.cpp:95
#20 0x00007fa0960785c7 in KoFilterManager::importDocument (this=0x2aa9c40, url=..., documentMimeType=..., status=@0x7ffff2729a50: 44692896) at /usr/src/debug/calligra-2.8.2/libs/main/KoFilterManager.cpp:170
#21 0x00007fa09601b23f in KoDocument::openFile (this=0x2673400) at /usr/src/debug/calligra-2.8.2/libs/main/KoDocument.cpp:1494
#22 0x00007fa0960219b3 in openFile (this=0x25a5a30) at /usr/src/debug/calligra-2.8.2/libs/main/KoDocument.cpp:276
#23 openLocalFile (this=0x25a5a30) at /usr/src/debug/calligra-2.8.2/libs/main/KoDocument.cpp:298
#24 KoDocument::openUrlInternal (this=this@entry=0x2673400, url=...) at /usr/src/debug/calligra-2.8.2/libs/main/KoDocument.cpp:2698
#25 0x00007fa096021d78 in KoDocument::openUrl (this=0x2673400, _url=...) at /usr/src/debug/calligra-2.8.2/libs/main/KoDocument.cpp:1261
#26 0x00007fa0960b10af in KoPart::openExistingFile (this=0x2677ce0, url=...) at /usr/src/debug/calligra-2.8.2/libs/main/KoPart.cpp:251
#27 0x00007fa0aaacad68 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#28 0x00007fa096097222 in openExistingFile (_t1=..., this=<optimized out>) at /usr/src/debug/calligra-2.8.2/build/libs/main/KoOpenPane.moc:120
#29 KoOpenPane::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/calligra-2.8.2/build/libs/main/KoOpenPane.moc:64
#30 0x00007fa0aaacad68 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#31 0x00007fa0960948e2 in KoDetailsPane::openUrl (this=this@entry=0x2848e40, _t1=...) at /usr/src/debug/calligra-2.8.2/build/libs/main/KoDetailsPane.moc:118
#32 0x00007fa09609a430 in KoRecentDocumentsPane::openFile (this=0x2848e40, index=...) at /usr/src/debug/calligra-2.8.2/libs/main/KoRecentDocumentsPane.cpp:214
#33 0x00007fa09609497d in KoDetailsPane::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/calligra-2.8.2/build/libs/main/KoDetailsPane.moc:66
#34 0x00007fa0aaacad68 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#35 0x00007fa0aa128a35 in QAbstractItemView::doubleClicked(QModelIndex const&) () from /usr/lib64/libQtGui.so.4
#36 0x00007fa0aa16eef3 in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#37 0x00007fa0a9c85f3e in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#38 0x00007fa0aa022b6e in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#39 0x00007fa0aa131df3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#40 0x00007fa0aa170d10 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#41 0x00007fa0aaab7216 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#42 0x00007fa0a9c3688c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#43 0x00007fa0a9c3cfad in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#44 0x00007fa096011517 in KoApplication::notify (this=<optimized out>, receiver=0x2882720, event=0x7ffff272a870) at /usr/src/debug/calligra-2.8.2/libs/main/KoApplication.cpp:617
#45 0x00007fa0aaab70ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#46 0x00007fa0a9c3c763 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#47 0x00007fa0a9cadf7b in ?? () from /usr/lib64/libQtGui.so.4
#48 0x00007fa0a9cac9ec in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#49 0x00007fa0a9cd3882 in ?? () from /usr/lib64/libQtGui.so.4
#50 0x00007fa0a6599316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#51 0x00007fa0a6599668 in ?? () from /usr/lib64/libglib-2.0.so.0
#52 0x00007fa0a659970c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#53 0x00007fa0aaae3d55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#54 0x00007fa0a9cd3936 in ?? () from /usr/lib64/libQtGui.so.4
#55 0x00007fa0aaab5d0f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#56 0x00007fa0aaab6005 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#57 0x00007fa0aaabb13b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#58 0x00007fa096302fa5 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/calligra-2.8.2/words/app/main.cpp:44
#59 0x000000000040879e in _start ()

Reported using DrKonqi
Comment 1 Inge Wallin 2015-01-22 11:20:50 UTC
This is a very strange bug. The backtrace seems to indicate that Words is converting an Office 95 file (wvWare is the doc parser) but the bug report says docx.  Can you attach the document or something similar so that we can check it out?
Comment 2 khrysRo 2015-02-27 11:50:23 UTC
I can't attach the document because is a corporate template, but I can send you privately if you promise don't reveal the company identity
Comment 3 khrysRo 2015-02-27 11:54:56 UTC
(In reply to Inge Wallin from comment #1)
> This is a very strange bug. The backtrace seems to indicate that Words is
> converting an Office 95 file (wvWare is the doc parser) but the bug report
> says docx.  Can you attach the document or something similar so that we can
> check it out?

I can't attach the document because is a corporate template, but I can send you privately if you promise don't reveal the company identity
Comment 4 Inge Wallin 2015-02-27 11:59:42 UTC
Yes, you can send it to me personally. I'll not expose it anywhere.
Comment 5 Camilla Boemann 2015-03-04 22:39:00 UTC
Okay - it doesn't crash for me - and it loads as a docx - which makes the backtrace even weirder

Are yo sure you weren't loading some other file instead at the time?

It doesn't look completely like the pdf you sent - some green background missing and other stuff - but not completely bad either.
Comment 6 khrysRo 2015-03-04 23:09:13 UTC
it was in opensuse 13.1 some time ago, that time was the only thing open or try to open, now I have opensuse 13.2 and can't replicate he error. maybe in some way was fixed with other update 

regards. 


> El 04-03-2015, a las 19:39, Camilla Boemann <cbo@boemann.dk> escribió:
> 
> https://bugs.kde.org/show_bug.cgi?id=334422
> 
> --- Comment #5 from Camilla Boemann <cbo@boemann.dk> ---
> Okay - it doesn't crash for me - and it loads as a docx - which makes the
> backtrace even weirder
> 
> Are yo sure you weren't loading some other file instead at the time?
> 
> It doesn't look completely like the pdf you sent - some green background
> missing and other stuff - but not completely bad either.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 7 Camilla Boemann 2015-03-04 23:18:36 UTC
ok thanks