Bug 217135 - When i try open fb2 book okular crash
Summary: When i try open fb2 book okular crash
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: fictionbook backend (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 23:57 UTC by mityi
Modified: 2022-01-04 05:43 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.22 KB, text/plain)
2010-03-29 13:39 UTC, mityi
Details
it's file that causes this crash (646.51 KB, application/octet-stream)
2010-03-29 22:02 UTC, mityi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mityi 2009-12-02 23:57:39 UTC
Application that crashed: ark
Version of the application: 2.13
KDE Version: 4.3.3 (KDE 4.3.3)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-15-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
When i try open fb2 book okular crash

 -- Backtrace:
Application: Ark (ark), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7891700 (LWP 21951))]

Thread 2 (Thread 0xb5ee2b70 (LWP 21957)):
#0  0x01891e06 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0x00be7bf3 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00be7de1 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00be888c in ?? () from /usr/lib/libQtCore.so.4
#4  0x00be6210 in ?? () from /usr/lib/libQtCore.so.4
#5  0x024daf80 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#6  0x024db341 in ?? () from /lib/libglib-2.0.so.0
#7  0x024db853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0x00be6067 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0x00bb9c79 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0x00bba0ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0x00ac7b73 in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0x00ce008d in ?? () from /usr/lib/libkerfuffle.so.4
#13 0x00acae32 in ?? () from /usr/lib/libQtCore.so.4
#14 0x093ed80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0x01e517ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7891700 (LWP 21951)):
[KCrash Handler]
#6  0x011bc3a7 in QTextLayout::boundingRect() const () from /usr/lib/libQtGui.so.4
#7  0x01204a0c in ?? () from /usr/lib/libQtGui.so.4
#8  0x01a0b9fe in ?? () from /usr/lib/libokularcore.so.1
#9  0x01a0bbfa in Okular::TextDocumentConverter::calculateViewport(QTextDocument*, QTextBlock const&) () from /usr/lib/libokularcore.so.1
#10 0x05a36054 in ?? () from /usr/lib/kde4/okularGenerator_fb.so
#11 0x01a0da05 in Okular::TextDocumentGenerator::loadDocument(QString const&, QVector<Okular::Page*>&) () from /usr/lib/libokularcore.so.1
#12 0x019ea0a7 in ?? () from /usr/lib/libokularcore.so.1
#13 0x019f691f in Okular::Document::openDocument(QString const&, KUrl const&, KSharedPtr<KMimeType> const&) () from /usr/lib/libokularcore.so.1
#14 0x08a60433 in ?? () from /usr/lib/kde4/okularpart.so
#15 0x0067e819 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#16 0x08a528c7 in ?? () from /usr/lib/kde4/okularpart.so
#17 0x084c6abb in ?? () from /usr/lib/kde4/libarkpart.so
#18 0x084c7009 in ?? () from /usr/lib/kde4/libarkpart.so
#19 0x084bfa8b in ?? () from /usr/lib/kde4/libarkpart.so
#20 0x084b80eb in ?? () from /usr/lib/kde4/libarkpart.so
#21 0x00bc9f0b in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#22 0x00bcb5fe in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00f83f54 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00f8b67c in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x0087514a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00bbb6cb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x00bbc2b2 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#28 0x00bbc47d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#29 0x00be63ff in ?? () from /usr/lib/libQtCore.so.4
#30 0x024d7e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#31 0x024db720 in ?? () from /lib/libglib-2.0.so.0
#32 0x024db853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#33 0x00be602c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#34 0x01024be5 in ?? () from /usr/lib/libQtGui.so.4
#35 0x00bb9c79 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00bba0ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00bbc53f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#38 0x00f83dd7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#39 0x08050164 in _start ()

