Bug 208037 - [testcase] Okular crashes on PDF opening
Summary: [testcase] Okular crashes on PDF opening
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:
Depends on:
Blocks:
 
Reported: 2009-09-21 01:58 UTC by Julien Humbert
Modified: 2009-09-21 19:32 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 Julien Humbert 2009-09-21 01:58:18 UTC
Application that crashed: okular
Version of the application: 0.9.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30.5-43.fc11.x86_64 x86_64
Distribution: "Fedora release 11 (Leonidas)"

What I was doing when the application crashed:
Okular is crashing badly when I'm trying to open a certain PDF Document available here : http://www.tecnick.com/pagefiles/tcpdf/example_054.pdf (example PDF generated from TCPDF).

Reproducible for every try to open this file.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f3f7d885820 (LWP 9769))]

Thread 3 (Thread 0x7f3f72ee4910 (LWP 9770)):
[KCrash Handler]
#5  0x000000390aa08dd1 in pthread_mutex_lock () from /lib64/libpthread.so.0
#6  0x0000003c7309f202 in CharCodeToUnicode::decRefCnt() () from /usr/lib64/libpoppler.so.4
#7  0x0000003c7308d67e in AnnotWidget::layoutText(GooString*, GooString*, int*, GfxFont*, double*, double, int*, int) () from /usr/lib64/libpoppler.so.4
#8  0x0000003c7308e373 in AnnotWidget::drawListBox(GooString**, int*, int, int, GooString*, GfxFontDict*, int) () from /usr/lib64/libpoppler.so.4
#9  0x0000003c73094923 in AnnotWidget::generateFieldAppearance() () from /usr/lib64/libpoppler.so.4
#10 0x0000003c73094c86 in AnnotWidget::draw(Gfx*, int) () from /usr/lib64/libpoppler.so.4
#11 0x0000003c730f90bd in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib64/libpoppler.so.4
#12 0x00007f3f7470dbfe in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const () from /usr/lib64/libpoppler-qt4.so.3
#13 0x00007f3f749a15a8 in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#14 0x0000003160059d45 in ?? () from /usr/lib64/libQtCore.so.4
#15 0x000000390aa0686a in start_thread () from /lib64/libpthread.so.0
#16 0x0000003909ede3bd in clone () from /lib64/libc.so.6
#17 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3f7134c910 (LWP 9771)):
#0  0x000000390aa08e08 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x000000398f43771c in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#2  0x000000398f43b0e8 in ?? () from /lib64/libglib-2.0.so.0
#3  0x000000398f43b20a in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x000000316016798e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x000000316013ded2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x000000316013e2a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x0000003160056f8b in QThread::exec() () from /usr/lib64/libQtCore.so.4
#8  0x00000031601215b8 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x0000003160059d45 in ?? () from /usr/lib64/libQtCore.so.4
#10 0x000000390aa0686a in start_thread () from /lib64/libpthread.so.0
#11 0x0000003909ede3bd in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3f7d885820 (LWP 9769)):
#0  0x0000003909ed50d3 in poll () from /lib64/libc.so.6
#1  0x000000390b60882a in ?? () from /usr/lib64/libxcb.so.1
#2  0x000000390b60a19c in xcb_wait_for_reply () from /usr/lib64/libxcb.so.1
#3  0x000000390b24ca83 in _XReply () from /usr/lib64/libX11.so.6
#4  0x000000390b229445 in XGetImage () from /usr/lib64/libX11.so.6
#5  0x000000316085cfae in QX11PixmapData::toImage() const () from /usr/lib64/libQtGui.so.4
#6  0x000000316084cdcd in QPixmap::toImage() const () from /usr/lib64/libQtGui.so.4
#7  0x00007f3f782f75b8 in getIconPixmap (icon=<value optimized out>, size=<value optimized out>, mode=<value optimized out>) at /home/julroy67/Apps/QtCurve-KDE4-0.68.1/style/qtcurve.cpp:252
#8  0x00007f3f7833097c in QtCurveStyle::drawControl (this=0x7759e0, element=<value optimized out>, option=0x7fff84b92b40, painter=0x7fff84b93340, widget=0x8edd90)
    at /home/julroy67/Apps/QtCurve-KDE4-0.68.1/style/qtcurve.cpp:5989
