Bug 322704 - Okular crashes when opening epub document
Summary: Okular crashes when opening epub document
Status: RESOLVED INTENTIONAL
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Robert Dinah
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-22 18:26 UTC by Robert Dinah
Modified: 2013-07-23 23:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
User Guide by Sony Corporation (1.51 MB, application/epub+zip)
2013-07-22 20:06 UTC, Robert Dinah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Dinah 2013-07-22 18:26:55 UTC
Application: okular (0.15.5)
KDE Platform Version: 4.9.5
Qt Version: 4.8.3
Operating System: Linux 3.5.0-36-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
I opened the document. Each time I open it it produces what appears to be an identical crash.

The crash can be reproduced every time.

-- 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 0x7ffd46922780 (LWP 5168))]

Thread 2 (Thread 0x7ffd31462700 (LWP 5172)):
#0  0x00007ffd43b72313 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffd40771d84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffd407721e2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffd398804a6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffd40795645 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffd40c40e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffd43b7dccd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffd46922780 (LWP 5168)):
[KCrash Handler]
#5  0x00007ffd43b13111 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007ffd43b12d76 in strdup () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007ffd200fe378 in Epub::Converter::convert (this=0xf5efc0, fileName=...) at ../../../generators/epub/converter.cpp:183
#8  0x00007ffd2342fdf4 in Okular::TextDocumentGenerator::loadDocument (this=<optimized out>, fileName=..., pagesVector=...) at ../core/textdocumentgenerator.cpp:255
#9  0x00007ffd23415c27 in Okular::DocumentPrivate::openDocumentInternal (this=0xae6b10, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=...) at ../core/document.cpp:766
#10 0x00007ffd2341e313 in Okular::Document::openDocument (this=0xac9190, docFile=..., url=..., _mime=...) at ../core/document.cpp:1770
#11 0x00007ffd236d3096 in Okular::Part::openFile (this=0xaa23d0) at ../part.cpp:1194
#12 0x00007ffd4650aae0 in ?? () from /usr/lib/libkparts.so.4
#13 0x00007ffd4650b074 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#14 0x00007ffd236c6205 in openUrl (_url=..., this=0xaa23d0) at ../part.cpp:1321
#15 Okular::Part::openUrl (this=0xaa23d0, _url=...) at ../part.cpp:1292
#16 0x0000000000408cd4 in Shell::openUrl (this=0xa7c810, url=...) at ../../shell/shell.cpp:141
#17 0x00007ffd4455443e in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffd44f710da in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007ffd4533a1cb in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007ffd45d1b7c8 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007ffd44f21e9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007ffd44f2630a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x00007ffd45c2a1f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007ffd4453f56e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007ffd445433f1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#26 0x00007ffd4456da63 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007ffd40771ab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffd40771de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffd40771ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffd4456dbf6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007ffd44fc6c1e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#32 0x00007ffd4453e2bf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007ffd4453e548 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007ffd44543708 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x00000000004079ce in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:85

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

Possible duplicates by query: bug 312238, bug 306194.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-07-22 18:58:52 UTC
Please attach the epub file

Also, which libepub are you using?
Comment 2 Robert Dinah 2013-07-22 20:06:50 UTC
Created attachment 81278 [details]
User Guide by Sony Corporation

Please attach the epub file --> Done

Also, which libepub are you using? --> The one provided by Ubuntu 12.10
Comment 3 Albert Astals Cid 2013-07-22 20:42:25 UTC
"The one provided by Ubuntu 12.10" is not an answer, please give us a version number.
Comment 4 Robert Dinah 2013-07-23 04:20:45 UTC
""The one provided by Ubuntu 12.10" is not an answer, please give us a version number."

What kind of unprofessional, rude remark are you making to me? Who do you think you are? Why is it not an answer? It most definititely is an answer to the question: "Also, which libepub are you using?" Do you think I'm going to pull the version number out of a hat?

Rather than giving a smart aleck smack in the face to a user ... it would rather be more polite, professional AND ADULT to tell me where and how to get the information you need in the first place. Consider yourself fortunate I went to the bother to even report this. I'm trying to do you a favour and improve the product. Instead you throw smart aleck remarks. You should be ashamed of yourself.
Comment 5 Yuri Chornoivan 2013-07-23 04:45:51 UTC
(In reply to comment #4)
> ""The one provided by Ubuntu 12.10" is not an answer, please give us a
> version number."
> 
> What kind of unprofessional, rude remark are you making to me? Who do you
> think you are? Why is it not an answer? It most definititely is an answer to
> the question: "Also, which libepub are you using?" Do you think I'm going to
> pull the version number out of a hat?

Sorry, but Ubuntu is not the only one distribution with just one version. Moreover, "Ubuntu 12.10"-version can be anything from this list for QQ (at least 2 versions):

https://launchpad.net/ubuntu/+source/okular

it can be something from backports, it can be something from PPA. So the remark was very professional, concise and direct.

> Rather than giving a smart aleck smack in the face to a user ... it would
> rather be more polite, professional AND ADULT to tell me where and how to
> get the information you need in the first place. Consider yourself fortunate
> I went to the bother to even report this. I'm trying to do you a favour and
> improve the product. Instead you throw smart aleck remarks. You should be
> ashamed of yourself.

Please start your package manager (it is not very hard to do) and spend some 20 seconds of your precious time by typing "okular", then remembering the version  and "libepub" and remembering the version.

Then just copy and paste version numbers here.

Thanks in advance for your hard work.
Comment 6 Robert Dinah 2013-07-23 04:53:22 UTC
Another wise guy?

"and spend some 20 seconds of your precious time" ...

Why should I bother with this ... in fact I won't ... keep your bug ... you have the file ... now spend some of your precious time and open the debugger ... and figure it out ... or don't ...
Comment 7 Yuri Chornoivan 2013-07-23 05:00:13 UTC
This file does not crash Okular 0.17.60 with libepub 0.2.2 in Mageia 3 (x86-64).
Comment 8 jaydeep 2013-07-23 06:07:27 UTC
Robert, updating libepub will fix this.

This bug was fixed some time ago.
http://sourceforge.net/p/ebook-tools/code/145/
Comment 9 Albert Astals Cid 2013-07-23 07:52:23 UTC
no need to even comment on this
Comment 10 Robert Dinah 2013-07-23 23:12:46 UTC
Thank you jaydeep for your respectful reply.

It would be nice if your other team members would respect and not speak down to those who are trying to help you out. If someone in my company spoke to a customer who was reporting a bug in that tone of voice, he/she would be out in the street the same day.

Thanks again jaydeep.