Reported using DrKonqi
Comment 1 mityi 2009-12-02 23:59:52 UTC
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#6  0x04f513a7 in QTextLayout::boundingRect() const () from /usr/lib/libQtGui.so.4
#7  0x04f99a0c in ?? () from /usr/lib/libQtGui.so.4
#8  0x014dd9fe in ?? () from /usr/lib/libokularcore.so.1
#9  0x014ddbfa in Okular::TextDocumentConverter::calculateViewport(QTextDocument*, QTextBlock const&) () from /usr/lib/libokularcore.so.1
#10 0x03a98054 in ?? () from /usr/lib/kde4/okularGenerator_fb.so
#11 0x014dfa05 in Okular::TextDocumentGenerator::loadDocument(QString const&, QVector<Okular::Page*>&) () from /usr/lib/libokularcore.so.1
#12 0x014bc0a7 in ?? () from /usr/lib/libokularcore.so.1
#13 0x014c891f in Okular::Document::openDocument(QString const&, KUrl const&, KSharedPtr<KMimeType> const&) () from /usr/lib/libokularcore.so.1
#14 0x0225b433 in ?? () from /usr/lib/kde4/okularpart.so
#15 0x00fce819 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#16 0x0224d8c7 in ?? () from /usr/lib/kde4/okularpart.so
#17 0x08050402 in _start ()
Comment 2 Raphael Kubo da Costa 2009-12-03 00:15:37 UTC
It appears to be a bug in Okular itself.

Can you please do the following:
 * Install the debug packages for kdegraphics and qt for your distribution and post a backtrace with all the debug symbols (they might be called kdegraphics-dbg or something like that on Ubuntu)
 * Describe what you were doing (does it crash whenever you open the file or do you have to do something specific?)
 * Is it possible to attach a file that causes this crash to the report?

Thanks.
Comment 3 mityi 2009-12-03 19:10:12 UTC
Raphael Kubo da Costa пишет:
> https://bugs.kde.org/show_bug.cgi?id=217135
>
>
> Raphael Kubo da Costa <kubito@gmail.com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Component|general                     |general
>          AssignedTo|haraldhv@stud.ntnu.no       |okular-devel@kde.org
>             Product|ark                         |okular
>
>
>
>
> --- Comment #2 from Raphael Kubo da Costa <kubito gmail com>  2009-12-03 00:15:37 ---
> It appears to be a bug in Okular itself.
>
> Can you please do the following:
>  * Install the debug packages for kdegraphics and qt for your distribution and
> post a backtrace with all the debug symbols (they might be called
> kdegraphics-dbg or something like that on Ubuntu)
>  * Describe what you were doing (does it crash whenever you open the file or do
> you have to do something specific?)
>  * Is it possible to attach a file that causes this crash to the report?
>
> Thanks.
>
>   
Unfortunately I can not install kdegraphics-dbg because of problems with 
dependencies in ubuntu. Sorry. Book attachment
 Regards
Comment 4 Raphael Kubo da Costa 2009-12-03 19:17:10 UTC
If you have dependency problems, they should be fixed :)

As for the rest, please answer what you were doing when the crash happened, and add the attachment using the "Add an attachment" link at the end of this report page.
Comment 5 mityi 2010-03-29 13:39:05 UTC
Created attachment 42345 [details]
New crash information added by DrKonqi

When i try open fb2 book okular crash
Comment 6 Raphael Kubo da Costa 2010-03-29 17:04:04 UTC
Next time, please post the backtrace contents here instead of attaching it, as it makes it easier to look for duplicates.



Application: okular (0.10.1)
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-21-generic i686
Distribution: Ubuntu 9.10

