okular crashes when refresh compiling DVI files

Bug #360647 reported by Laurent Claessens
2
Affects Status Importance Assigned to Milestone
KDE Graphics
Fix Released
High
kdegraphics (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: kdegraphics

1. Open a large DVI file with Okular (see an example of LaTeX source file bellow)
2. Compile the tex file
3. Okular crashes when refresh under certain conditions.

At a certain point during the compilation, Okular remarks that the DVI is being changed. So it empty the content of the DVI being on screen (normal bahaviour).
At that point, if the LaTeX compilation still stand some seconds, Okular crashes.

I can reproduce the bug "at will" with the following trick :

------ Structure of a LaTeX file -----------

<Big LaTeX document (around 70 pages)>

\input{foo.tex}

\end{document}

------------ end -----------------

I suppose that the "big file" is just enough in order Okular to set itself in a "waiting" mode.

\input produces an error which stops the compilation until I react.
If I react sufficiently rapidly, no crash.
If I leave some seconds without answering, Okular crashes.

It seems to be really a matter of TIME between the moment Okular sees that the DVI is being changed and the moment where the DVI is actually finished.

An actual example which produces the crash 100% of time.

++++++++++++ EXAMPLE ++++++++++++++++++

\documentclass[a4paper]{book}
\usepackage{lipsum}
\begin{document}

bonjour

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\lipsum[1-2000]

\end{document}

+++++++++++++ END OF EXAMPLE +++++++++++++

BTW : if I launch Okular in the terminal, I get "core dumped". Where can I find the core file ?

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: okular 4:4.2.2-0ubuntu2
ProcEnviron:
 LANGUAGE=it_IT:it:en_GB:en
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: kdegraphics
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Laurent Claessens (moky-math) wrote :
Revision history for this message
Pascal (pascal22p) wrote :

Reproduced with okular 0.8.2, kde 4.2.2 on archlinux

Application: Okular (okular), signal SIGSEGV
[Current thread is 0 (LWP 9917)]

Thread 2 (Thread 0xb2c2eb90 (LWP 9921)):
#0 0xb8093424 in __kernel_vsyscall ()
#1 0xb6a7eab1 in select () from /lib/libc.so.6
#2 0xb76c7f77 in ?? () from /usr/lib/libQtCore.so.4
#3 0xb75f745e in ?? () from /usr/lib/libQtCore.so.4
#4 0xb695e155 in start_thread () from /lib/libpthread.so.0
#5 0xb6a85a5e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb5fdb700 (LWP 9917)):
[KCrash Handler]
#5 0xb2f666c2 in bigEndianByteReader::readUINT8 () from /usr/lib/kde4/okularGenerator_dvi.so
#6 0xb2f7d32f in dvifile::read_postamble () from /usr/lib/kde4/okularGenerator_dvi.so
#7 0xb2f7dabc in dvifile::dvifile () from /usr/lib/kde4/okularGenerator_dvi.so
#8 0xb2f684f5 in dviRenderer::setFile () from /usr/lib/kde4/okularGenerator_dvi.so
#9 0xb2f64023 in DviGenerator::loadDocument () from /usr/lib/kde4/okularGenerator_dvi.so
#10 0xb47beb11 in Okular::DocumentPrivate::openDocumentInternal () from /usr/lib/libokularcore.so.1
#11 0xb47c74a4 in Okular::Document::openDocument () from /usr/lib/libokularcore.so.1
#12 0xb4878084 in Part::openFile () from /usr/lib/kde4/okularpart.so
#13 0xb804625a in KParts::ReadOnlyPart::openUrl () from /usr/lib/libkparts.so.4
#14 0xb4880e5f in Part::slotDoFileDirty () from /usr/lib/kde4/okularpart.so
#15 0xb4881a32 in Part::qt_metacall () from /usr/lib/kde4/okularpart.so
#16 0xb7700269 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb7700ed2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb773b927 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#19 0xb7705c2e in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#20 0xb76fa75f in QObject::event () from /usr/lib/libQtCore.so.4
#21 0xb6d0ddec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#22 0xb6d1607e in QApplication::notify () from /usr/lib/libQtGui.so.4
#23 0xb7c3677d in KApplication::notify () from /usr/lib/libkdeui.so.5
#24 0xb76ea1bb in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#25 0xb77192f1 in ?? () from /usr/lib/libQtCore.so.4
#26 0xb7715960 in ?? () from /usr/lib/libQtCore.so.4
#27 0xb64ca718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0xb64cdc7b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#29 0xb64cddf8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0xb77158b8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#31 0xb6dac335 in ?? () from /usr/lib/libQtGui.so.4
#32 0xb76e87ea in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#33 0xb76e8c2a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#34 0xb76eb0b9 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#35 0xb6d0dc67 in QApplication::exec () from /usr/lib/libQtGui.so.4
#36 0x0804e3f7 in _start ()

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The backtrace looks good. Could someone forward this report on to KDE and post a link to the KDE bug here please?

Changed in kdegraphics (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Laurent Claessens (moky-math) wrote :
Changed in kdegraphics:
status: Unknown → New
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fixed in KDE 4.2.4 and KDE 4.3. :)

Changed in kdegraphics (Ubuntu):
status: Confirmed → Fix Released
Changed in kdegraphics:
status: New → Fix Released
Changed in kdegraphics:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.