Bug 226635 - Intermitent Okular PDF crash
Summary: Intermitent Okular PDF crash
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 227308 228702 229646 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-13 07:39 UTC by Jesse W
Modified: 2010-10-23 22:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse W 2010-02-13 07:39:57 UTC
Application that crashed: okular
Version of the application: 0.9.2
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-19-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Some time after I open this particular PDF (linked below), scrolling around will cause a segfault, both in okular and in the gnome document viewer.  I suspect that this may be really a ghostscript 
bug.

The PDF that shows the problem (eventually):
http://cseweb.ucsd.edu/classes/wi10/cse140/lectures/wk5.pdf

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

Thread 2 (Thread 0xae5a3b70 (LWP 14112)):
[KCrash Handler]
#6  0x04d016a6 in FcConfigSubstituteWithPat () from /usr/lib/libfontconfig.so.1
#7  0x04d01d67 in FcConfigSubstitute () from /usr/lib/libfontconfig.so.1
#8  0x02f42306 in GlobalParams::getDisplayFont(GfxFont*) () from /usr/lib/libpoppler.so.5
#9  0x02ecf792 in SplashOutputDev::doUpdateFont(GfxState*) () from /usr/lib/libpoppler.so.5
#10 0x02ecfaad in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib/libpoppler.so.5
#11 0x02f19787 in Gfx::doShowText(GooString*) () from /usr/lib/libpoppler.so.5
#12 0x02f19aa6 in Gfx::opShowText(Object*, int) () from /usr/lib/libpoppler.so.5
#13 0x02f10606 in Gfx::execOp(Object*, Object*, int) () from /usr/lib/libpoppler.so.5
#14 0x02f10c29 in Gfx::go(int) () from /usr/lib/libpoppler.so.5
#15 0x02f13c89 in Gfx::display(Object*, int) () from /usr/lib/libpoppler.so.5
#16 0x02f5e9f0 in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.5
#17 0x02f62527 in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, int, int, int, int, int, int, int, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.5
#18 0x02790e74 in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const () from /usr/lib/libpoppler-qt4.so.3
#19 0x05c4fb15 in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#20 0x00a81e32 in QThreadPrivate::start (arg=0x8c18830) at thread/qthread_unix.cpp:188
#21 0x077c480e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#22 0x033618de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb77d3700 (LWP 8957)):
#0  0x077c8111 in __pthread_mutex_unlock_usercnt () from /lib/tls/i686/cmov/libpthread.so.0
#1  0x0336ea86 in pthread_mutex_unlock () from /lib/tls/i686/cmov/libc.so.6
#2  0x0271dd61 in ?? () from /usr/lib/libxcb.so.1
#3  0x0271e2eb in ?? () from /usr/lib/libxcb.so.1
#4  0x0271e687 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0x06d1d2e9 in _XSend () from /usr/lib/libX11.so.6
#6  0x06d1d949 in _XFlush () from /usr/lib/libX11.so.6
#7  0x00e50b70 in XRenderCompositeText32 () from /usr/lib/libXrender.so.1
#8  0x0123199b in QX11PaintEngine::drawFreetype (this=0x8c77ce8, p=..., ti=...) at painting/qpaintengine_x11.cpp:2435
#9  0x01197b41 in QPainter::drawTextItem (this=0xbf942bcc, p=..., _ti=...) at painting/qpainter.cpp:6164
#10 0x0129de01 in QTextLine::draw (this=0xbf941c48, p=0xbf942bcc, pos=..., selection=0x0) at text/qtextlayout.cpp:2137
#11 0x0129f295 in QTextLayout::draw (this=0x8a43eb4, p=0xbf942bcc, pos=..., selections=..., clip=...) at text/qtextlayout.cpp:1273
#12 0x01600981 in QItemDelegate::drawDisplay (this=0x8a455f8, painter=0xbf942bcc, option=..., rect=..., text=...) at itemviews/qitemdelegate.cpp:740
#13 0x02250074 in ?? () from /usr/lib/kde4/okularpart.so
#14 0x015ffbc1 in QItemDelegate::paint (this=0x8a455f8, painter=0xbf942bcc, option=..., index=...) at itemviews/qitemdelegate.cpp:479
#15 0x02250210 in ?? () from /usr/lib/kde4/okularpart.so
#16 0x015ea500 in QTreeView::drawRow (this=0x8a3a3d8, painter=0xbf942bcc, option=..., index=...) at itemviews/qtreeview.cpp:1640
#17 0x015f22cc in QTreeView::drawTree (this=0x8a3a3d8, painter=0xbf942bcc, region=...) at itemviews/qtreeview.cpp:1403
#18 0x015f2d4d in QTreeView::paintEvent (this=0x8a3a3d8, event=0xbf9433d4) at itemviews/qtreeview.cpp:1281
#19 0x010b3dd4 in QWidget::event (this=0x8a3a3d8, event=0xbf9433d4) at kernel/qwidget.cpp:7687
#20 0x01463633 in QFrame::event (this=0x8a3a3d8, e=0xbf9433d4) at widgets/qframe.cpp:559
#21 0x01502494 in QAbstractScrollArea::viewportEvent (this=0x1, e=0x88c21c4) at widgets/qabstractscrollarea.cpp:962
#22 0x015b6087 in QAbstractItemView::viewportEvent (this=0x8a3a3d8, event=0xbf9433d4) at itemviews/qabstractitemview.cpp:1476
#23 0x015f1434 in QTreeView::viewportEvent (this=0x8a3a3d8, event=0xbf9433d4) at itemviews/qtreeview.cpp:1266
#24 0x01504a95 in QAbstractScrollAreaPrivate::viewportEvent (this=0x8a3a868, o=0x8a4b658, e=0xbf9433d4) at widgets/qabstractscrollarea_p.h:100
#25 QAbstractScrollAreaFilter::eventFilter (this=0x8a3a868, o=0x8a4b658, e=0xbf9433d4) at widgets/qabstractscrollarea_p.h:111
#26 0x00b7183a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x88ba518, receiver=0x8a4b658, event=0xbf9433d4) at kernel/qcoreapplication.cpp:726
#27 0x0105ef2c in QApplicationPrivate::notify_helper (this=0x88ba518, receiver=0x8a4b658, e=0xbf9433d4) at kernel/qapplication.cpp:4052
#28 0x010665ca in QApplication::notify (this=0xbf944068, receiver=0x8a4b658, e=0xbf9433d4) at kernel/qapplication.cpp:4021
#29 0x00566bfa in KApplication::notify (this=0xbf944068, receiver=0x8a4b658, event=0xbf9433d4) at ../../kdeui/kernel/kapplication.cpp:302
#30 0x00b726cb in QCoreApplication::notifyInternal (this=0xbf944068, receiver=0x8a4b658, event=0xbf9433d4) at kernel/qcoreapplication.cpp:610
#31 0x010bbe25 in QCoreApplication::sendSpontaneousEvent (this=0x8a4d738, pdev=0x8a0855c, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x88e4528)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#32 QWidgetPrivate::drawWidget (this=0x8a4d738, pdev=0x8a0855c, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x88e4528) at kernel/qwidget.cpp:5079
#33 0x0124a233 in QWidgetBackingStore::sync (this=0x88e4528) at painting/qbackingstore.cpp:1261
#34 0x010ad116 in QWidgetPrivate::syncBackingStore (this=0x88e25e0) at kernel/qwidget.cpp:1603
#35 0x010b4215 in QWidget::event (this=0x89d4b08, event=0x95bcad8) at kernel/qwidget.cpp:7827
#36 0x01481297 in QMainWindow::event (this=0x89d4b08, event=0x95bcad8) at widgets/qmainwindow.cpp:1399
#37 0x0064cdc4 in KMainWindow::event (this=0x89d4b08, ev=0x95bcad8) at ../../kdeui/widgets/kmainwindow.cpp:1094
#38 0x0069330f in KXmlGuiWindow::event (this=0x89d4b08, ev=0x95bcad8) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#39 0x0105ef54 in QApplicationPrivate::notify_helper (this=0x88ba518, receiver=0x89d4b08, e=0x95bcad8) at kernel/qapplication.cpp:4056
#40 0x010665ca in QApplication::notify (this=0xbf944068, receiver=0x89d4b08, e=0x95bcad8) at kernel/qapplication.cpp:4021
#41 0x00566bfa in KApplication::notify (this=0xbf944068, receiver=0x89d4b08, event=0x95bcad8) at ../../kdeui/kernel/kapplication.cpp:302
#42 0x00b726cb in QCoreApplication::notifyInternal (this=0xbf944068, receiver=0x89d4b08, event=0x95bcad8) at kernel/qcoreapplication.cpp:610
#43 0x00b732b2 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x88a4e48) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#44 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x88a4e48) at kernel/qcoreapplication.cpp:1247
#45 0x00b7347d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#46 0x00b9d3ff in QCoreApplication::sendPostedEvents (s=0x88bc910) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#47 postEventSourceDispatch (s=0x88bc910) at kernel/qeventdispatcher_glib.cpp:210
#48 0x06576e88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#49 0x0657a730 in ?? () from /lib/libglib-2.0.so.0
#50 0x0657a863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#51 0x00b9d02c in QEventDispatcherGlib::processEvents (this=0x88a4a30, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#52 0x010ffbe5 in QGuiEventDispatcherGlib::processEvents (this=0x88a4a30, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#53 0x00b70c79 in QEventLoop::processEvents (this=0xbf943f64, flags=) at kernel/qeventloop.cpp:149
#54 0x00b710ca in QEventLoop::exec (this=0xbf943f64, flags=...) at kernel/qeventloop.cpp:201
#55 0x00b7353f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#56 0x0105edd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#57 0x0804eec9 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2010-02-15 16:11:02 UTC
The error could be related to the Poppler library or to FreeType (font rendering library)
- What are the version of your "poppler" packages ?
(wondering if https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/286175 could be related too)
Regards
Comment 2 Jesse W 2010-02-15 19:18:57 UTC
(In reply to comment #1)
> - What are the version of your "poppler" packages ?
The output of dpkg-query --list '*poppler*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libpoppler-gli 0.12.0-0ubuntu PDF rendering library (GLib-based shared lib
ii  libpoppler-qt4 0.12.0-0ubuntu PDF rendering library (Qt 4 based shared lib
rc  libpoppler4    0.10.5-1ubuntu PDF rendering library
ii  libpoppler5    0.12.0-0ubuntu PDF rendering library
un  poppler-data   <none>         (no description available)
ii  poppler-utils  0.12.0-0ubuntu PDF utilitites (based on libpoppler)

and freetype:

ii  libfreetype6   2.3.9-5        FreeType 2 font engine, shared library files
ii  libfreetype6-d 2.3.9-5        FreeType 2 font engine, development files
Comment 3 Jesse W 2010-02-17 04:37:03 UTC
*** Bug 227308 has been marked as a duplicate of this bug. ***
Comment 4 Albert Astals Cid 2010-02-18 01:13:14 UTC
It's quite weird since i'm on kubuntu 9.10 and that pdf works for me like a charm
Comment 5 Dario Andres 2010-02-27 14:36:29 UTC
*** Bug 228702 has been marked as a duplicate of this bug. ***
Comment 6 Pino Toscano 2010-10-23 22:06:16 UTC
*** Bug 229646 has been marked as a duplicate of this bug. ***
Comment 7 Pino Toscano 2010-10-23 22:08:16 UTC
This crash is (was?) in either the poppler library or in fontconfig, so nothing on Okular' side.

Closing also for lack of similar reports in the last months, so most probably it has been fixed some time ago.