Bug 300477 - Okular crashes when opening a given epub file
Summary: Okular crashes when opening a given epub file
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 306194 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-23 00:01 UTC by Steve
Modified: 2012-09-03 19:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.0
Sentry Crash Report:


Attachments
epub that crashes Okular (714.22 KB, application/octet-stream)
2012-05-23 00:06 UTC, Steve
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2012-05-23 00:01:09 UTC
Application: okular (0.14.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-virtual x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:

Opened a epub file from firefox.  It opened for a second, then crashed.

- Unusual behavior I noticed:

A epub file I opened up right before did not render readable. I assume it was a bad epub file, but am not sure.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8c5fe48780 (LWP 7966))]

Thread 3 (Thread 0x7f8c4ba53700 (LWP 7969)):
#0  0x00007f8c5d036b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8c59e40ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8c59e4145a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8c4ba5f98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f8c59e629a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8c5a30de9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f8c5d0424bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8c4b252700 (LWP 7970)):
#0  0x00007f8c5d036b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8c59e40ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8c59e4145a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8c52bb82c6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f8c59e629a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8c5a30de9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f8c5d0424bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8c5fe48780 (LWP 7966)):
[KCrash Handler]
#6  0x00007f8c5cfd8b91 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f8c5cfd87f6 in strdup () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f8c34acf478 in Epub::Converter::convert (this=0x10301b0, fileName=...) at ../../../generators/epub/converter.cpp:183
#9  0x00007f8c37f25fb3 in Okular::TextDocumentGenerator::loadDocument (this=<optimized out>, fileName=..., pagesVector=...) at ../core/textdocumentgenerator.cpp:255
#10 0x00007f8c37f0b817 in Okular::DocumentPrivate::openDocumentInternal (this=0xad03f0, offer=..., isstdin=false, docFile=..., filedata=...) at ../core/document.cpp:675
#11 0x00007f8c37f140b7 in Okular::Document::openDocument (this=0xab7e80, docFile=..., url=..., _mime=...) at ../core/document.cpp:1632
#12 0x00007f8c381c898e in Okular::Part::openFile (this=0xa901a0) at ../part.cpp:1151
#13 0x00007f8c5fa4099c in ?? () from /usr/lib/libkparts.so.4
#14 0x00007f8c5fa40f54 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#15 0x00007f8c381ba7f5 in Okular::Part::openUrl (this=0xa901a0, _url=...) at ../part.cpp:1273
#16 0x0000000000408d14 in Shell::openUrl (this=0xa691b0, url=...) at ../../shell/shell.cpp:134
#17 0x00007f8c5da1e446 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007f8c5e449b7b in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007f8c5e823c4b in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007f8c5f22e428 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007f8c5e3f9894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007f8c5e3fe713 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x00007f8c5f132b46 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007f8c5da04e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007f8c5da08c6a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#26 0x00007f8c5da33f93 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007f8c59e40c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f8c59e41060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f8c59e41124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f8c5da343bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007f8c5e4a1d5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#32 0x00007f8c5da03c82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f8c5da03ed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007f8c5da08f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x00000000004079c6 in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:85

This bug may be a duplicate of or related to bug 282656.

Possible duplicates by query: bug 282656, bug 279880.

Reported using DrKonqi
Comment 1 Steve 2012-05-23 00:06:39 UTC
Created attachment 71304 [details]
epub that crashes Okular

This is the epub file that crashes Okular. Tried multi times, haven't been able to open yet.
Comment 2 Albert Astals Cid 2012-06-05 22:01:33 UTC
Git commit f96839c12318d1ae07bfcd45abc03d39b465a7b6 by Albert Astals Cid.
Committed on 05/06/2012 at 23:59.
Pushed by aacid into branch 'master'.

Do not crash on file from bug 300477

You also need a new (as of now unreleaed) version of libepub
FIXED-IN: 4.9.0

M  +1    -1    generators/epub/converter.cpp

http://commits.kde.org/okular/f96839c12318d1ae07bfcd45abc03d39b465a7b6
Comment 3 Albert Astals Cid 2012-09-03 19:52:53 UTC
*** Bug 306194 has been marked as a duplicate of this bug. ***