Bug 229808

Summary: Konqueror crashes on Okular display of PDF file
Product: [Applications] okular Reporter: paul.leopardi
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description paul.leopardi 2010-03-07 13:30:35 UTC
Application that crashed: konqueror
Version of the application: 4.3.5 (KDE 4.3.5) "release 3"
KDE Version: 4.3.5 (KDE 4.3.5) "release 3"
Qt Version: 4.5.3
Operating System: Linux 2.6.25.20-0.6-default x86_64
Distribution: "openSUSE 11.0 (X86-64)"

What I was doing when the application crashed:
When running Konqueror based on KDE 4.3.5, the following URL causes a crash:
http://www.jstor.org.virtual.anu.edu.au/stable/pdfplus/1040869.pdf
The crash seems to be in Okular. 

One strange-seeming point is that the button that eventually produces this URL, gives the immediate URL:
http://www.jstor.org.virtual.anu.edu.au/page/termsConfirm.jsp?redirectUri=/stable/pdfplus/1040869.pdf
Clicking on this button, brings up a Javascript dialog box with terms of service.
Agreeing to the terms of service brings up a second dialog box where one of the buttons allows me to open the PDF file *using GV* (not Okular ?!). I can open the document OK using GV, but when I try to open the URL directly, Konqueror invokes Okular and crashes.


 -- Backtrace:
Application: Konqueror (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f3d55c413ba in Poppler::convertAnnotColor () from /usr/lib64/libpoppler-qt4.so.3
#6  0x00007f3d55c34945 in Poppler::Page::annotations () from /usr/lib64/libpoppler-qt4.so.3
#7  0x00007f3d55e8fbbb in PDFGenerator::addAnnotations () from /usr/lib64/kde4/okularGenerator_poppler.so
#8  0x00007f3d55e92868 in PDFGenerator::loadPages () from /usr/lib64/kde4/okularGenerator_poppler.so
#9  0x00007f3d55e9424b in PDFGenerator::init () from /usr/lib64/kde4/okularGenerator_poppler.so
#10 0x00007f3d55e95bf5 in PDFGenerator::loadDocument () from /usr/lib64/kde4/okularGenerator_poppler.so
#11 0x00007f3d57488af1 in Okular::DocumentPrivate::openDocumentInternal () from /usr/lib64/libokularcore.so.1
#12 0x00007f3d574964a6 in Okular::Document::openDocument () from /usr/lib64/libokularcore.so.1
#13 0x00007f3d5774a45a in Okular::Part::openFile () from /usr/lib64/kde4/okularpart.so
#14 0x00007f3d731af825 in KParts::ReadOnlyPartPrivate::_k_slotJobFinished () from /usr/lib64/libkparts.so.4
#15 0x00007f3d731b1300 in KParts::ReadOnlyPart::qt_metacall () from /usr/lib64/libkparts.so.4
#16 0x00007f3d5774c795 in Okular::Part::qt_metacall () from /usr/lib64/kde4/okularpart.so
#17 0x00007f3d73bcdb22 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#18 0x00007f3d734c26a2 in KJob::result () from /usr/lib64/libkdecore.so.5
#19 0x00007f3d734c2a1f in KJob::emitResult () from /usr/lib64/libkdecore.so.5
#20 0x00007f3d72a86d5b in KIO::FileCopyJob::slotResult () from /usr/lib64/libkio.so.5
#21 0x00007f3d72a818f4 in KIO::FileCopyJob::qt_metacall () from /usr/lib64/libkio.so.5
#22 0x00007f3d73bcdb22 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#23 0x00007f3d734c26a2 in KJob::result () from /usr/lib64/libkdecore.so.5
#24 0x00007f3d734c2a1f in KJob::emitResult () from /usr/lib64/libkdecore.so.5
#25 0x00007f3d72a83020 in KIO::SimpleJob::slotFinished () from /usr/lib64/libkio.so.5
#26 0x00007f3d72a834d3 in KIO::TransferJob::slotFinished () from /usr/lib64/libkio.so.5
#27 0x00007f3d72a7e285 in KIO::TransferJob::qt_metacall () from /usr/lib64/libkio.so.5
#28 0x00007f3d73bcdb22 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#29 0x00007f3d72b41b21 in KIO::SlaveInterface::dispatch () from /usr/lib64/libkio.so.5
#30 0x00007f3d72b3e642 in KIO::SlaveInterface::dispatch () from /usr/lib64/libkio.so.5
#31 0x00007f3d72b31393 in KIO::Slave::gotInput () from /usr/lib64/libkio.so.5
#32 0x00007f3d72b333f8 in KIO::Slave::qt_metacall () from /usr/lib64/libkio.so.5
#33 0x00007f3d73bcdb22 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#34 0x00007f3d72a4b611 in KIO::ConnectionPrivate::dequeue () from /usr/lib64/libkio.so.5
#35 0x00007f3d72a4ba6a in KIO::Connection::qt_metacall () from /usr/lib64/libkio.so.5
#36 0x00007f3d73bc8d08 in QObject::event () from /usr/lib64/libQtCore.so.4
#37 0x00007f3d70f47a2d in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#38 0x00007f3d70f4fcaa in QApplication::notify () from /usr/lib64/libQtGui.so.4
#39 0x00007f3d720343ab in KApplication::notify () from /usr/lib64/libkdeui.so.5
#40 0x00007f3d73bb8d3c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#41 0x00007f3d73bb99ca in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/libQtCore.so.4
#42 0x00007f3d73be2683 in ?? () from /usr/lib64/libQtCore.so.4
#43 0x00007f3d6fa2695a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#44 0x00007f3d6fa2a060 in ?? () from /usr/lib64/libglib-2.0.so.0
#45 0x00007f3d6fa2a1fc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#46 0x00007f3d73be223c in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#47 0x00007f3d70fdf43f in ?? () from /usr/lib64/libQtGui.so.4
#48 0x00007f3d73bb75b2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#49 0x00007f3d73bb7984 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#50 0x00007f3d73bb9c94 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#51 0x00007f3d679c3f69 in kdemain () from /usr/lib64/libkdeinit4_konqueror.so
#52 0x00000000004073dd in launch ()
#53 0x0000000000407c08 in handle_launcher_request ()
#54 0x0000000000408195 in handle_requests ()
#55 0x0000000000408d68 in main ()

Reported using DrKonqi
Comment 1 Pino Toscano 2010-03-07 13:54:19 UTC
The URL is not accessible, requires login.

Anyway, the problem is in the Poppler library, used by Okular for PDF documents.
Make sure to have a recent version of it (like 0.12.3 or 0.12.4).