Bug 312782 - Okular crashes when opening a specific pdf in norwegian.
Summary: Okular crashes when opening a specific pdf in norwegian.
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-06 23:29 UTC by Bjørn Kristiansen
Modified: 2013-01-06 23:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjørn Kristiansen 2013-01-06 23:29:28 UTC
Application: okular (0.15.3)
KDE Platform Version: 4.9.3
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
I downloaded the pdf from http://www.gnav.no/Gnav_regler.pdf.

When opening it in Okular, Okular crashes.

Regards,

Bjørn

The crash can be reproduced some of the time.

-- Backtrace:
Application: Okular (okular), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f4d52c0c425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007f4d52c0fb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f4d3f830e4f in dictLookup (obj=<optimized out>, this=<optimized out>, key=<optimized out>, recursion=<optimized out>) at Object.h:309
#8  XRef::getDocInfo (this=<optimized out>, obj=<optimized out>) at XRef.cc:1124
#9  0x00007f4d3fb5ba2c in getDocInfo (obj=0x7fffd67fc2c0, this=<optimized out>) at ../../poppler/PDFDoc.h:217
#10 Poppler::Document::info (this=<optimized out>, type=...) at poppler-document.cc:266
#11 0x00007f4d3fdcf1ec in PDFGenerator::metaData (this=0x28c2d70, key=..., option=...) at ../../../generators/poppler/generator_pdf.cpp:1148
#12 0x00007f4d4416f9c6 in Okular::Document::metaData (this=<optimized out>, key=..., option=...) at ../core/document.cpp:2333
#13 0x00007f4d4442a0c9 in Okular::Part::setWindowTitleFromDocument (this=0x237f050) at ../part.cpp:998
#14 0x00007f4d44438f0f in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./part.moc:224
#15 Okular::Part::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./part.moc:159
#16 0x00007f4d536a0f5f in QMetaObject::activate (sender=0x237f050, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#17 0x00007f4d55656ab9 in ?? () from /usr/lib/libkparts.so.4
#18 0x00007f4d55656fa4 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#19 0x00007f4d4442a205 in openUrl (_url=..., this=0x237f050) at ../part.cpp:1321
#20 Okular::Part::openUrl (this=0x237f050, _url=...) at ../part.cpp:1292
#21 0x0000000000408cd4 in Shell::openUrl (this=0x235f1a0, url=...) at ../../shell/shell.cpp:141
#22 0x00007f4d536a043e in QObject::event (this=0x235f1a0, e=<optimized out>) at kernel/qobject.cpp:1195
#23 0x00007f4d540bd0da in QWidget::event (this=0x235f1a0, event=0x2819cf0) at kernel/qwidget.cpp:8830
#24 0x00007f4d544861cb in QMainWindow::event (this=0x235f1a0, event=0x2819cf0) at widgets/qmainwindow.cpp:1478
#25 0x00007f4d54e67778 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007f4d5406de9c in QApplicationPrivate::notify_helper (this=this@entry=0x2207a80, receiver=receiver@entry=0x235f1a0, e=e@entry=0x2819cf0) at kernel/qapplication.cpp:4562
#27 0x00007f4d5407230a in QApplication::notify (this=0x7fffd67fd640, receiver=0x235f1a0, e=0x2819cf0) at kernel/qapplication.cpp:4423
#28 0x00007f4d54d761d6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#29 0x00007f4d5368b56e in QCoreApplication::notifyInternal (this=0x7fffd67fd640, receiver=receiver@entry=0x235f1a0, event=event@entry=0x2819cf0) at kernel/qcoreapplication.cpp:915
#30 0x00007f4d5368f3f1 in sendEvent (event=0x2819cf0, receiver=0x235f1a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x21d9670) at kernel/qcoreapplication.cpp:1539
#32 0x00007f4d536b9a63 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#33 postEventSourceDispatch (s=0x2203e60) at kernel/qeventdispatcher_glib.cpp:279
#34 0x00007f4d4f8bdab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f4d4f8bdde8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f4d4f8bdea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f4d536b9bf6 in QEventDispatcherGlib::processEvents (this=0x21dab30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#38 0x00007f4d54112c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f4d5368a2bf in QEventLoop::processEvents (this=this@entry=0x7fffd67fd3f0, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f4d5368a548 in QEventLoop::exec (this=0x7fffd67fd3f0, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007f4d5368f708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#42 0x00000000004079ce in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-01-06 23:58:50 UTC
Hi Bjørn, the crash happens in poppler, the library that Okular uses to deal with PDF files. The crash is fixed if you upgrade to poppler >= 0.20.5 (i understand you are using 0.20.4 as provided by Ubuntu 12.10)

Even with poppler >= 0.20.5 we do not crash but don't render anything at all since the PDF file is severely broken, none of the PDF renderers i have around does much with it (Adobe Reader on Linux hangs while trying to render it)