Bug 274888 - Okular 0.12.2 (KDE 4.6.3) has crashed during reload of an updated PDF document
Summary: Okular 0.12.2 (KDE 4.6.3) has crashed during reload of an updated PDF document
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.12.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 09:52 UTC by Thomas Dreibholz
Modified: 2012-11-13 21:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.84 KB, text/plain)
2011-06-04 13:33 UTC, Thomas Dreibholz
Details
New crash information added by DrKonqi (5.44 KB, text/plain)
2012-11-13 16:23 UTC, jan.zeman4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Dreibholz 2011-06-04 09:52:44 UTC
Application: okular (0.12.2)
KDE Platform Version: 4.6.3 (4.6.3)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

Okular 0.12.2 (KDE 4.6.3) has crashed during reload of an updated PDF document: pdflatex was currently rebuilding the PDF, while Okular has automatically started reloading the PDF (which may have been incomplete at that time) => crash.

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

Thread 2 (Thread 0x7f7992fd5700 (LWP 3928)):
#0  0x00007f79a6ccef03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f79a3bcc104 in g_main_context_poll (context=0x28bdcb0, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3404
#2  g_main_context_iterate (context=0x28bdcb0, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3086
#3  0x00007f79a3bcc639 in g_main_context_iteration (context=0x28bdcb0, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#4  0x00007f79a768d446 in QEventDispatcherGlib::processEvents (this=0x24fe4f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f79a7661882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f79a7661abc in QEventLoop::exec (this=0x7f7992fd4dd0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f79a7578924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007f79a7643c2f in QInotifyFileSystemWatcherEngine::run (this=0x23d4ca0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f79a757b175 in QThreadPrivate::start (arg=0x23d4ca0) at thread/qthread_unix.cpp:320
#10 0x00007f79a4097d8c in start_thread (arg=0x7f7992fd5700) at pthread_create.c:304
#11 0x00007f79a6cdc04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f79a9a34780 (LWP 3684)):
[KCrash Handler]
#6  0x00007f79a6c29d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f79a6c2dab6 in abort () at abort.c:92
#8  0x00007f7993080556 in dictLookup (this=0x26e0b30) at Object.h:304
#9  Catalog::getNumPages (this=0x26e0b30) at Catalog.cc:844
#10 0x00007f79933f9cf4 in FontIteratorData (this=0x3ecc1e0, startPage=0, dd=0x3652530) at poppler-private.h:225
#11 Poppler::FontIterator::FontIterator (this=0x3ecc1e0, startPage=0, dd=0x3652530) at poppler-fontinfo.cc:115
#12 0x00007f79933f11d9 in fillMembers (doc=<value optimized out>) at poppler-private.h:156
#13 Poppler::DocumentData::checkDocument (doc=<value optimized out>) at poppler-document.cc:80
#14 0x00007f79933f156e in Poppler::Document::load (filePath=<value optimized out>, ownerPassword=<value optimized out>, userPassword=<value optimized out>) at poppler-document.cc:56
#15 0x00007f799363f913 in PDFGenerator::loadDocument (this=0x26a50a0, filePath=..., pagesVector=...) at ../../../../okular/generators/poppler/generator_pdf.cpp:332
#16 0x00007f7998ddbe6a in Okular::DocumentPrivate::openDocumentInternal (this=0x21d8d70, offer=<value optimized out>, isstdin=<value optimized out>, docFile=..., filedata=...) at ../../okular/core/document.cpp:674
#17 0x00007f7998de4951 in Okular::Document::openDocument (this=0x21d60e0, docFile=..., url=<value optimized out>, _mime=<value optimized out>) at ../../okular/core/document.cpp:1632
#18 0x00007f79990b85e1 in Okular::Part::openFile (this=0x217e410) at ../../okular/part.cpp:955
#19 0x00007f79a9634ab0 in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x21595e0) at ../../kparts/part.cpp:592
#20 0x00007f79a96350f4 in KParts::ReadOnlyPart::openUrl (this=0x217e410, url=...) at ../../kparts/part.cpp:556
#21 0x00007f79990b494c in Okular::Part::slotDoFileDirty (this=0x217e410) at ../../okular/part.cpp:1244
#22 0x00007f79990c1055 in Okular::Part::qt_metacall (this=0x217e410, _c=QMetaObject::InvokeMetaMethod, _id=58, _a=0x7fff4531a3f0) at ./part.moc:244
#23 0x00007f79a76775f8 in QMetaObject::activate (sender=0x25b0dd0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#24 0x00007f79a76761c9 in QObject::event (this=0x25b0dd0, e=<value optimized out>) at kernel/qobject.cpp:1190
#25 0x00007f79a80219e4 in QApplicationPrivate::notify_helper (this=0x2075d40, receiver=0x25b0dd0, e=0x7fff4531aaf0) at kernel/qapplication.cpp:4462
#26 0x00007f79a80263aa in QApplication::notify (this=<value optimized out>, receiver=0x25b0dd0, e=0x7fff4531aaf0) at kernel/qapplication.cpp:4341
#27 0x00007f79a8d41196 in KApplication::notify (this=0x7fff4531ade0, receiver=0x25b0dd0, event=0x7fff4531aaf0) at ../../kdeui/kernel/kapplication.cpp:311
#28 0x00007f79a766249c in QCoreApplication::notifyInternal (this=0x7fff4531ade0, receiver=0x25b0dd0, event=0x7fff4531aaf0) at kernel/qcoreapplication.cpp:731
#29 0x00007f79a768ff12 in sendEvent (this=0x2073c50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QTimerInfoList::activateTimers (this=0x2073c50) at kernel/qeventdispatcher_unix.cpp:604
#31 0x00007f79a768cd18 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#32 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#33 0x00007f79a3bcbbcd in g_main_dispatch (context=0x2072ce0) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:2440
#34 g_main_context_dispatch (context=0x2072ce0) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3013
#35 0x00007f79a3bcc3a8 in g_main_context_iterate (context=0x2072ce0, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3091
#36 0x00007f79a3bcc639 in g_main_context_iteration (context=0x2072ce0, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#37 0x00007f79a768d3ef in QEventDispatcherGlib::processEvents (this=0x2025340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#38 0x00007f79a80c8dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f79a7661882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f79a7661abc in QEventLoop::exec (this=0x7fff4531ad60, flags=...) at kernel/qeventloop.cpp:201
#41 0x00007f79a7665ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#42 0x000000000040812e in main (argc=3, argv=<value optimized out>) at ../../../okular/shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-06-04 11:45:49 UTC
Hi, which poppler librarry version are you using?
Comment 2 Thomas Dreibholz 2011-06-04 13:33:40 UTC
Created attachment 60611 [details]
New crash information added by DrKonqi

