Bug 174899

Summary: okular crashes on this PDF file
Product: [Applications] okular Reporter: Jason Bechtel <jasonmbechtel>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: crash CC: aacid, andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: a handbook for the bioinformatics PhD program at UCSD

Description Jason Bechtel 2008-11-11 21:57:57 UTC
Version:           unknown (using 4.1.3 (KDE 4.1.3), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.27-7-generic

The attached PDF file causes okular to crash and causes Dolphin to continuously try to render a thumbnail for the file.
Comment 1 Jason Bechtel 2008-11-11 21:59:00 UTC
Created attachment 28498 [details]
a handbook for the bioinformatics PhD program at UCSD
Comment 2 Dario Andres 2008-11-12 01:01:51 UTC
Here:
Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3)
Okular: 0.7.3

I can reproduce this bug.

ASSERT: "genericServiceTypePtr" in file /home/dario/Build/ABS/extra/kdelibs/src/kdelibs-4.1.3/kdecore/services/kmimetypetrader.cpp, line 107

Backtrace:

Aplicación: Okular (okular), señal SIGABRT
[?1034h(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6427b50 (LWP 3326)]
[KCrash handler]
#5  0xb80a5424 in __kernel_vsyscall ()
#6  0xb697e720 in raise () from /lib/libc.so.6
#7  0xb6980058 in abort () from /lib/libc.so.6
#8  0xb7f24815 in qt_message_output () from /usr/lib/libQtCore.so.4
#9  0xb7f248c6 in qFatal () from /usr/lib/libQtCore.so.4
#10 0xb7f24955 in qt_assert () from /usr/lib/libQtCore.so.4
#11 0xb7dcbc6b in filterMimeTypeOffers (list=@0xb6a92844, 
    genericServiceType=<value optimized out>)
    at /home/dario/Build/ABS/extra/kdelibs/src/kdelibs-4.1.3/kdecore/services/kmimetypetrader.cpp:107
#12 0xb7dcbf2b in KMimeTypeTrader::query (this=0x8796520, 
    mimeType=@0xbffc132c, genericServiceType=@0xbffc1328, 
    constraint=@0xbffc1334)
    at /home/dario/Build/ABS/extra/kdelibs/src/kdelibs-4.1.3/kdecore/services/kmimetypetrader.cpp:127
#13 0xb4a21ae8 in Okular::Document::openDocument ()
   from /usr/lib/libokularcore.so.1
#14 0xb4a9de5d in Part::openFile () from /usr/lib/kde4/okularpart.so
#15 0xb774e2b9 in KParts::ReadOnlyPart::openUrl (this=0x888b4f8, 
    url=@0x87eb5e0)
    at /home/dario/Build/ABS/extra/kdelibs/src/kdelibs-4.1.3/kparts/part.cpp:557
#16 0xb4a986dc in Part::openUrl () from /usr/lib/kde4/okularpart.so
#17 0x0804ef77 in _start ()
#0  0xb80a5424 in __kernel_vsyscall ()
Comment 3 Pino Toscano 2008-11-12 01:14:01 UTC
@Darío Andrés:
your problem is different: run `kbuildsycoca4 --noincremental` in a console.

@Jason:
please provide a backtrace of the crash. You can find more instruction in the following page:
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Thanks!
Comment 4 Dario Andres 2008-11-12 01:19:57 UTC
Pino (comment 3): sorry and thanks for the hint :) 
Now, I'm able to open and view the file OK without a crash. Dolphin inmediatly renders the preview for the file too.

Using:
Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3)
Okular: 0.7.3
poppler 0.10.0
poppler-qt 0.10.0
in ArchLinux i686
Comment 5 Jason Bechtel 2008-11-12 01:31:32 UTC
I've installed kdelibs-dbg and qt-x11-free-dbg under Kubuntu 8.10.  The KDE Crash Handler still says "(no debugging symbols found)" and that it's a useless backtrace.  What other packages do I need to install to get a meaningful backtrace for this crash?

