Bug 217013 - okular crashes when print/print preview for one document
Summary: okular crashes when print/print preview for one document
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:
Depends on:
Blocks:
 
Reported: 2009-12-02 03:11 UTC by Michael Pope
Modified: 2009-12-02 10:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Valgrind output when crashing. (7.80 KB, text/plain)
2009-12-02 03:37 UTC, Michael Pope
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Pope 2009-12-02 03:11:52 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-14-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
I've looked at other bug reports which are close to this error and tested their pdfs and they work fine in my Okular version so I thought that this would be a new bug as it seems to be the format of this pdf causing the error.  I installed the poppler-dbg to get more information about the error.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#5  GooString::sanitizedName (this=0x0, psmode=1) at GooString.cc:785
#6  0x00007fa121645dd1 in PSOutputDev::setupFont (this=0xc1e6d0, font=0xd7f5c0, parentResDict=0xc839e0) at PSOutputDev.cc:1699
#7  0x00007fa121646407 in PSOutputDev::setupFonts (this=0xc1e6d0, resDict=0xc839e0) at PSOutputDev.cc:1614
#8  0x00007fa121644e08 in PSOutputDev::setupResources (this=0xd70be0, resDict=0x0) at PSOutputDev.cc:1499
#9  0x00007fa121646700 in PSOutputDev::writeDocSetup (this=0xc1e6d0, catalog=0xc845d0, firstPage=<value optimized out>, lastPage=<value optimized out>, duplexA=<value optimized out>)
    at PSOutputDev.cc:1419
#10 0x00007fa121646b36 in PSOutputDev::init (this=0xc1e6d0, outputFuncA=<value optimized out>, outputStreamA=<value optimized out>, fileTypeA=<value optimized out>, 
    pstitle=0xd71ab8 "Print data-1.PDF", xrefA=<value optimized out>, catalog=0xc845d0, firstPage=1, lastPage=1, modeA=psModePS, imgLLXA=0, imgLLYA=0, imgURXA=595, imgURYA=842, manualCtrlA=0, 
    paperWidthA=595, paperHeightA=842, duplexA=0) at PSOutputDev.cc:1191
#11 0x00007fa121646e4b in PSOutputDev (this=0xd70be0, outputFuncA=0, outputStreamA=0x0, psTitle=<value optimized out>, xrefA=<value optimized out>, catalog=<value optimized out>, firstPage=1, 
    lastPage=1, modeA=psModePS, paperWidthA=595, paperHeightA=842, duplexA=0, imgLLXA=0, imgLLYA=0, imgURXA=595, imgURYA=842, forceRasterizeA=0, manualCtrlA=0) at PSOutputDev.cc:1071
#12 0x00007fa121972347 in Poppler::PSConverter::convert (this=<value optimized out>) at poppler-ps-converter.cc:200
#13 0x00007fa121b9f575 in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#14 0x00007fa12446bc4e in ?? () from /usr/lib/kde4/okularpart.so
#15 0x00007fa12446c1a6 in ?? () from /usr/lib/kde4/okularpart.so
#16 0x00007fa12447614d in ?? () from /usr/lib/kde4/okularpart.so
#17 0x00007fa133509ddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#18 0x00007fa1329970a7 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#19 0x00007fa1329984ef in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#20 0x00007fa132d84ecd in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fa132d8adea in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007fa1341db2be in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#23 0x00007fa1329eb9c0 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00007fa132d8d5ab in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007fa13299cefc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007fa1329a4011 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007fa134108ab6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007fa1334f4c2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0x00007fa1329a38e0 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib/libQtGui.so.4
#30 0x00007fa132a09e2e in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007fa132a08aa9 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#32 0x00007fa132a31d0c in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007fa12edb9bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#34 0x00007fa12edbd588 in ?? () from /lib/libglib-2.0.so.0
#35 0x00007fa12edbd6b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#36 0x00007fa13351d1a6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00007fa132a314be in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007fa1334f3532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0x00007fa1334f3904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0x00007fa1334f5ab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#41 0x000000000040881c in _start ()

Reported using DrKonqi
Comment 1 Michael Pope 2009-12-02 03:23:41 UTC
Here is the file we are having problems with printing/print previewing: http://www.tramontana.com.au/bug_files/okular.PDF
Comment 2 Michael Pope 2009-12-02 03:27:53 UTC
(In reply to comment #1)
> Here is the file we are having problems with printing/print previewing:
> http://www.tramontana.com.au/bug_files/okular.PDF

I did change the name of the file from Print Data.pdf to okular.PDF and proved it still crashed before uploading it.
Comment 3 Michael Pope 2009-12-02 03:37:44 UTC
Created attachment 38757 [details]
Valgrind output when crashing.
Comment 4 Michael Pope 2009-12-02 03:39:56 UTC
Ran through gdb and got this when hitting the error

Program received signal SIGSEGV, Segmentation fault.
GooString::sanitizedName (this=0x0, psmode=1) at GooString.cc:785
785	GooString.cc: No such file or directory.
	in GooString.cc
Current language:  auto
The current source language is "auto; currently c++".
(gdb)
Comment 5 Pino Toscano 2009-12-02 10:19:17 UTC
Hi,

Okular uses the Poppler library to handle PDF documents, and the crash clearly happens in such library.
Please check to have the latest version of it (at least 0.12.x), and if so report the bug to the Poppler's bug tracking system, at https://bugs.freedesktop.org, "poppler" product.

Thanks.