Bug 275780 - Okular crashes when opening .xps file
Summary: Okular crashes when opening .xps file
Status: RESOLVED DUPLICATE of bug 274482
Alias: None
Product: okular
Classification: Applications
Component: XPS backend (show other bugs)
Version: 0.12.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 03:47 UTC by guile5575
Modified: 2011-06-16 23:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Document that crashes the program when attempting to open (297.71 KB, application/oxps)
2011-06-16 23:30 UTC, guile5575
Details

Note You need to log in before you can comment on or make changes to this bug.
Description guile5575 2011-06-16 03:47:55 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-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
Okular crashes on opening when attempting to open .xps file.

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f5abd865700 (LWP 9841)):
#0  0x00007f5ac6269f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5ac3167104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5ac31679f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5abe1c4c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f5ac318e3e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5ac3632d8c in start_thread (arg=0x7f5abd865700) at pthread_create.c:304
#6  0x00007f5ac627704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5ab1a3f700 (LWP 9842)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007f5ac198a392 in ?? () from /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
#2  0x00007f5ac313c2af in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5ac313cca9 in g_async_queue_timed_pop () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5ac3190a5a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5ac318e3e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f5ac3632d8c in start_thread (arg=0x7f5ab1a3f700) at pthread_create.c:304
#7  0x00007f5ac627704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5aa576e700 (LWP 9875)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f5aa577e48c in XpsFile::loadFontByName (this=<value optimized out>, fileName=...) at ../../../../okular/generators/xps/generator_xps.cpp:1503
#8  0x00007f5aa57829a0 in XpsFile::getFontByName (this=0x17fe880, fileName=..., size=15.9961004) at ../../../../okular/generators/xps/generator_xps.cpp:1471
#9  0x00007f5aa5785cc7 in XpsHandler::processGlyph (this=0x7f5aa576dc00, node=...) at ../../../../okular/generators/xps/generator_xps.cpp:805
#10 0x00007f5aa5789629 in XpsHandler::processEndElement (this=0x7f5aa576dc00, node=...) at ../../../../okular/generators/xps/generator_xps.cpp:1295
#11 0x00007f5aa578ad88 in XpsHandler::endElement (this=0x7f5aa576dc00, nameSpace=<value optimized out>, localName=..., qname=<value optimized out>) at ../../../../okular/generators/xps/generator_xps.cpp:778
#12 0x00007f5ac5a71243 in QXmlSimpleReaderPrivate::processElementEmptyTag (this=0x7f5ab8006670) at sax/qxml.cpp:4010
#13 0x00007f5ac5a71ce8 in QXmlSimpleReaderPrivate::parseElement (this=0x7f5ab8006670) at sax/qxml.cpp:3973
#14 0x00007f5ac5a724c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f5ab8006670) at sax/qxml.cpp:4426
#15 0x00007f5ac5a71c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f5ab8006670) at sax/qxml.cpp:3952
#16 0x00007f5ac5a724c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f5ab8006670) at sax/qxml.cpp:4426
#17 0x00007f5ac5a71c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f5ab8006670) at sax/qxml.cpp:3952
#18 0x00007f5ac5a72f70 in QXmlSimpleReaderPrivate::parseBeginOrContinue (this=0x7f5ab8006670, state=<value optimized out>, incremental=false) at sax/qxml.cpp:3497
#19 0x00007f5ac5a7325e in QXmlSimpleReader::parse (this=<value optimized out>, input=0x7f5aa576dcc0, incremental=false) at sax/qxml.cpp:3439
#20 0x00007f5aa577ef4a in XpsPage::renderToPainter (this=0x183a790, painter=0x7f5aa576dd30) at ../../../../okular/generators/xps/generator_xps.cpp:1453
#21 0x00007f5aa577f213 in XpsPage::renderToImage (this=0x183a790, p=0x7f5aa576ddf0) at ../../../../okular/generators/xps/generator_xps.cpp:1432
#22 0x00007f5aa577f31f in XpsGenerator::image (this=0x181d5d0, request=0x1706ea0) at ../../../../okular/generators/xps/generator_xps.cpp:2128
#23 0x00007f5aaa96e329 in Okular::PixmapGenerationThread::run (this=0x1829590) at ../../okular/core/generator_p.cpp:64
#24 0x00007f5ac6b16175 in QThreadPrivate::start (arg=0x1829590) at thread/qthread_unix.cpp:320
#25 0x00007f5ac3632d8c in start_thread (arg=0x7f5aa576e700) at pthread_create.c:304
#26 0x00007f5ac627704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5aa4f6d700 (LWP 9876)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5ac6b152b3 in QMutexPrivate::wait (this=0x1819a00, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f5ac6b11d05 in QMutex::lock (this=0x163beb0) at thread/qmutex.cpp:204
#3  0x00007f5aa57857c2 in QMutexLocker (this=0x181d5d0, page=0x1828cb0) at /usr/include/qt4/QtCore/qmutex.h:102
#4  XpsGenerator::textPage (this=0x181d5d0, page=0x1828cb0) at ../../../../okular/generators/xps/generator_xps.cpp:2134
#5  0x00007f5aaa96e162 in Okular::TextPageGenerationThread::run (this=0x181c2b0) at ../../okular/core/generator_p.cpp:103
#6  0x00007f5ac6b16175 in QThreadPrivate::start (arg=0x181c2b0) at thread/qthread_unix.cpp:320
#7  0x00007f5ac3632d8c in start_thread (arg=0x7f5aa4f6d700) at pthread_create.c:304
#8  0x00007f5ac627704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5ac8fdc780 (LWP 9839)):
#0  0x00007f5ac6269f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5ac0612512 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f5ac0613b3f in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f5ac4f418ad in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007f5ac4f3d103 in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f5ac762b21a in QETWidget::translateConfigEvent (this=0x15d26b0, event=<value optimized out>) at kernel/qapplication_x11.cpp:5590
#6  0x00007f5ac763c1fc in QApplication::x11ProcessEvent (this=0x7ffff8f2db50, event=0x7ffff8f2d7d0) at kernel/qapplication_x11.cpp:3583
#7  0x00007f5ac7664162 in x11EventSourceDispatch (s=0x1360780, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#8  0x00007f5ac3166bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f5ac31673a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f5ac3167639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f5ac6c283ef in QEventDispatcherGlib::processEvents (this=0x1312340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#12 0x00007f5ac7663dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#13 0x00007f5ac6bfc882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007f5ac6bfcabc in QEventLoop::exec (this=0x7ffff8f2dad0, flags=...) at kernel/qeventloop.cpp:201
#15 0x00007f5ac6c00ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#16 0x000000000040812e in main (argc=6, argv=<value optimized out>) at ../../../okular/shell/main.cpp:85

Possible duplicates by query: bug 274482.

Reported using DrKonqi
Comment 1 Pino Toscano 2011-06-16 09:29:05 UTC
Please provide a sample document showing the issue.
(This looks like one of the two cases in #274482.)
Comment 2 guile5575 2011-06-16 23:30:26 UTC
Created attachment 61060 [details]
Document that crashes the program when attempting to open

This is the .xps file that crashes Okular when attempting to open.
Comment 3 Pino Toscano 2011-06-16 23:49:31 UTC
Yes, same case as in bug #274482. Will be fixed in KDE 4.7.

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