-- Information about the crash:
When i try open fb2 book okular crash

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#6  QTextLayout::boundingRect (this=0x0) at text/qtextlayout.cpp:850
#7  0x012b3afc in QTextDocumentLayout::blockBoundingRect (this=0xa9ffb00, block=...) at text/qtextdocumentlayout.cpp:3161
#8  0x01d8acbe in calculateViewport (document=<value optimized out>, block=...) at ../../okular/core/textdocumentgenerator_p.h:80
#9  0x01d8aeba in Okular::TextDocumentConverter::calculateViewport (this=0xa464708, document=0xa3e1b08, block=...) at ../../okular/core/textdocumentgenerator.cpp:50
#10 0x02d72114 in FictionBook::Converter::convert (this=0xa464708, fileName=...) at ../../../../okular/generators/fictionbook/converter.cpp:200
#11 0x01d8ccb5 in Okular::TextDocumentGenerator::loadDocument (this=0xa1140d8, fileName=..., pagesVector=...) at ../../okular/core/textdocumentgenerator.cpp:255
#12 0x01d697ef in Okular::DocumentPrivate::openDocumentInternal (this=0xa13b120, offer=..., isstdin=false, docFile=..., filedata=...) at ../../okular/core/document.cpp:644
#13 0x01d6fd2f in Okular::Document::openDocument (this=0xa138238, docFile=..., url=..., _mime=...) at ../../okular/core/document.cpp:1642
#14 0x01c75a43 in Okular::Part::openFile (this=0xa12ac90) at ../../okular/part.cpp:929
#15 0x00a4cc49 in KParts::ReadOnlyPart::openUrl (this=0xa12ac90, url=...) at ../../kparts/part.cpp:557
#16 0x01c68337 in Okular::Part::openUrl (this=0xa12ac90, _url=...) at ../../okular/part.cpp:1048
#17 0x080501d2 in Shell::openUrl (this=0xa11f630, url=...) at ../../../okular/shell/shell.cpp:130
#18 0x080502e8 in Shell::delayedOpen (this=0xa11f630) at ../../../okular/shell/shell.cpp:113
#19 0x08050b15 in Shell::qt_metacall (this=0xa11f630, _c=QMetaObject::InvokeMetaMethod, _id=57, _a=0xbf812e7c) at ./shell.moc:94
#20 0x00d97e5a in QMetaObject::metacall (object=0xa11f630, cl=26337268, idx=57, argv=0xbf812e7c) at kernel/qmetaobject.cpp:237
#21 0x00da65f5 in QMetaObject::activate (sender=0xa413ce0, m=0xea6188, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3293
#22 0x00dae177 in QSingleShotTimer::timeout (this=0xa413ce0) at .moc/release-shared/qtimer.moc:82
#23 0x00dae28c in QSingleShotTimer::timerEvent (this=0xa413ce0) at kernel/qtimer.cpp:308
#24 0x00da3494 in QObject::event (this=0xa413ce0, e=0xbf8125a8) at kernel/qobject.cpp:1212
#25 0x00fde3cc in QApplicationPrivate::notify_helper (this=0xa065a80, receiver=0xa413ce0, e=0xbf8133b0) at kernel/qapplication.cpp:4300
#26 0x00fe501e in QApplication::notify (this=0xbf813770, receiver=0xa413ce0, e=0xbf8133b0) at kernel/qapplication.cpp:3704
#27 0x0085642a in KApplication::notify (this=0xbf813770, receiver=0xa413ce0, event=0xbf8133b0) at ../../kdeui/kernel/kapplication.cpp:302
#28 0x00d92beb in QCoreApplication::notifyInternal (this=0xbf813770, receiver=0xa413ce0, event=0xbf8133b0) at kernel/qcoreapplication.cpp:704
#29 0x00dc1eb6 in QCoreApplication::sendEvent (this=0xa068c34) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QTimerInfoList::activateTimers (this=0xa068c34) at kernel/qeventdispatcher_unix.cpp:603
#31 0x00dbeb14 in timerSourceDispatch (source=0xa068c00) at kernel/qeventdispatcher_glib.cpp:184
#32 0x01a9ee88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0x01aa2730 in ?? () from /lib/libglib-2.0.so.0
#34 0x01aa2863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0x00dbe805 in QEventDispatcherGlib::processEvents (this=0xa0511f0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#36 0x0109db35 in QGuiEventDispatcherGlib::processEvents (this=0xa0511f0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00d91209 in QEventLoop::processEvents (this=0xbf813674, flags=) at kernel/qeventloop.cpp:149
#38 0x00d9165a in QEventLoop::exec (this=0xbf813674, flags=...) at kernel/qeventloop.cpp:201
#39 0x00d9584f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#40 0x00fde467 in QApplication::exec () at kernel/qapplication.cpp:3579
#41 0x0804ef09 in main (argc=6, argv=0xbf813964) at ../../../okular/shell/main.cpp:82

Reported using DrKonqi
Comment 7 Albert Astals Cid 2010-03-29 20:14:54 UTC
Can you please attach the file that caused the crash to the bug report?
Comment 8 mityi 2010-03-29 22:02:54 UTC
Created attachment 42359 [details]
it's file that causes this crash
Comment 9 Albert Astals Cid 2010-03-30 22:14:06 UTC
Tobias can you have a look?
Comment 10 Tobias Koenig 2010-03-31 12:28:09 UTC
SVN commit 1109502 by tokoe:

Ignore links to local anchors that do not exist in the
document.

BUG: 217135


 M  +3 -0      converter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1109502
Comment 11 Raphael Kubo da Costa 2010-03-31 15:54:48 UTC
Wouldn't it be nice to backport this one?
Comment 12 Albert Astals Cid 2010-04-03 18:49:42 UTC
Tobias backported it