Bug 200398 - okular crash on pdf load
Summary: okular crash on pdf load
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 204667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-16 04:04 UTC by jappel
Modified: 2009-08-22 15:22 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 jappel 2009-07-16 04:04:01 UTC
Application that crashed: okular
Version of the application: 0.8.80
KDE Version: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2)) "release 142"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.23-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:
Okular crashes on loading

jappel@durin:/tmp>okular http://focus.ti.com/lit/ds/symlink/ths3001.pdf
Error (0): Call to Object where the object was type 5, not the expected type 9
KCrash: Application 'okular' crashing...
sock_file=/home/jappel/.kde4/socket-durin/kdeinit4__0
[1]   Exit 253                okular http://focus.ti.com/lit/ds/symlink/ths3001.pdf

[2]+  Stopped                 okular http://focus.ti.com/lit/ds/symlink/ths3001.pdf

A error occurs when downloading the file first and opening the local copy.

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[Current thread is 1 (Thread 0xb5fb2700 (LWP 19191))]

Thread 2 (Thread 0xb2f59b90 (LWP 19193)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb72f8f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb735855c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb734db96 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb7357572 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb72f51b5 in start_thread () from /lib/libpthread.so.0
#6  0xb67aa3be in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb5fb2700 (LWP 19191)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb6703990 in raise () from /lib/libc.so.6
#8  0xb67052c8 in abort () from /lib/libc.so.6
#9  0xb25a57f7 in OutlineItem::readItemList(Object*, Object*, XRef*) () from /usr/lib/libpoppler.so.4
#10 0xb25a5898 in OutlineItem::open() () from /usr/lib/libpoppler.so.4
#11 0xb26a77d8 in Poppler::DocumentData::addTocChildren(QDomDocument*, QDomNode*, GooList*) () from /usr/lib/libpoppler-qt4.so.3
#12 0xb26a4e63 in Poppler::Document::toc() const () from /usr/lib/libpoppler-qt4.so.3
#13 0xb2749e4e in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#14 0xb483b100 in Okular::Document::documentSynopsis() const () from /usr/lib/libokularcore.so.1
#15 0xb49693bd in ?? () from /usr/lib/kde4/okularpart.so
#16 0xb48510bb in Okular::Document::openDocument(QString const&, KUrl const&, KSharedPtr<KMimeType> const&) () from /usr/lib/libokularcore.so.1
#17 0xb48ecbb4 in ?? () from /usr/lib/kde4/okularpart.so
#18 0xb80566fe in KParts::ReadOnlyPartPrivate::_k_slotJobFinished (this=0x80fb048, job=0x80e67b8) at /usr/src/debug/kdelibs-4.2.96/kparts/part.cpp:635
#19 0xb805831a in KParts::ReadOnlyPart::qt_metacall (this=0x80faef8, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfdc83ec) at /usr/src/debug/kdelibs-4.2.96/build/kparts/part.moc:165
#20 0xb48ee96a in ?? () from /usr/lib/kde4/okularpart.so
#21 0xb7461788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#22 0xb7462412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#23 0xb7686443 in KJob::result (this=0x80e67b8, _t1=0x80e67b8) at /usr/src/debug/kdelibs-4.2.96/build/kdecore/kjob.moc:188
#24 0xb76868e9 in KJob::emitResult (this=0x80e67b8) at /usr/src/debug/kdelibs-4.2.96/kdecore/jobs/kjob.cpp:304
#25 0xb7e60298 in KIO::FileCopyJob::slotResult (this=0x80e67b8, job=0x8132f50) at /usr/src/debug/kdelibs-4.2.96/kio/kio/job.cpp:2202
#26 0xb7e5ae0f in KIO::FileCopyJob::qt_metacall (this=0x80e67b8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfdc853c) at /usr/src/debug/kdelibs-4.2.96/build/kio/jobclasses.moc:673
#27 0xb7461788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#28 0xb7462412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#29 0xb7686443 in KJob::result (this=0x8132f50, _t1=0x8132f50) at /usr/src/debug/kdelibs-4.2.96/build/kdecore/kjob.moc:188
#30 0xb76868e9 in KJob::emitResult (this=0x8132f50) at /usr/src/debug/kdelibs-4.2.96/kdecore/jobs/kjob.cpp:304
#31 0xb7e5b815 in KIO::SimpleJob::slotFinished (this=0x8132f50) at /usr/src/debug/kdelibs-4.2.96/kio/kio/job.cpp:477
#32 0xb7e5c153 in KIO::TransferJob::slotFinished (this=0x8132f50) at /usr/src/debug/kdelibs-4.2.96/kio/kio/job.cpp:948
#33 0xb7e586fb in KIO::TransferJob::qt_metacall (this=0x8132f50, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfdc8778) at /usr/src/debug/kdelibs-4.2.96/build/kio/jobclasses.moc:343
#34 0xb7461788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#35 0xb7462412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#36 0xb7f22d07 in KIO::SlaveInterface::finished (this=0x8075918) at /usr/src/debug/kdelibs-4.2.96/build/kio/slaveinterface.moc:165
#37 0xb7f26a47 in KIO::SlaveInterface::dispatch (this=0x8075918, _cmd=104, rawdata=@0xbfdc8944) at /usr/src/debug/kdelibs-4.2.96/kio/kio/slaveinterface.cpp:175
#38 0xb7f231e7 in KIO::SlaveInterface::dispatch (this=0x8075918) at /usr/src/debug/kdelibs-4.2.96/kio/kio/slaveinterface.cpp:91
#39 0xb7f14f5d in KIO::Slave::gotInput (this=0x8075918) at /usr/src/debug/kdelibs-4.2.96/kio/kio/slave.cpp:322
#40 0xb7f173f3 in KIO::Slave::qt_metacall (this=0x8075918, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfdc8a58) at /usr/src/debug/kdelibs-4.2.96/build/kio/slave.moc:76
#41 0xb7461788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#42 0xb7462412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#43 0xb7e203e7 in KIO::Connection::readyRead (this=0x80e3528) at /usr/src/debug/kdelibs-4.2.96/build/kio/connection.moc:86
#44 0xb7e21d53 in KIO::ConnectionPrivate::dequeue (this=0x8178670) at /usr/src/debug/kdelibs-4.2.96/kio/kio/connection.cpp:82
#45 0xb7e22136 in KIO::Connection::qt_metacall (this=0x80e3528, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x8179948) at /usr/src/debug/kdelibs-4.2.96/build/kio/connection.moc:73
#46 0xb745aeab in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#47 0xb745c970 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#48 0xb6a817fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#49 0xb6a89aee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#50 0xb7a3319d in KApplication::notify (this=0xbfdc9264, receiver=0x80e3528, event=0x82d8cb0) at /usr/src/debug/kdelibs-4.2.96/kdeui/kernel/kapplication.cpp:302
#51 0xb744c16b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#52 0xb744cdb5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#53 0xb744cfad in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#54 0xb7477c8f in ?? () from /usr/lib/libQtCore.so.4
#55 0xb63349c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#56 0xb6338083 in ?? () from /usr/lib/libglib-2.0.so.0
#57 0xb6338241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#58 0xb74778d8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#59 0xb6b21cc5 in ?? () from /usr/lib/libQtGui.so.4
#60 0xb744a78a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#61 0xb744abd2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#62 0xb744d079 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#63 0xb6a81677 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#64 0x0804e6ff in _start ()

Reported using DrKonqi
Comment 1 Brad Hards 2009-07-16 10:00:18 UTC
Hi,

Looks like a bug in poppler, rather than in okular.

Is this crash repeatable for you? Does it happen with evince as well?
If so, you might like to file a bug in your distros bug tracker against poppler.

I think it is already fixed upstream (which is why I suggest the distro bug tracker), since I don't see it with my poppler (0.10.5 from Fedora 11). 

Brad
Comment 2 jappel 2009-07-16 11:23:37 UTC
Hello,

On Thu July 16 2009 10:00:23 Brad Hards wrote:
> https://bugs.kde.org/show_bug.cgi?id=200398

> Looks like a bug in poppler, rather than in okular.
Thanks for pointing this out. I was not aware of all the dependencies and 
indeed it looks like it is rather poppler related in the end:


> Is this crash repeatable for you? 
Yes, it is repeatable, happens every time.

> Does it happen with evince as well?
I just installed evince and also found it crashing:

Error (0): Call to Object where the object was type 5, not the expected type 9
Aborted

So it's just my poppler library being too old, I guess.

Thanks for the quick response; this will help me to fix the real cause.

Cheers,
	Jürgen
Comment 3 Brad Hards 2009-07-16 12:22:33 UTC
Poppler bug, rather than being an okular code issue.
Comment 4 Pino Toscano 2009-08-22 15:22:33 UTC
*** Bug 204667 has been marked as a duplicate of this bug. ***