okular (0.12.2) on KDE Platform 4.6.3 (4.6.3) using Qt 4.7.2

- What I was doing when the application crashed:

Used pdflatex to regenerate a PDF document which was displayed by Okular => crash on automatic reload.

A possible cause for the crash could be that the new document generated by pdflatex has fewer pages (since some included chapters in the document had just been commented out). Also, the PDF bookmarks tree of the new document has been smaller.

-- Backtrace (Reduced):
#8  0x00007fabd4e4d556 in dictLookup (this=0x2b7f8a0) at Object.h:304
#9  Catalog::getNumPages (this=0x2b7f8a0) at Catalog.cc:844
#10 0x00007fabd51c6cf4 in FontIteratorData (this=0x29dc740, startPage=0, dd=0x23d1b40) at poppler-private.h:225
#11 Poppler::FontIterator::FontIterator (this=0x29dc740, startPage=0, dd=0x23d1b40) at poppler-fontinfo.cc:115
#12 0x00007fabd51be1d9 in fillMembers (doc=<value optimized out>) at poppler-private.h:156
Comment 3 Albert Astals Cid 2011-06-04 14:04:42 UTC
Can you please not speculate over what the crash is and answer my question?
Comment 4 Albert Astals Cid 2011-06-04 14:25:30 UTC
Ok, i've found the area in which poppler accesses a object it thinks it is a dictionary without checking it is first, protected it, will be in poppler 0.16.7 and poppler 0.18.0
Comment 5 Thomas Dreibholz 2011-06-04 19:18:32 UTC
The installed version of the libpoppler package is 0.16.4-0ubuntu1.1.
Comment 6 jan.zeman4 2012-11-13 16:23:15 UTC
Created attachment 75220 [details]
New crash information added by DrKonqi

okular (0.12.5) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.2

- What I was doing when the application crashed:

I re-generated my pdf file using pdflatex.

-- Backtrace (Reduced):
#8  0x00007f41a03af556 in dictLookup (this=0x2561bf0) at Object.h:304
#9  Catalog::getNumPages (this=0x2561bf0) at Catalog.cc:844
#10 0x00007f41a0728cf4 in FontIteratorData (this=0x25d5ac0, startPage=0, dd=0x2581e40) at poppler-private.h:225
#11 Poppler::FontIterator::FontIterator (this=0x25d5ac0, startPage=0, dd=0x2581e40) at poppler-fontinfo.cc:115
#12 0x00007f41a07201d9 in fillMembers (doc=<value optimized out>) at poppler-private.h:156
Comment 7 Albert Astals Cid 2012-11-13 21:20:04 UTC
jan.zeman4@gmail.com: You are adding the same information we already had and you are probably running and old version (not as new as specified in comment #4) or at least you don't mention it. Can you please read the whole bug and then see if you can add something of value?

Thanks for caring about Okular :-)