Bug 193542 - Okular crashed with opening odt
Summary: Okular crashed with opening odt
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: ODT backend (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 19:58 UTC by Michal Vyskocil
Modified: 2009-05-26 17:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A cleaned version which causes a crash (25.66 KB, application/vnd.oasis.opendocument.text)
2009-05-21 20:21 UTC, Michal Vyskocil
Details
After deletion just only one lince the document didn't cause a crash (25.65 KB, application/vnd.oasis.opendocument.text)
2009-05-21 20:22 UTC, Michal Vyskocil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Vyskocil 2009-05-21 19:58:27 UTC
Application that crashed: okular
Version of the application: 0.8.80
KDE Version: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514)) "release 126"
Qt Version: 4.5.1
Operating System: Linux 2.6.27.21-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:
Okular crashed everytimes with opening an odt. Unfortunatelly it contains a private information, so I'm not able to attach it. I'll try to clean up it.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#6  Okular::TextDocumentGenerator::loadDocument (this=0x81bcfc0, fileName=@0xbf813268, pagesVector=@0x814c868) at /usr/include/QtCore/qlinkedlist.h:72
#7  0xb46c4b79 in Okular::DocumentPrivate::openDocumentInternal (this=0x814c7b0, offer=@0xbf813020, isstdin=false, docFile=@0xbf813268, filedata=@0xbf8130a0)
    at /usr/src/debug/kdegraphics-4.2.85/okular/core/document.cpp:643
#8  0xb46d1004 in Okular::Document::openDocument (this=0x8145168, docFile=@0xbf813268, url=@0xbf8131dc, _mime=@0xbf813288) at /usr/src/debug/kdegraphics-4.2.85/okular/core/document.cpp:1607
#9  0xb47646f4 in Part::openFile (this=0x8127fe0) at /usr/src/debug/kdegraphics-4.2.85/okular/part.cpp:903
#10 0xb7eafbba in KParts::ReadOnlyPart::openUrl (this=0x8127fe0, url=@0x811f0b4) at /usr/src/debug/kdelibs-4.2.85/kparts/part.cpp:557
#11 0xb475f6dc in Part::openUrl (this=0x8127fe0, url=@0x811f0b4) at /usr/src/debug/kdegraphics-4.2.85/okular/part.cpp:1000
#12 0x0804ffb2 in Shell::openUrl (this=0x811f068, url=@0x811f0b4, page=0) at /usr/src/debug/kdegraphics-4.2.85/okular/shell/shell.cpp:131
#13 0x080500cb in Shell::delayedOpen (this=0x811f068) at /usr/src/debug/kdegraphics-4.2.85/okular/shell/shell.cpp:114
#14 0x08050e5b in Shell::qt_metacall (this=0x811f068, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf813488) at /usr/src/debug/kdegraphics-4.2.85/build/okular/shell/shell.moc:91
#15 0xb72a9dc8 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#16 0xb72ab552 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0xb72af237 in ?? () from /usr/lib/libQtCore.so.4
#18 0xb72af35c in ?? () from /usr/lib/libQtCore.so.4
#19 0xb72a426f in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#20 0xb689e69c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0xb68a699e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0xb786fb8d in KApplication::notify (this=0xbf813c4c, receiver=0x8267b78, event=0xbf813930) at /usr/src/debug/kdelibs-4.2.85/kdeui/kernel/kapplication.cpp:307
#23 0xb7293adb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#24 0xb72c3176 in ?? () from /usr/lib/libQtCore.so.4
#25 0xb72bf600 in ?? () from /usr/lib/libQtCore.so.4
#26 0xb61509c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0xb6154083 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0xb6154241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0xb72bf558 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0xb693e975 in ?? () from /usr/lib/libQtGui.so.4
#31 0xb72920fa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#32 0xb729253a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#33 0xb72949e9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#34 0xb689e517 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#35 0x0804e537 in main (argc=-1234898560, argv=0x83324c8) at /usr/src/debug/kdegraphics-4.2.85/okular/shell/main.cpp:81
Comment 1 Michal Vyskocil 2009-05-21 20:21:51 UTC
Created attachment 33902 [details]
A cleaned version which causes a crash

This is a cleaned version of document which crashed.
Comment 2 Michal Vyskocil 2009-05-21 20:22:47 UTC
Created attachment 33903 [details]
After deletion just only one lince the document didn't cause a crash
Comment 3 Brad Hards 2009-05-22 00:17:34 UTC
Can reproduce.
Comment 4 Pino Toscano 2009-05-26 16:50:37 UTC
SVN commit 973209 by pino:

properly calculate the page size, converting from points to pixels using the current screen dpi
CCBUG: 171463
CCBUG: 193916
also, it seems to fix the crash of testcase documents in #193542 (not that the resulting quality when open is that good...)
BUG: 193542


 M  +3 -1      converter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=973209
Comment 5 Pino Toscano 2009-05-26 17:05:02 UTC
SVN commit 973216 by pino:

backport: properly calculate the page size, converting from points to pixels using the current screen dpi
CCBUG: 171463
CCBUG: 193916
CCBUG: 193542


 M  +3 -1      converter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=973216