Bug 211446

Summary: Okular crashes on opening any PDF file [GlobalParams::scanEncodingDirs, Poppler::Document::load, PDFGenerator::loadDocument]
Product: [Applications] okular Reporter: Geoffray Levasseur <jeff.levasseur>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DOWNSTREAM    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Geoffray Levasseur 2009-10-22 15:55:21 UTC
Application: okular (0.9.80)
KDE Version: 4.3.72 (KDE 4.3.72 (KDE 4.4 >= 20091015)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.30-2-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

What I was doing when the application crashed:
Other document types are Ok.

Any PDF files are affected, whatever the way it's opened. Several possible related bug but my backtrace is quite complete (I have all Qt related (or dependent) stuff compiled from source with debug info).

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f7ac4dff431 in strlen () from /lib/libc.so.6
#6  0x00007f7ab4e577b9 in GlobalParams::scanEncodingDirs() () from /usr/lib/libpoppler.so.5
#7  0x00007f7ab5189d89 in Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&) () from /usr/lib/libpoppler-qt4.so.3
#8  0x00007f7ab53f4612 in PDFGenerator::loadDocument (this=0x15da410, filePath=..., pagesVector=...) at /home/jeff/src/c/kde/KDE/kdegraphics/okular/generators/poppler/generator_pdf.cpp:330
#9  0x00007f7ab97e2e8e in Okular::DocumentPrivate::openDocumentInternal (this=0x1269960, offer=..., isstdin=false, docFile=..., filedata=...)
    at /home/jeff/src/c/kde/KDE/kdegraphics/okular/core/document.cpp:644
#10 0x00007f7ab97e8519 in Okular::Document::openDocument (this=0x1269890, docFile=..., url=..., _mime=...) at /home/jeff/src/c/kde/KDE/kdegraphics/okular/core/document.cpp:1646
#11 0x00007f7ab9ab39b3 in Part::openFile (this=0x1236a70) at /home/jeff/src/c/kde/KDE/kdegraphics/okular/part.cpp:921
#12 0x00007f7ac8afeede in KParts::ReadOnlyPartPrivate::_k_slotJobFinished (this=0x12352a0, job=0x1540370) at /home/jeff/src/c/kde/KDE/kdelibs/kparts/part.cpp:635
#13 0x00007f7ac8b00477 in KParts::ReadOnlyPart::qt_metacall (this=0x1236a70, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff726bd6b0) at /home/jeff/src/c/kde/build/KDE/kdelibs/kparts/part.moc:177
#14 0x00007f7ab9ab1e35 in Part::qt_metacall (this=0x1236a70, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff726bd6b0) at /home/jeff/src/c/kde/build/KDE/kdegraphics/okular/part.moc:172
#15 0x00007f7ac6c0097f in QMetaObject::metacall (object=0x1236a70, cl=QMetaObject::InvokeMetaMethod, idx=12, argv=0x7fff726bd6b0) at kernel/qmetaobject.cpp:237
#16 0x00007f7ac6c15cca in QMetaObject::activate (sender=0x1540370, m=0x7f7ac76c38c0, local_signal_index=3, argv=0x7fff726bd6b0) at kernel/qobject.cpp:3398
#17 0x00007f7ac731ef29 in KJob::result (this=0x1540370, _t1=0x1540370) at /home/jeff/src/c/kde/build/KDE/kdelibs/kdecore/kjob.moc:194
#18 0x00007f7ac731f2fb in KJob::emitResult (this=0x1540370) at /home/jeff/src/c/kde/KDE/kdelibs/kdecore/jobs/kjob.cpp:304
#19 0x00007f7ac86df64b in KIO::FileCopyJob::slotResult (this=0x1540370, job=0x124c2b0) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/job.cpp:2238
#20 0x00007f7ac86e0073 in KIO::FileCopyJob::qt_metacall (this=0x1540370, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff726bd940) at /home/jeff/src/c/kde/build/KDE/kdelibs/kio/jobclasses.moc:721
#21 0x00007f7ac6c0097f in QMetaObject::metacall (object=0x1540370, cl=QMetaObject::InvokeMetaMethod, idx=32, argv=0x7fff726bd940) at kernel/qmetaobject.cpp:237
#22 0x00007f7ac6c15cca in QMetaObject::activate (sender=0x124c2b0, m=0x7f7ac76c38c0, local_signal_index=3, argv=0x7fff726bd940) at kernel/qobject.cpp:3398
#23 0x00007f7ac731ef29 in KJob::result (this=0x124c2b0, _t1=0x124c2b0) at /home/jeff/src/c/kde/build/KDE/kdelibs/kdecore/kjob.moc:194
#24 0x00007f7ac731f2fb in KJob::emitResult (this=0x124c2b0) at /home/jeff/src/c/kde/KDE/kdelibs/kdecore/jobs/kjob.cpp:304
#25 0x00007f7ac86d96e2 in KIO::SimpleJob::slotFinished (this=0x124c2b0) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/job.cpp:475
#26 0x00007f7ac86d9aad in KIO::TransferJob::slotFinished (this=0x124c2b0) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/job.cpp:975
#27 0x00007f7ac86e04a6 in KIO::TransferJob::qt_metacall (this=0x124c2b0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff726bddb0) at /home/jeff/src/c/kde/build/KDE/kdelibs/kio/jobclasses.moc:367
#28 0x00007f7ac6c0097f in QMetaObject::metacall (object=0x124c2b0, cl=QMetaObject::InvokeMetaMethod, idx=47, argv=0x7fff726bddb0) at kernel/qmetaobject.cpp:237
#29 0x00007f7ac6c15cca in QMetaObject::activate (sender=0x121ba80, m=0x7f7ac8acaea0, local_signal_index=4, argv=0x0) at kernel/qobject.cpp:3398
#30 0x00007f7ac878c988 in KIO::SlaveInterface::finished (this=0x121ba80) at /home/jeff/src/c/kde/build/KDE/kdelibs/kio/slaveinterface.moc:171
#31 0x00007f7ac878e5ab in KIO::SlaveInterface::dispatch (this=0x121ba80, _cmd=104, rawdata=...) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/slaveinterface.cpp:175
#32 0x00007f7ac878e485 in KIO::SlaveInterface::dispatch (this=0x121ba80) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/slaveinterface.cpp:91
#33 0x00007f7ac8782ca7 in KIO::Slave::gotInput (this=0x121ba80) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/slave.cpp:322
#34 0x00007f7ac8783feb in KIO::Slave::qt_metacall (this=0x121ba80, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff726be2f0) at /home/jeff/src/c/kde/build/KDE/kdelibs/kio/slave.moc:82
#35 0x00007f7ac6c0097f in QMetaObject::metacall (object=0x121ba80, cl=QMetaObject::InvokeMetaMethod, idx=30, argv=0x7fff726be2f0) at kernel/qmetaobject.cpp:237
#36 0x00007f7ac6c15cca in QMetaObject::activate (sender=0x12156c0, m=0x7f7ac8ac41a0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3398
#37 0x00007f7ac86a8caa in KIO::Connection::readyRead (this=0x12156c0) at /home/jeff/src/c/kde/build/KDE/kdelibs/kio/connection.moc:92
#38 0x00007f7ac86a9c68 in KIO::ConnectionPrivate::dequeue (this=0x12c76f0) at /home/jeff/src/c/kde/KDE/kdelibs/kio/kio/connection.cpp:82
#39 0x00007f7ac86aaafe in KIO::Connection::qt_metacall (this=0x12156c0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x1554e00) at /home/jeff/src/c/kde/build/KDE/kdelibs/kio/connection.moc:79
#40 0x00007f7ac6c0097f in QMetaObject::metacall (object=0x12156c0, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0x1554e00) at kernel/qmetaobject.cpp:237
#41 0x00007f7ac6c0e4e3 in QMetaCallEvent::placeMetaCall (this=0x15594b0, object=0x12156c0) at kernel/qobject.cpp:562
#42 0x00007f7ac6c104e6 in QObject::event (this=0x12156c0, e=0x15594b0) at kernel/qobject.cpp:1246
#43 0x00007f7ac5a99ff7 in QApplicationPrivate::notify_helper (this=0x105c1b0, receiver=0x12156c0, e=0x15594b0) at kernel/qapplication.cpp:4198
#44 0x00007f7ac5a9a3ae in QApplication::notify (this=0x7fff726bf260, receiver=0x12156c0, e=0x15594b0) at kernel/qapplication.cpp:3682
#45 0x00007f7ac7b91a49 in KApplication::notify (this=0x7fff726bf260, receiver=0x12156c0, event=0x15594b0) at /home/jeff/src/c/kde/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#46 0x00007f7ac6bf8bd9 in QCoreApplication::notifyInternal (this=0x7fff726bf260, receiver=0x12156c0, event=0x15594b0) at kernel/qcoreapplication.cpp:704
#47 0x00007f7ac6bfdf1b in QCoreApplication::sendEvent (receiver=0x12156c0, event=0x15594b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#48 0x00007f7ac6bf91ef in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x10447f0) at kernel/qcoreapplication.cpp:1345
#49 0x00007f7ac6bf94fe in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#50 0x00007f7ac6c365c1 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#51 0x00007f7ac6c3559e in postEventSourceDispatch (s=0x105fe30) at kernel/qeventdispatcher_glib.cpp:276
#52 0x00007f7ac146b12a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#53 0x00007f7ac146e988 in ?? () from /lib/libglib-2.0.so.0
#54 0x00007f7ac146eb3c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#55 0x00007f7ac6c343b9 in QEventDispatcherGlib::processEvents (this=0x1043e00, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#56 0x00007f7ac5b74397 in QGuiEventDispatcherGlib::processEvents (this=0x1043e00, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#57 0x00007f7ac6bf5063 in QEventLoop::processEvents (this=0x7fff726bf1e0, flags=...) at kernel/qeventloop.cpp:149
#58 0x00007f7ac6bf5287 in QEventLoop::exec (this=0x7fff726bf1e0, flags=...) at kernel/qeventloop.cpp:201
#59 0x00007f7ac6bf9623 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#60 0x00007f7ac5a99ae2 in QApplication::exec () at kernel/qapplication.cpp:3603
#61 0x00000000004089fa in main (argc=6, argv=0x7fff726bf508) at /home/jeff/src/c/kde/KDE/kdegraphics/okular/shell/main.cpp:81

This bug may be a duplicate of or related to bug 211381, bug 210306.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2009-10-22 20:05:43 UTC
This crash means there is a mismatch between the poppler version used for compiling okular and the one you are currently using. If you use precompiled okular packages bug your distribution about it, if you compile okular yourself recompile it again.