Bug 279119

Summary: Crash when opening xps file
Product: [Applications] okular Reporter: Marvin <marvbudd>
Component: XPS backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 0.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marvin 2011-08-02 02:24:29 UTC
Application: okular (0.12.2)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-10-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
An Itinerary from delta simply will not print properly - duplexed. So I printed it to an XPS and am trying to print that with Okular. So far not luckl
When Opening the file it immediately shows the crash dialog.

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f3948db7700 (LWP 2105)):
#0  0x00007f39517bbf03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f394e6b9104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f394e6b99f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3949716c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f394e6e03e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f394eb84d8c in start_thread (arg=0x7f3948db7700) at pthread_create.c:304
#6  0x00007f39517c904d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f3930cbf700 (LWP 2136)):
#0  0x00007f39517bbf03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f394e6b9104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f394e6b9639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f395217a446 in QEventDispatcherGlib::processEvents (this=0x1a3e680, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f395214e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f395214eabc in QEventLoop::exec (this=0x7f3930cbedd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f3952065924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007f3952130c2f in QInotifyFileSystemWatcherEngine::run (this=0x1a3bec0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f3952068175 in QThreadPrivate::start (arg=0x1a3bec0) at thread/qthread_unix.cpp:320
#9  0x00007f394eb84d8c in start_thread (arg=0x7f3930cbf700) at pthread_create.c:304
#10 0x00007f39517c904d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f393d1ee700 (LWP 2159)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f39302a848c in XpsFile::loadFontByName (this=<value optimized out>, fileName=...) at ../../../../okular/generators/xps/generator_xps.cpp:1503
#8  0x00007f39302ac9a0 in XpsFile::getFontByName (this=0x1a2e0a0, fileName=..., size=24) at ../../../../okular/generators/xps/generator_xps.cpp:1471
#9  0x00007f39302afcc7 in XpsHandler::processGlyph (this=0x7f393d1edc00, node=...) at ../../../../okular/generators/xps/generator_xps.cpp:805
#10 0x00007f39302b3629 in XpsHandler::processEndElement (this=0x7f393d1edc00, node=...) at ../../../../okular/generators/xps/generator_xps.cpp:1295
#11 0x00007f39302b4d88 in XpsHandler::endElement (this=0x7f393d1edc00, nameSpace=<value optimized out>, localName=..., qname=<value optimized out>) at ../../../../okular/generators/xps/generator_xps.cpp:778
#12 0x00007f3950fc3243 in QXmlSimpleReaderPrivate::processElementEmptyTag (this=0x7f394400d800) at sax/qxml.cpp:4010
#13 0x00007f3950fc3ce8 in QXmlSimpleReaderPrivate::parseElement (this=0x7f394400d800) at sax/qxml.cpp:3973
#14 0x00007f3950fc44c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f394400d800) at sax/qxml.cpp:4426
#15 0x00007f3950fc3c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f394400d800) at sax/qxml.cpp:3952
#16 0x00007f3950fc44c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f394400d800) at sax/qxml.cpp:4426
#17 0x00007f3950fc3c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f394400d800) at sax/qxml.cpp:3952
#18 0x00007f3950fc4f70 in QXmlSimpleReaderPrivate::parseBeginOrContinue (this=0x7f394400d800, state=<value optimized out>, incremental=false) at sax/qxml.cpp:3497
#19 0x00007f3950fc525e in QXmlSimpleReader::parse (this=<value optimized out>, input=0x7f393d1edcc0, incremental=false) at sax/qxml.cpp:3439
#20 0x00007f39302a8f4a in XpsPage::renderToPainter (this=0x1a2da30, painter=0x7f393d1edd30) at ../../../../okular/generators/xps/generator_xps.cpp:1453
#21 0x00007f39302a9213 in XpsPage::renderToImage (this=0x1a2da30, p=0x7f393d1eddf0) at ../../../../okular/generators/xps/generator_xps.cpp:1432
#22 0x00007f39302a931f in XpsGenerator::image (this=0x1bf5d00, request=0x177f5a0) at ../../../../okular/generators/xps/generator_xps.cpp:2128
#23 0x00007f393611d329 in Okular::PixmapGenerationThread::run (this=0x177f670) at ../../okular/core/generator_p.cpp:64
#24 0x00007f3952068175 in QThreadPrivate::start (arg=0x177f670) at thread/qthread_unix.cpp:320
#25 0x00007f394eb84d8c in start_thread (arg=0x7f393d1ee700) at pthread_create.c:304
#26 0x00007f39517c904d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3930298700 (LWP 2160)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f39520672b3 in QMutexPrivate::wait (this=0x18d03c0, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f3952063d05 in QMutex::lock (this=0x1c00f90) at thread/qmutex.cpp:204
#3  0x00007f39302af7c2 in QMutexLocker (this=0x1bf5d00, page=0x1c53080) at /usr/include/qt4/QtCore/qmutex.h:102
#4  XpsGenerator::textPage (this=0x1bf5d00, page=0x1c53080) at ../../../../okular/generators/xps/generator_xps.cpp:2134
#5  0x00007f393611d162 in Okular::TextPageGenerationThread::run (this=0x194ecf0) at ../../okular/core/generator_p.cpp:103
#6  0x00007f3952068175 in QThreadPrivate::start (arg=0x194ecf0) at thread/qthread_unix.cpp:320
#7  0x00007f394eb84d8c in start_thread (arg=0x7f3930298700) at pthread_create.c:304
#8  0x00007f39517c904d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3954533780 (LWP 2095)):
#0  0x00007f39517bbf03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f394bb64512 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f394bb64a5f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f394bb64ae4 in xcb_writev () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007f39504932a7 in _XSend () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f39504937fb in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007f3950477365 in XGetImage () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007f3952bfdcdb in QX11PixmapData::toImage (this=0x171d570, rect=...) at image/qpixmap_x11.cpp:1545
#8  0x00007f3952bfa05a in QX11PixmapData::toImage (this=<value optimized out>) at image/qpixmap_x11.cpp:1576
#9  0x00007f3952be8a70 in QPixmap::toImage (this=0x7fff130e4c60) at image/qpixmap.cpp:487
#10 0x00007f3952babd1a in QWidgetPrivate::setWindowIcon_sys (this=0x19b1460, forceReset=false) at kernel/qwidget_x11.cpp:1471
#11 0x00007f3952b590c5 in QWidget::create (this=0x19b1430, window=0, initializeWindow=true, destroyOldWindow=true) at kernel/qwidget.cpp:1497
#12 0x00007f3952bab852 in QWidgetPrivate::setParent_sys (this=0x19b1460, parent=0x0, f=...) at kernel/qwidget_x11.cpp:1195
#13 0x00007f3952b62abf in QWidget::setParent (this=0x19b1430, parent=0x0, f=...) at kernel/qwidget.cpp:10059
#14 0x00007f3952b632e2 in QWidget::setParent (this=<value optimized out>, parent=<value optimized out>) at kernel/qwidget.cpp:10013
#15 0x00007f3952b66600 in QWidgetAction::releaseWidget (this=0x19c4360, widget=0x19b1430) at kernel/qwidgetaction.cpp:207
#16 0x00007f3952f8b0e9 in QToolBarLayout::~QToolBarLayout (this=0x1a2b4e0, __in_chrg=<value optimized out>) at widgets/qtoolbarlayout.cpp:104
#17 0x00007f3952f8b179 in QToolBarLayout::~QToolBarLayout (this=0x1a2b4e0, __in_chrg=<value optimized out>) at widgets/qtoolbarlayout.cpp:108
#18 0x00007f3952b5adce in QWidget::~QWidget (this=0x1a2b550, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1543
#19 0x00007f3953922329 in KToolBar::~KToolBar (this=0x1a2b550, __in_chrg=<value optimized out>) at ../../kdeui/widgets/ktoolbar.cpp:732
#20 0x00007f3952161c14 in QObjectPrivate::deleteChildren (this=0x1a36880) at kernel/qobject.cpp:1964
#21 0x00007f3952b5aef2 in QWidget::~QWidget (this=0x1a37a20, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#22 0x00007f3952b5b1a9 in QWidget::~QWidget (this=0x1a37a20, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1651
#23 0x00007f3952161c14 in QObjectPrivate::deleteChildren (this=0x19dac80) at kernel/qobject.cpp:1964
#24 0x00007f3952b5aef2 in QWidget::~QWidget (this=0x19dac50, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#25 0x00007f3952f6ae09 in QSplitter::~QSplitter (this=0x19dac50, __in_chrg=<value optimized out>) at widgets/qsplitter.cpp:1056
#26 0x00007f3952161c14 in QObjectPrivate::deleteChildren (this=0x1a34400) at kernel/qobject.cpp:1964
#27 0x00007f3952b5aef2 in QWidget::~QWidget (this=0x1a223f0, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#28 0x00007f3930d18b57 in KFileWidget::~KFileWidget (this=0x1a223f0, __in_chrg=<value optimized out>) at ../../kfile/kfilewidget.cpp:638
#29 0x00007f3930d18bc9 in KFileWidget::~KFileWidget (this=0x1a223f0, __in_chrg=<value optimized out>) at ../../kfile/kfilewidget.cpp:644
#30 0x00007f3952161c14 in QObjectPrivate::deleteChildren (this=0x1a37cc0) at kernel/qobject.cpp:1964
#31 0x00007f3952b5aef2 in QWidget::~QWidget (this=0x7fff130e5480, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#32 0x000000000040a5e1 in Shell::fileOpen (this=0x17845e0) at ../../../okular/shell/shell.cpp:253
#33 0x000000000040a8d4 in Shell::qt_metacall (this=0x17845e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff130e56b0) at ./shell.moc:90
#34 0x00007f39521645f8 in QMetaObject::activate (sender=0x190e650, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff130e56b0) at kernel/qobject.cpp:3287
#35 0x00007f3952b08122 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#36 0x00007f3952b0830f in QAction::activate (this=0x190e650, event=<value optimized out>) at kernel/qaction.cpp:1257
#37 0x00007f3952f4c9f3 in QMenuPrivate::activateCausedStack (this=0x192ad10, causedStack=..., action=0x190e650, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#38 0x00007f3952f529aa in QMenuPrivate::activateAction (this=0x192ad10, action=0x190e650, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1085
#39 0x00007f39538f7e8d in KMenu::mouseReleaseEvent (this=0x19203f0, e=<value optimized out>) at ../../kdeui/widgets/kmenu.cpp:458
#40 0x00007f3952b5fcc8 in QWidget::event (this=0x19203f0, event=0x7fff130e62e0) at kernel/qwidget.cpp:8259
#41 0x00007f3952f53b8b in QMenu::event (this=0x19203f0, e=0x7fff130e62e0) at widgets/qmenu.cpp:2415
#42 0x00007f3952b0e9f4 in QApplicationPrivate::notify_helper (this=0x1505f70, receiver=0x19203f0, e=0x7fff130e62e0) at kernel/qapplication.cpp:4462
#43 0x00007f3952b13dc3 in QApplication::notify (this=<value optimized out>, receiver=0x19203f0, e=0x7fff130e62e0) at kernel/qapplication.cpp:4023
#44 0x00007f3953831866 in KApplication::notify (this=0x7fff130e6fb0, receiver=0x19203f0, event=0x7fff130e62e0) at ../../kdeui/kernel/kapplication.cpp:311
#45 0x00007f395214f49c in QCoreApplication::notifyInternal (this=0x7fff130e6fb0, receiver=0x19203f0, event=0x7fff130e62e0) at kernel/qcoreapplication.cpp:731
#46 0x00007f3952b0fa1d in sendEvent (receiver=0x19203f0, event=0x7fff130e62e0, alienWidget=0x0, nativeWidget=0x19203f0, buttonDown=0x7f39535f2218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#47 QApplicationPrivate::sendMouseEvent (receiver=0x19203f0, event=0x7fff130e62e0, alienWidget=0x0, nativeWidget=0x19203f0, buttonDown=0x7f39535f2218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#48 0x00007f3952b913e4 in QETWidget::translateMouseEvent (this=0x19203f0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4492
#49 0x00007f3952b8fab7 in QApplication::x11ProcessEvent (this=0x7fff130e6fb0, event=0x7fff130e6c30) at kernel/qapplication_x11.cpp:3680
#50 0x00007f3952bb8842 in x11EventSourceDispatch (s=0x150a740, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#51 0x00007f394e6b8bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007f394e6b93a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#53 0x00007f394e6b9639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007f395217a3ef in QEventDispatcherGlib::processEvents (this=0x14bb340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#55 0x00007f3952bb84de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#56 0x00007f395214e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#57 0x00007f395214eabc in QEventLoop::exec (this=0x7fff130e6f30, flags=...) at kernel/qeventloop.cpp:201
#58 0x00007f3952152ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#59 0x000000000040812e in main (argc=5, argv=<value optimized out>) at ../../../okular/shell/main.cpp:85

Possible duplicates by query: bug 275780, bug 274482.

Reported using DrKonqi
Comment 1 Pino Toscano 2011-08-02 08:13:31 UTC

*** This bug has been marked as a duplicate of bug 274482 ***