Bug 281777 - Okular crahes opening an XPS document
Summary: Okular crahes opening an XPS document
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.12.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 02:08 UTC by Prabhakaran
Modified: 2011-12-17 10:57 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 Prabhakaran 2011-09-11 02:08:13 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-11-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

I just clicked to open an XPS document, and it did not open. Okular just crahed with out any unexpected activity. I use recent version of Ubuntu.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7f938f6e4700 (LWP 6408)):
#0  0x00007f93981e9f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f93950e7104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f93950e79f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9390043c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f939510e3e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f93955b2d8c in start_thread (arg=0x7f938f6e4700) at pthread_create.c:304
#6  0x00007f93981f704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9378050700 (LWP 6410)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f93780609be in XpsPage::loadImageFromFile (this=<value optimized out>, fileName=...) at ../../../../okular/generators/xps/generator_xps.cpp:1573
#8  0x00007f9378061b51 in XpsHandler::processImageBrush (this=0x7f937804fc00, node=...) at ../../../../okular/generators/xps/generator_xps.cpp:965
#9  0x00007f937806c118 in XpsHandler::processEndElement (this=0x7f937804fc00, node=...) at ../../../../okular/generators/xps/generator_xps.cpp:1316
#10 0x00007f937806cd88 in XpsHandler::endElement (this=0x7f937804fc00, nameSpace=<value optimized out>, localName=..., qname=<value optimized out>) at ../../../../okular/generators/xps/generator_xps.cpp:778
#11 0x00007f93979f1243 in QXmlSimpleReaderPrivate::processElementEmptyTag (this=0x7f9380002f30) at sax/qxml.cpp:4010
#12 0x00007f93979f1ce8 in QXmlSimpleReaderPrivate::parseElement (this=0x7f9380002f30) at sax/qxml.cpp:3973
#13 0x00007f93979f24c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f9380002f30) at sax/qxml.cpp:4426
#14 0x00007f93979f1c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f9380002f30) at sax/qxml.cpp:3952
#15 0x00007f93979f24c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f9380002f30) at sax/qxml.cpp:4426
#16 0x00007f93979f1c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f9380002f30) at sax/qxml.cpp:3952
#17 0x00007f93979f24c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f9380002f30) at sax/qxml.cpp:4426
#18 0x00007f93979f1c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f9380002f30) at sax/qxml.cpp:3952
#19 0x00007f93979f24c8 in QXmlSimpleReaderPrivate::parseContent (this=0x7f9380002f30) at sax/qxml.cpp:4426
#20 0x00007f93979f1c68 in QXmlSimpleReaderPrivate::parseElement (this=0x7f9380002f30) at sax/qxml.cpp:3952
#21 0x00007f93979f2f70 in QXmlSimpleReaderPrivate::parseBeginOrContinue (this=0x7f9380002f30, state=<value optimized out>, incremental=false) at sax/qxml.cpp:3497
#22 0x00007f93979f325e in QXmlSimpleReader::parse (this=<value optimized out>, input=0x7f937804fcc0, incremental=false) at sax/qxml.cpp:3439
#23 0x00007f9378060f4a in XpsPage::renderToPainter (this=0x20a88c0, painter=0x7f937804fd30) at ../../../../okular/generators/xps/generator_xps.cpp:1453
#24 0x00007f9378061213 in XpsPage::renderToImage (this=0x20a88c0, p=0x7f937804fdf0) at ../../../../okular/generators/xps/generator_xps.cpp:1432
#25 0x00007f937806131f in XpsGenerator::image (this=0x20a28d0, request=0x1f52c40) at ../../../../okular/generators/xps/generator_xps.cpp:2128
#26 0x00007f937c83e329 in Okular::PixmapGenerationThread::run (this=0x20a9d70) at ../../okular/core/generator_p.cpp:64
#27 0x00007f9398a96175 in QThreadPrivate::start (arg=0x20a9d70) at thread/qthread_unix.cpp:320
#28 0x00007f93955b2d8c in start_thread (arg=0x7f9378050700) at pthread_create.c:304
#29 0x00007f93981f704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#30 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f937784f700 (LWP 6411)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9398a952b3 in QMutexPrivate::wait (this=0x20c7180, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f9398a91d05 in QMutex::lock (this=0x1efcb00) at thread/qmutex.cpp:204
#3  0x00007f93780677c2 in QMutexLocker (this=0x20a28d0, page=0x20a91f0) at /usr/include/qt4/QtCore/qmutex.h:102
#4  XpsGenerator::textPage (this=0x20a28d0, page=0x20a91f0) at ../../../../okular/generators/xps/generator_xps.cpp:2134
#5  0x00007f937c83e162 in Okular::TextPageGenerationThread::run (this=0x20a8230) at ../../okular/core/generator_p.cpp:103
#6  0x00007f9398a96175 in QThreadPrivate::start (arg=0x20a8230) at thread/qthread_unix.cpp:320
#7  0x00007f93955b2d8c in start_thread (arg=0x7f937784f700) at pthread_create.c:304
#8  0x00007f93981f704d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f939af61780 (LWP 6406)):
#0  0x00007f93981e9f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9392592512 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9392593b3f in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9396ec18ad in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007f9396eb6c30 in XQueryPointer () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f93995c718f in QCursor::pos () at kernel/qcursor_x11.cpp:159
#6  0x00007f937cb265e1 in PageView::notifyViewportChanged (this=0x1f40640, smoothMove=false) at ../../okular/ui/pageview.cpp:939
#7  0x00007f937c82806b in Okular::Document::setViewport (this=0x1e41bc0, viewport=..., excludeId=-1, smoothMove=false) at ../../okular/core/document.cpp:2478
#8  0x00007f937c835a9c in Okular::Document::openDocument (this=0x1e41bc0, docFile=<value optimized out>, url=<value optimized out>, _mime=<value optimized out>) at ../../okular/core/document.cpp:1679
#9  0x00007f937cad75e1 in Okular::Part::openFile (this=0x1e2da10) at ../../okular/part.cpp:955
#10 0x00007f939ab52ab0 in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x1e1a8a0) at ../../kparts/part.cpp:592
#11 0x00007f939ab530f4 in KParts::ReadOnlyPart::openUrl (this=0x1e2da10, url=...) at ../../kparts/part.cpp:556
#12 0x00007f937cad0285 in Okular::Part::openUrl (this=0x1e2da10, _url=<value optimized out>) at ../../okular/part.cpp:1076
#13 0x0000000000408cd4 in Shell::openUrl (this=0x1e0cf40, url=...) at ../../../okular/shell/shell.cpp:133
#14 0x000000000040a82c in Shell::qt_metacall (this=0x1e0cf40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x20251d0) at ./shell.moc:94
#15 0x00007f9398b9149a in QObject::event (this=0x1e0cf40, e=<value optimized out>) at kernel/qobject.cpp:1226
#16 0x00007f939958d67d in QWidget::event (this=0x1e0cf40, event=0x206b800) at kernel/qwidget.cpp:8718
#17 0x00007f9399959c0b in QMainWindow::event (this=0x1e0cf40, event=0x206b800) at widgets/qmainwindow.cpp:1480
#18 0x00007f939a35ad8e in KXmlGuiWindow::event (this=0x1e0cf40, ev=0x206b800) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#19 0x00007f939953c9f4 in QApplicationPrivate::notify_helper (this=0x1bf1c70, receiver=0x1e0cf40, e=0x206b800) at kernel/qapplication.cpp:4462
#20 0x00007f93995413ba in QApplication::notify (this=<value optimized out>, receiver=0x1e0cf40, e=0x206b800) at kernel/qapplication.cpp:4341
#21 0x00007f939a25f866 in KApplication::notify (this=0x7fff40c80aa0, receiver=0x1e0cf40, event=0x206b800) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007f9398b7d49c in QCoreApplication::notifyInternal (this=0x7fff40c80aa0, receiver=0x1e0cf40, event=0x206b800) at kernel/qcoreapplication.cpp:731
#23 0x00007f9398b80c25 in sendEvent (receiver=0x0, event_type=0, data=0x1ba7b60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1ba7b60) at kernel/qcoreapplication.cpp:1372
#25 0x00007f9398ba8253 in sendPostedEvents (s=0x1bf5160) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#26 postEventSourceDispatch (s=0x1bf5160) at kernel/qeventdispatcher_glib.cpp:277
#27 0x00007f93950e6bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f93950e73a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f93950e7639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f9398ba83ef in QEventDispatcherGlib::processEvents (this=0x1ba7340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#31 0x00007f93995e64de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007f9398b7c882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007f9398b7cabc in QEventLoop::exec (this=0x7fff40c80a20, flags=...) at kernel/qeventloop.cpp:201
#34 0x00007f9398b80ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#35 0x000000000040812e in main (argc=6, argv=<value optimized out>) at ../../../okular/shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-09-11 13:54:30 UTC
Any chance you can attach the document or provide a link?
Comment 2 Prabhakaran 2011-09-14 10:13:57 UTC
I'm not able to attach a test xps file, clicking "Add an attachement". Is there any other option?