(There is no okular-dbg or dolphin-dbg in the repositories.)
Comment 6 Pino Toscano 2008-11-12 01:39:11 UTC
okular is part of kdegraphics, so kdegraphics-dbg, kdegraphics-debuginfo or similar.
Comment 7 Jason Bechtel 2008-11-12 02:04:11 UTC
Application: Okular (okular), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb624b6c0 (LWP 8741)]
[New Thread 0xb3103b90 (LWP 8746)]
[KCrash handler]
#6  0xb80d6430 in __kernel_vsyscall ()
#7  0xb6b0d880 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6b0f248 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb6b0672e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0xb673e5ae in ?? () from /usr/lib/libX11.so.6
#11 0xb66e8b0c in XRenderCompositeText32 () from /usr/lib/libXrender.so.1
#12 0xb7016492 in ?? () from /usr/lib/libQtGui.so.4
#13 0xb6f7d3f8 in QPainter::drawTextItem () from /usr/lib/libQtGui.so.4
#14 0xb6f7e311 in QPainter::drawText () from /usr/lib/libQtGui.so.4
#15 0xb6f7e53b in QPainter::drawText () from /usr/lib/libQtGui.so.4
#16 0xb4ca8c1d in PageViewMessage::paintEvent (this=0x85ef890)
    at /usr/include/qt4/QtGui/qpainter.h:852
#17 0xb6ec178b in QWidget::event () from /usr/lib/libQtGui.so.4
#18 0xb6e698ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0xb6e7183a in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0xb7c87b2d in KApplication::notify (this=0xbfdd66b8, receiver=0x85ef890, 
    event=0xbfdd4dfc)
    at /build/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#21 0xb77b7e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0xb6eca41e in ?? () from /usr/lib/libQtGui.so.4
#23 0xb6ec0150 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#24 0xb6ec08f2 in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#25 0xb6ec07fe in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#26 0xb6ec07fe in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#27 0xb6ebfdc8 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#28 0xb6ec08f2 in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#29 0xb6ec07fe in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#30 0xb6ebfdc8 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#31 0xb6ec08f2 in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#32 0xb6ec07fe in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#33 0xb6ebfdc8 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#34 0xb6ec08f2 in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#35 0xb6ebfdc8 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#36 0xb6ec08f2 in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#37 0xb6ec07fe in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#38 0xb6ec07fe in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#39 0xb6ebfdc8 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#40 0xb702ffae in ?? () from /usr/lib/libQtGui.so.4
#41 0xb7030477 in ?? () from /usr/lib/libQtGui.so.4
#42 0xb6ec15b6 in QWidget::event () from /usr/lib/libQtGui.so.4
#43 0xb7215497 in QMainWindow::event () from /usr/lib/libQtGui.so.4
#44 0xb7d59958 in KMainWindow::event (this=0x8372d58, ev=0x8424130)
    at /build/buildd/kde4libs-4.1.3/kdeui/widgets/kmainwindow.cpp:1073
#45 0xb7d9d15c in KXmlGuiWindow::event (this=0x8372d58, ev=0x8424130)
    at /build/buildd/kde4libs-4.1.3/kdeui/xmlgui/kxmlguiwindow.cpp:133
#46 0xb6e698ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#47 0xb6e7183a in QApplication::notify () from /usr/lib/libQtGui.so.4
#48 0xb7c87b2d in KApplication::notify (this=0xbfdd66b8, receiver=0x8372d58, 
    event=0x8424130)
    at /build/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#49 0xb77b7e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#50 0xb77b8ae5 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#51 0xb77b8cdd in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#52 0xb77e282f in ?? () from /usr/lib/libQtCore.so.4
#53 0xb65dd6f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#54 0xb65e0da3 in ?? () from /usr/lib/libglib-2.0.so.0
#55 0xb65e0f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#56 0xb77e2478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#57 0xb6f03ee5 in ?? () from /usr/lib/libQtGui.so.4
#58 0xb77b652a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#59 0xb77b66ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#60 0xb77b8da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#61 0xb6e69767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#62 0x0804df3f in main (argc=)
    at /build/buildd/kdegraphics-4.1.3/okular/shell/main.cpp:58
#0  0xb80d6430 in __kernel_vsyscall ()
Comment 8 Albert Astals Cid 2008-11-15 19:41:49 UTC
Old poppler, tell ubuntu to update to stable 0.10.x or do it yourself manually.