Bug 206951

Summary: Okular crash during the refresh of the content of a dvi file several time modified
Product: [Applications] okular Reporter: Jean-Charles Boisson <jeancharles.boisson>
Component: DVI backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jean-Charles Boisson 2009-09-10 11:22:35 UTC
Application that crashed: okular
Version of the application: 0.9
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.30.5-43.fc11.i686.PAE i686
Distribution: "Fedora release 11 (Leonidas)"

What I was doing when the application crashed:
A dvi file opened with okular is several time modified (latex compilation) and each time okular recharges the file in order to show the new content. After a lot of modifications (>50), okular crashed.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
43	      if (__builtin_expect ((oldval & CANCELED_BITMASK) != 0, 0))
[Current thread is 1 (Thread 0xb7f5e780 (LWP 5152))]

Thread 2 (Thread 0xb44d8b70 (LWP 17780)):
[KCrash Handler]
#6  0x00ff6c7a in dviRenderer::sizeOfPage (this=0x0, page=@0xb1a38780) at /usr/src/debug/kdegraphics-4.3.0/okular/generators/dvi/dviRenderer_dr.cpp:26
#7  0x00fe6a1c in DviGenerator::textPage (this=0x91bbf08, page=0x97e5d68) at /usr/src/debug/kdegraphics-4.3.0/okular/generators/dvi/generator_dvi.cpp:288
#8  0x00f9070a in Okular::TextPageGenerationThread::run (this=0x98098e0) at /usr/src/debug/kdegraphics-4.3.0/okular/core/generator_p.cpp:103
#9  0x05b832f2 in QThreadPrivate::start (arg=0x98098e0) at thread/qthread_unix.cpp:188
#10 0x009c5935 in start_thread (arg=0xb44d8b70) at pthread_create.c:297
#11 0x008fa94e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7f5e780 (LWP 5152)):
#0  0x00909f4e in __libc_enable_asynccancel () at libc-cancellation.c:43
#1  0x008f0380 in *__GI___poll (fds=0xbfdc9c18, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:85
#2  0x00a240a0 in ?? () from /usr/lib/libxcb.so.1
#3  0x00a2460b in ?? () from /usr/lib/libxcb.so.1
#4  0x00a249a7 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0x00a7ce09 in _XSend (dpy=0x9164798, data=0x0, size=0) at xcb_io.c:332
#6  0x00a7cfa0 in _XReply (dpy=0x9164798, rep=0xbfdc9de0, extra=0, discard=0) at xcb_io.c:450
#7  0x00a5ac26 in XGetWindowProperty (dpy=0x9164798, w=75514497, property=35, offset=0, length=9, delete=0, req_type=35, actual_type=0xbfdc9e78, actual_format=0xbfdc9e74, nitems=0xbfdc9e6c, 
    bytesafter=0xbfdc9e70, prop=0xbfdc9e7c) at GetProp.c:64
#8  0x00a59e76 in XGetWMHints (dpy=0x9164798, w=75514497) at GetHints.c:118
#9  0x0639e05f in QWidgetPrivate::setWindowIcon_sys (this=0x9434cc8, forceReset=false) at kernel/qwidget_x11.cpp:1326
#10 0x0635e7b1 in QWidget::create (this=0x956d638, window=0, initializeWindow=<value optimized out>, destroyOldWindow=<value optimized out>) at kernel/qwidget.cpp:1283
#11 0x0635a7e6 in QWidgetPrivate::createWinId (this=0x9434cc8, winid=0) at kernel/qwidget.cpp:2187
#12 0x0635e0a8 in QWidgetPrivate::setWindowTitle_helper (this=0x9434cc8, title=@0xbfdca1a8) at kernel/qwidget.cpp:5370
#13 0x0635e4e2 in QWidget::setWindowTitle (this=0x956d638, title=@0xbfdca1a8) at kernel/qwidget.cpp:5401
#14 0x06cb97bc in KDialog::setPlainCaption (this=0x956d638, caption=@0xbfdca1a8) at /usr/src/debug/kdelibs-4.3.0/kdeui/dialogs/kdialog.cpp:463
#15 0x06cbc390 in KDialogPrivate::init (this=0x98df148, q=0x956d638) at /usr/src/debug/kdelibs-4.3.0/kdeui/dialogs/kdialog.cpp:174
#16 0x06cbc6cb in KDialog::KDialog(struct QWidget *, Qt::WFlags) (this=0x956d638, parent=0x0, flags={i = -1076059508}) at /usr/src/debug/kdelibs-4.3.0/kdeui/dialogs/kdialog.cpp:185
#17 0x0101d5c1 in fontProgressDialog::fontProgressDialog(const QString &, const QString &, const QString &, const QString &, const QString &, struct QWidget *, bool) (this=0x956d638, 
    helpIndex=@0xbfdca37c, label=@0xbfdca380, abortTip=@0xbfdca384, whatsThis=@0xbfdca388, ttip=@0xbfdca38c, parent=0x0, progressbar=true)
    at /usr/src/debug/kdegraphics-4.3.0/okular/generators/dvi/fontprogress.cpp:31
