Bug 244285 - Okular pdf problem
Summary: Okular pdf problem
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 249012 251868 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-12 11:18 UTC by alessandro
Modified: 2010-10-20 02:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.75 KB, text/plain)
2010-09-02 05:11 UTC, Hugh Urwin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alessandro 2010-07-12 11:18:15 UTC
Application: okular (0.10.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.34-sabayon i686
Distribution: "Sabayon Linux x86 5"

-- Information about the crash:
When i try to open some pdf document the program crash and colese without any error code, it happen with some "random" pdf document that i download from the university site, i think that these pdf are created form a power point 2007 presentation, for example this: http://www.bo.infn.it/herab/people/piccinini/Archivio/AA_09-10/L-A/Lezioni_L-A/15_Lavoro_Energia_Uno_09-10.pdf

The crash can be reproduced every time.

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[Current thread is 1 (Thread 0xb579e9b0 (LWP 14364))]

Thread 2 (Thread 0xb20b3b70 (LWP 14370)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb60866a1 in raise () from /lib/libc.so.6
#8  0xb6087e0c in abort () from /lib/libc.so.6
#9  0xb625e6af in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libstdc++.so.6
#10 0xb625c5d5 in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libstdc++.so.6
#11 0xb625c612 in std::terminate() () from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libstdc++.so.6
#12 0xb625c751 in __cxa_throw () from /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/libstdc++.so.6
#13 0xb224222c in gmallocn_checkoverflow () from /usr/lib/libpoppler.so.5
#14 0xb2264db7 in SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) () from /usr/lib/libpoppler.so.5
#15 0xb2266516 in SplashFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) () from /usr/lib/libpoppler.so.5
#16 0xb2264ed6 in SplashFTFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) () from /usr/lib/libpoppler.so.5
#17 0xb22584d4 in Splash::fillChar(double, double, int, SplashFont*) () from /usr/lib/libpoppler.so.5
#18 0xb217827e in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib/libpoppler.so.5
#19 0xb21c2017 in Gfx::doShowText(GooString*) () from /usr/lib/libpoppler.so.5
#20 0xb21c5a42 in Gfx::opShowSpaceText(Object*, int) () from /usr/lib/libpoppler.so.5
#21 0xb21b8ec6 in Gfx::execOp(Object*, Object*, int) () from /usr/lib/libpoppler.so.5
#22 0xb21b9529 in Gfx::go(int) () from /usr/lib/libpoppler.so.5
#23 0xb21bc549 in Gfx::display(Object*, int) () from /usr/lib/libpoppler.so.5
#24 0xb2206a80 in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.5
#25 0xb220a767 in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, int, int, int, int, int, int, int, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.5
#26 0xb233ccc4 in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const () from /usr/lib/libpoppler-qt4.so.3
#27 0xb23a0957 in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#28 0xb6d7face in ?? () from /usr/lib/qt4/libQtCore.so.4
#29 0xb5c9770f in start_thread () from /lib/libpthread.so.0
#30 0xb612a49e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb579e9b0 (LWP 14364)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb6120406 in poll () from /lib/libc.so.6
#2  0xb57f0340 in ?? () from /usr/lib/libxcb.so.1
#3  0xb57f08ab in ?? () from /usr/lib/libxcb.so.1
#4  0xb57f0c47 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0xb5d104a9 in _XSend () from /usr/lib/libX11.so.6
#6  0xb5cb09a6 in XRenderCompositeTrapezoids () from /usr/lib/libXrender.so.1
#7  0xb6620f78 in ?? () from /usr/lib/qt4/libQtGui.so.4
#8  0xb6621920 in ?? () from /usr/lib/qt4/libQtGui.so.4
#9  0xb66224f3 in ?? () from /usr/lib/qt4/libQtGui.so.4
#10 0xb6622020 in ?? () from /usr/lib/qt4/libQtGui.so.4
#11 0xb656dd7d in QPainter::drawPolyline(QPointF const*, int) () from /usr/lib/qt4/libQtGui.so.4
#12 0xb40de48e in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#13 0xb40d03b7 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#14 0xb745275d in KStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const () from /usr/lib/libkdeui.so.5
#15 0xb40d5585 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#16 0xb674bd02 in QCommonStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/qt4/libQtGui.so.4
#17 0xb744b95c in KStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () from /usr/lib/libkdeui.so.5
#18 0xb40d0d78 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#19 0xb6889e88 in QScrollBar::paintEvent(QPaintEvent*) () from /usr/lib/qt4/libQtGui.so.4
#20 0xb6459a86 in QWidget::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#21 0xb67e00e4 in QAbstractSlider::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#22 0xb688a8b7 in QScrollBar::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#23 0xb63fbfbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#24 0xb6402c79 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#25 0xb743c20a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#26 0xb6e7becb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#27 0xb6462d16 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#28 0xb6463b0f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/qt4/libQtGui.so.4
#29 0xb6462a65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#30 0xb6463b0f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/qt4/libQtGui.so.4
#31 0xb6462a65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#32 0xb6463b0f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/qt4/libQtGui.so.4
#33 0xb6462a65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#34 0xb6463b0f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/qt4/libQtGui.so.4
#35 0xb6462a65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#36 0xb6463b0f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/qt4/libQtGui.so.4
#37 0xb6462a65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#38 0xb6463b0f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/qt4/libQtGui.so.4
#39 0xb6462a65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/qt4/libQtGui.so.4
#40 0xb6633b88 in ?? () from /usr/lib/qt4/libQtGui.so.4
#41 0xb64535e3 in QWidgetPrivate::syncBackingStore() () from /usr/lib/qt4/libQtGui.so.4
#42 0xb645a246 in QWidget::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#43 0xb684bb67 in QMainWindow::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#44 0xb752e174 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#45 0xb757626f in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#46 0xb63fbfbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#47 0xb6402c79 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#48 0xb743c20a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#49 0xb6e7becb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#50 0xb6630c47 in ?? () from /usr/lib/qt4/libQtGui.so.4
#51 0xb66344d4 in ?? () from /usr/lib/qt4/libQtGui.so.4
#52 0xb6455ae9 in QWidget::repaint(QRect const&) () from /usr/lib/qt4/libQtGui.so.4
#53 0xb403176c in ?? () from /usr/lib/kde4/okularpart.so
#54 0xb68c6815 in ?? () from /usr/lib/qt4/libQtGui.so.4
#55 0xb68c7eaa in QAbstractScrollArea::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/qt4/libQtGui.so.4
#56 0xb403d7ea in ?? () from /usr/lib/kde4/okularpart.so
#57 0xb6e811aa in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/qt4/libQtCore.so.4
#58 0xb6e8fb95 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/qt4/libQtCore.so.4
#59 0xb6b02b93 in QAbstractSlider::valueChanged(int) () from /usr/lib/qt4/libQtGui.so.4
#60 0xb67e0275 in QAbstractSlider::setValue(int) () from /usr/lib/qt4/libQtGui.so.4
#61 0xb403cc4a in ?? () from /usr/lib/kde4/okularpart.so
#62 0xb6459a6a in QWidget::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#63 0xb682cec3 in QFrame::event(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#64 0xb68c6e52 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#65 0xb4034040 in ?? () from /usr/lib/kde4/okularpart.so
#66 0xb68c9735 in ?? () from /usr/lib/qt4/libQtGui.so.4
#67 0xb6e7b16a in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#68 0xb63fbf99 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#69 0xb64037bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#70 0xb743c20a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#71 0xb6e7becb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/qt4/libQtCore.so.4
#72 0xb64024e4 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/qt4/libQtGui.so.4
#73 0xb648ceac in ?? () from /usr/lib/qt4/libQtGui.so.4
#74 0xb648c3d3 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/qt4/libQtGui.so.4
#75 0xb64b8bd2 in ?? () from /usr/lib/qt4/libQtGui.so.4
#76 0xb5ab0ae5 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#77 0xb5ab47f0 in ?? () from /usr/lib/libglib-2.0.so.0
#78 0xb5ab4988 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#79 0xb6ea7975 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#80 0xb64b8735 in ?? () from /usr/lib/qt4/libQtGui.so.4
#81 0xb6e7a509 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#82 0xb6e7a95a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#83 0xb6e7fb6f in QCoreApplication::exec() () from /usr/lib/qt4/libQtCore.so.4
#84 0xb63fc057 in QApplication::exec() () from /usr/lib/qt4/libQtGui.so.4
#85 0x0804f589 in _start ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2010-07-12 21:08:19 UTC
Your poppler package is build with exceptions, we do not support that. Talk to your packager so that he does not build poppler with exceptions enabled.
Comment 2 Pino Toscano 2010-08-25 17:26:10 UTC
*** Bug 249012 has been marked as a duplicate of this bug. ***
Comment 3 Hugh Urwin 2010-09-02 05:11:43 UTC
Created attachment 51204 [details]
New crash information added by DrKonqi

okular crashes (quits with signal 6)  when opening some pdf files. it can be reproduced anytime.
Comment 4 Albert Astals Cid 2010-09-02 09:44:39 UTC
Please stop adding new information to this bug, i told you were the problem lies and the problem is your distribution compiling poppler with the unsupported exceptions feature enabled, go to your distribution and complain to them for doing that.
Comment 5 Pino Toscano 2010-09-21 00:28:25 UTC
*** Bug 251868 has been marked as a duplicate of this bug. ***
Comment 6 Moshbear 2010-09-21 00:54:55 UTC
Without exceptions, I get like 20+ lines of "Bogus memory allocation size" in the console output.
But at least it stops crashing.
Comment 7 Maciej Mrozowski 2010-10-06 23:14:33 UTC
Just for the record, while I agree with Albert here (in Gentoo exceptions in poppler are disabled by default btw), on the other hand disabling them only to pretend those issues signalled by those exceptions never happened is bad idea. That being said it's hard to agree with bug resolution - bug is valid, you just probably don't want it to be handled by bugzilla of okular - I would prefer RESOLVED/UPSTREAM in such case.
Comment 8 Albert Astals Cid 2010-10-06 23:33:26 UTC
"
on the other hand disabling them only to pretend those issues signalled by those exceptions never happened is bad idea.
"

You are wrong. Read poppler code.
Comment 9 Hugh Urwin 2010-10-20 02:12:16 UTC
Just for the records here is a a post i made on sabayon forums after getting feed up of not being able to read my documents on Sabayon


Re: PDF Files won't open [Solved]

by heu ยป Sun Oct 17, 2010 18:59 
is it really [solved] ?? I am on 5 oh, which went through all upgrades to the date and I am having the very same problem. It started failing to open some of my pdfs and now (started a couple of weeks ago) I cannot open any pdf, which is a serious problem when you need them just like you need water. When I first encountered the problem I reported (which never happened on opensuse (my main distro nowadays even when I am considering using Sabayon as the main one on my new laptop), nor on kubuntu or pcbsd) the bug on kde.org. The okular (the bug had been already reported by some gentoo user) developer harshly replied (as if he had the right to...after all okular is one of the weakest items in kde) that I should tell my distro packager (which was shown as gentoo by the bug info collector) to compile poppler with exceptions disabled. Ok I'll admit that I was wicked and reported it regardless of his previous reply to another gentoo user (he seems to have issues with gentoo users or packagers) just to see if he'd take a hint and realize that if you develop a package which depends on how another package you don't have control over how it is COMPILED (not talking about a command line switch or a parameter in some configuration file but how another program is COMPILED!!!) instead of working around it in your own package ranges from bad to horrible software engineering, but from his reply I can tell that he failed miserably to realize this... My questions now.. 

Were Sabayon packagers informed of this requirement by either okular or kde developers?

Has it been mentioned anywhere in the documents or release notes and was just shrugged off by Sabayon packagers or is this a case of poor documentation from okular developers??

Am I the only Sabayon user that works with pdf documents and that is why nobody else complained about it?

Why such a serious problem hasn't been addressed through the last 2 weeks if the solution to it is as simple as compiling poppler with exceptions disabled?


Anyways the problem wasnt on how poppler was compiled but that the package  app-text/poppler-qt4 wasn't (for some reason uknown to me...maybe it hasn't been specified as REQUIRED by okular developers...idk) installed or was gone as a side product of some update.
Comment 10 Albert Astals Cid 2010-10-20 02:39:25 UTC
Hugh, you are complaing in the wrong place.

A) This bug is about Okular crashing inside poppler code, so if you did not have poppler-qt4 installed obviously this is not the bug you were hitting
B) If Sabayon doesn't install poppler-qt4 when installing Okular, again that is the distribution fault, complain to them, not to us
C) Obviously we did not inform Sabayon of anything, this is not how things work, it's packagers that need to ask us if in doubt, not us that will be chasing uninformed packagers because to tell the truth, i care the less about Sabayon, i didn't even know it existed until you came here doing lots of noise
D) Poppler is broken with exception support enabled. It's not a KDE or Okular requirement, Poppler just doesn't work if you enable exceptions, that is why exceptions are disabled by default in poppler build system, but then again *smart* packagers like to enable things without asking if it is a good idea or doing any test, complain to them.

And remember that coming to my bugzilla and saying things like "after all okular is one of the weakest items in kde" will not make me more prone to answer you in the future, at the contrary i am just ignoring you in the future.

Now calm down and enjoy life.