#9  0x00007f3f7832d8ce in QtCurveStyle::drawComplexControl (this=0x7759e0, control=<value optimized out>, option=0x7fff84b932c0, painter=0x7fff84b93340, widget=0x8edd90)
    at /home/julroy67/Apps/QtCurve-KDE4-0.68.1/style/qtcurve.cpp:6352
#10 0x0000003160bc13c8 in QToolButton::paintEvent(QPaintEvent*) () from /usr/lib64/libQtGui.so.4
#11 0x00000031607ddb68 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x000000316078f69c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#13 0x00000031607968fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#14 0x0000003162a11b56 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#15 0x000000316013f59c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#16 0x00000031607e4ec3 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#17 0x00000031607e5610 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#18 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#19 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#20 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#21 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#22 0x00000031607e4b33 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#23 0x00000031607e5610 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#24 0x00000031607e4b33 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#25 0x00000031607e5610 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#26 0x00000031607e4b33 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#27 0x00000031607e5610 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#28 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#29 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#30 0x00000031607e4b33 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#31 0x00000031607e5610 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#32 0x00000031607e4b33 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#33 0x00000031607e5610 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#34 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#35 0x00000031607e5524 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib64/libQtGui.so.4
#36 0x00000031607e4b33 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQtGui.so.4
#37 0x0000003160954cfe in ?? () from /usr/lib64/libQtGui.so.4
#38 0x00000031607d7470 in QWidgetPrivate::syncBackingStore() () from /usr/lib64/libQtGui.so.4
#39 0x00000031607dd981 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#40 0x0000003160b4ff6b in QMainWindow::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#41 0x0000003162b1c803 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libkdeui.so.5
#42 0x000000316078f69c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#43 0x00000031607968fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#44 0x0000003162a11b56 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#45 0x000000316013f59c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#46 0x00000031601401a2 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#47 0x0000003160167cc3 in ?? () from /usr/lib64/libQtCore.so.4
#48 0x000000398f43790e in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#49 0x000000398f43b0e8 in ?? () from /lib64/libglib-2.0.so.0
#50 0x000000398f43b20a in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#51 0x0000003160167936 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#52 0x0000003160821f8e in ?? () from /usr/lib64/libQtGui.so.4
#53 0x000000316013ded2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#54 0x000000316013e2a4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#55 0x0000003160140439 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#56 0x0000000000407fc9 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-09-21 02:51:03 UTC
I could reproduce the bug here using:

Qt: 4.5.2 (KDE-Qt git commit 0bd84180cd0a6ae5c5eb18c0d3ed74228434608d
        Date:   Mon Aug 24 13:56:57 2009 +0200)
KDE: 4.3.68 (KDE 4.3.68 (KDE 4.4 >= 20090916))
kdelibs svn rev. 1025747 / kdebase svn rev. 1025747
kdegraphics svn rev. 1026180
poppler 0.10.7
poppler-qt 0.10.7
on ArchLinux i686 - Kernel 2.6.30.6

Just opening the testcase PDF will cause Okular to crash. (however I don't know if it is Poppler specific)

Thanks
Comment 2 Julien Humbert 2009-09-21 17:42:04 UTC
I forgot to mention the poppler version I'm using :

poppler.x86_64       0.10.7-2.fc11
poppler-glib.x86_64  0.10.7-2.fc11
poppler-qt4.x86_64   0.10.7-2.fc11
Comment 3 Albert Astals Cid 2009-09-21 19:32:47 UTC
See http://bugs.freedesktop.org/show_bug.cgi?id=24036