(In reply to comment #1)
> Any chance you can attach the document or provide a link?
Comment 3 Albert Astals Cid 2011-09-14 10:24:44 UTC
Why not? Is it because it is too big? Maybe you can just sent it to me
Comment 4 Prabhakaran 2011-09-14 10:31:09 UTC
Hi 

Here you go


On Wed, 2011-09-14 at 10:24 +0000, Albert Astals Cid wrote:
> https://bugs.kde.org/show_bug.cgi?id=281777
> 
> 
> 
> 
> 
> --- Comment #3 from Albert Astals Cid <tsdgeos terra es>  2011-09-14 10:24:44 ---
> Why not? Is it because it is too big? Maybe you can just sent it to me
>
Comment 5 Albert Astals Cid 2011-09-14 12:49:10 UTC
You answered to the bugzilla mail that sends a mail to bugzilla and then drops the attachment. Please send the mail with the file either to tsdgeos@terra.es or to tsdgeos@yahoo.es
Comment 6 Prabhakaran 2011-09-16 11:53:44 UTC
Hi

Attached here.

On Wed, 2011-09-14 at 12:49 +0000, Albert Astals Cid wrote:
> https://bugs.kde.org/show_bug.cgi?id=281777
> 
> 
> 
> 
> 
> --- Comment #5 from Albert Astals Cid <tsdgeos terra es>  2011-09-14 12:49:10 ---
> You answered to the bugzilla mail that sends a mail to bugzilla and then drops
> the attachment. Please send the mail with the file either to tsdgeos@terra.es
> or to tsdgeos@yahoo.es
>
Comment 7 Albert Astals Cid 2011-09-16 13:01:04 UTC
Got it, it works here, since I am using 4.7.1 that is more recent that 4.6.2 (that is what you seem to be using) I suggest you to update and in case it still crashes reopen the bug.
Comment 8 Christophe Marin 2011-12-17 10:57:39 UTC
*** Bug 289164 has been marked as a duplicate of this bug. ***