#18 0x0101c4a8 in fontPool::fontPool (this=0x956d5c8) at /usr/src/debug/kdegraphics-4.3.0/okular/generators/dvi/fontpool.cpp:45
#19 0x00fe9a0f in dviRenderer::dviRenderer (this=0x956d5a8) at /usr/src/debug/kdegraphics-4.3.0/okular/generators/dvi/dviRenderer.cpp:69
#20 0x00fe6658 in DviGenerator::loadDocument (this=0x91bbf08, fileName=@0xbfdca86c, pagesVector=@0x91ff078) at /usr/src/debug/kdegraphics-4.3.0/okular/generators/dvi/generator_dvi.cpp:81
#21 0x00f79187 in Okular::DocumentPrivate::openDocumentInternal (this=0x91fefc0, offer=@0xbfdca658, isstdin=false, docFile=@0xbfdca86c, filedata=@0xbfdca6d8)
    at /usr/src/debug/kdegraphics-4.3.0/okular/core/document.cpp:643
#22 0x00f85981 in Okular::Document::openDocument (this=0x91f8760, docFile=@0xbfdca86c, url=@0xbfdca7e0, _mime=@0xbfdca88c) at /usr/src/debug/kdegraphics-4.3.0/okular/core/document.cpp:1611
#23 0x00e40e1b in Part::openFile (this=0x91dc280) at /usr/src/debug/kdegraphics-4.3.0/okular/part.cpp:921
#24 0x0763a019 in KParts::ReadOnlyPart::openUrl (this=0x91dc280, url=@0xbfdca9ac) at /usr/src/debug/kdelibs-4.3.0/kparts/part.cpp:557
#25 0x00e4214f in Part::slotDoFileDirty (this=0x91dc280) at /usr/src/debug/kdegraphics-4.3.0/okular/part.cpp:1192
#26 0x00e42975 in Part::qt_metacall (this=0x91dc280, _c=QMetaObject::InvokeMetaMethod, _id=56, _a=0xbfdcaa8c) at /usr/src/debug/kdegraphics-4.3.0/i586-redhat-linux-gnu/okular/part.moc:232
#27 0x05c89853 in QMetaObject::activate (sender=0x93b2fc8, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#28 0x05c8a4b2 in QMetaObject::activate (sender=0x93b2fc8, m=0x5d653c4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#29 0x05cc3b47 in QTimer::timeout (this=0x93b2fc8) at .moc/release-shared/moc_qtimer.cpp:128
#30 0x05c8ef8e in QTimer::timerEvent (this=0x93b2fc8, e=0xbfdcaf20) at kernel/qtimer.cpp:261
#31 0x05c8396f in QObject::event (this=0x93b2fc8, e=0xbfdcaf20) at kernel/qobject.cpp:1075
#32 0x06307974 in QApplicationPrivate::notify_helper (this=0x91522b8, receiver=0x93b2fc8, e=0xbfdcaf20) at kernel/qapplication.cpp:4056
#33 0x0630f0e9 in QApplication::notify (this=0xbfdcb2e8, receiver=0x93b2fc8, e=0xbfdcaf20) at kernel/qapplication.cpp:3603
#34 0x06d54a7a in KApplication::notify (this=0xbfdcb2e8, receiver=0x93b2fc8, event=0xbfdcaf20) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#35 0x05c73b0b in QCoreApplication::notifyInternal (this=0xbfdcb2e8, receiver=0x93b2fc8, event=0xbfdcaf20) at kernel/qcoreapplication.cpp:610
#36 0x05ca0d7e in QCoreApplication::sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#37 QTimerInfoList::activateTimers (event=<value optimized out>, receiver=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:572
#38 0x05c9e6a0 in timerSourceDispatch (source=0x9155400) at kernel/qeventdispatcher_glib.cpp:165
#39 0x00ba5cf8 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#40 0x00ba9370 in ?? () from /lib/libglib-2.0.so.0
#41 0x00ba94a3 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#42 0x05c9e5ec in QEventDispatcherGlib::processEvents (this=0x913c890, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:327
#43 0x063a6cb5 in QGuiEventDispatcherGlib::processEvents (this=0x913c890, flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
#44 0x05c720d9 in QEventLoop::processEvents (this=0xbfdcb1e4, flags={i = 36}) at kernel/qeventloop.cpp:149
#45 0x05c7252a in QEventLoop::exec (this=0xbfdcb1e4, flags={i = 0}) at kernel/qeventloop.cpp:201
#46 0x05c749af in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#47 0x063077f7 in QApplication::exec () at kernel/qapplication.cpp:3525
#48 0x0804e689 in main (argc=6, argv=0xbfdcb4d4) at /usr/src/debug/kdegraphics-4.3.0/okular/shell/main.cpp:81

Reported using DrKonqi
Comment 1 Albert Astals Cid 2010-03-18 21:05:21 UTC
This kind of problems were fixed in KDE 4.4.x versions, please update and try again, if you can still reproduce the problem reopen the bug.

Thanks for using Okular :-)