Bug 289122 - downloaded pdf crashes okular
Summary: downloaded pdf crashes okular
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 16:01 UTC by Martin Tlustos
Modified: 2011-12-20 11:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
the pdf that crashed okular on printing (127.30 KB, application/pdf)
2011-12-17 08:04 UTC, Martin Tlustos
Details
Valgrind output (60.64 KB, text/plain)
2011-12-19 15:05 UTC, Martin Tlustos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tlustos 2011-12-16 16:01:19 UTC
Application: okular (0.13.3)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-15-generic i686
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
I booked a train ticket and downloaded it as pdf. When trying to print from okular, okular crashed. adobe reader couldn't print the pdf either, so it seems to be a problem within the pdf anyway.

The crash can be reproduced every time.

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

Thread 4 (Thread 0xb57aeb70 (LWP 3011)):
#0  0x00802416 in __kernel_vsyscall ()
#1  0x0293440e in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0x01c5f34b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x01c50896 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x01c50c2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x04ad8b37 in QEventDispatcherGlib::processEvents (this=0x9b38d98, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x04aa91dd in QEventLoop::processEvents (this=0xb57ae2b0, flags=...) at kernel/qeventloop.cpp:149
#7  0x04aa9421 in QEventLoop::exec (this=0xb57ae2b0, flags=...) at kernel/qeventloop.cpp:201
#8  0x049ac90b in QThread::exec (this=0x9be6898) at thread/qthread.cpp:498
#9  0x04a89e2d in QInotifyFileSystemWatcherEngine::run (this=0x9be6898) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x049af7b3 in QThreadPrivate::start (arg=0x9be6898) at thread/qthread_unix.cpp:331
#11 0x08457d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0x029430ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xb49ffb70 (LWP 5128)):
#0  0x00802416 in __kernel_vsyscall ()
#1  0x0845ba5c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x02950cfc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0x049afcc0 in wait (time=4294967295, this=0x9cb9fc8) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x9d1c6c0, mutex=0x9d1c6bc, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x014f3d7b in QFileInfoGatherer::run (this=0x9d1c6b4) at dialogs/qfileinfogatherer.cpp:214
#6  0x049af7b3 in QThreadPrivate::start (arg=0x9d1c6b4) at thread/qthread_unix.cpp:331
#7  0x08457d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0x029430ce in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xb2412b70 (LWP 5129)):
#0  0x00802416 in __kernel_vsyscall ()
#1  0x02951063 in ?? () from /lib/i386-linux-gnu/libc.so.6
#2  0x028e5135 in ?? () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0xb7777710 (LWP 3008)):
[KCrash Handler]
#7  0x00802416 in __kernel_vsyscall ()
#8  0x0289ec8f in raise () from /lib/i386-linux-gnu/libc.so.6
#9  0x028a22b5 in abort () from /lib/i386-linux-gnu/libc.so.6
#10 0x028d4dfc in ?? () from /lib/i386-linux-gnu/libc.so.6
#11 0x028dfbc2 in ?? () from /lib/i386-linux-gnu/libc.so.6
#12 0x028e155e in ?? () from /lib/i386-linux-gnu/libc.so.6
#13 0x028e3498 in malloc () from /lib/i386-linux-gnu/libc.so.6
#14 0x008b29d7 in operator new(unsigned int) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#15 0x02710efb in Gfx::Gfx (this=0x9e59818, xrefA=0x9b74fc0, outA=0x9ded220, resDict=0x9e58fe8, catalogA=0x9b74cf8, box=0xbf8588b0, cropBox=0x0, abortCheckCbkA=0, abortCheckCbkDataA=0x0) at Gfx.cc:606
#16 0x0274e3d1 in PreScanOutputDev::tilingPatternFill (this=0x9ded220, state=0x9e33f30, catalog=0x9b74cf8, str=0x9e58eac, pmat=0x9e58e7c, paintType=1, resDict=0x9e58fe8, mat=0xbf858ab0, bbox=0x9e58e40, x0=0, y0=0, x1=1, y1=1, xStep=4133, yStep=4133) at PreScanOutputDev.cc:90
#17 0x0270adc8 in Gfx::doTilingPatternFill (this=0x9df0498, tPat=0x9e58e30, stroke=false, eoFill=false) at Gfx.cc:2088
#18 0x0270b4f6 in doPatternFill (eoFill=false, this=0x9df0498) at Gfx.cc:1881
#19 Gfx::doPatternFill (this=0x9df0498, eoFill=false) at Gfx.cc:1866
#20 0x0270d828 in opFill (this=0x9df0498, args=<optimized out>, numArgs=<optimized out>) at Gfx.cc:1761
#21 Gfx::opFill (this=0x9df0498, args=0xbf858be4, numArgs=0) at Gfx.cc:1754
#22 0x0270188f in Gfx::execOp (this=0x9df0498, cmd=0xbf858d84, args=0xbf858be4, numArgs=0) at Gfx.cc:851
#23 0x0270882c in Gfx::go (this=0x9df0498, topLevel=true) at Gfx.cc:711
#24 0x02708d3c in Gfx::display (this=0x9df0498, obj=0xbf858e84, topLevel=true) at Gfx.cc:678
#25 0x02748c80 in Page::displaySlice (this=0x9b7c758, out=0x9ded220, hDPI=72, vDPI=72, rotate=0, useMediaBox=false, crop=true, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=true, catalog=0x9b74cf8, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:485
#26 0x02763153 in PSOutputDev::checkPageSlice (this=0x9a03bc0, page=0x9b7c758, rotateA=0, useMediaBox=false, crop=<optimized out>, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=true, catalog=0x9b74cf8, abortCheckCbk=0, abortCheckCbkData=0x0) at PSOutputDev.cc:3002
#27 0x02748b6e in Page::displaySlice (this=0x9b7c758, out=0x9a03bc0, hDPI=72, vDPI=72, rotate=0, useMediaBox=false, crop=true, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=true, catalog=0x9b74cf8, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:472
#28 0x02748e43 in Page::display (this=0x9b7c758, out=0x9a03bc0, hDPI=72, vDPI=72, rotate=0, useMediaBox=false, crop=true, printing=true, catalog=0x9b74cf8, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:414
#29 0x0274d5cf in PDFDoc::displayPage (this=0x9b74a08, out=0x9a03bc0, page=1, hDPI=72, vDPI=72, rotate=0, useMediaBox=false, crop=true, printing=true, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at PDFDoc.cc:436
#30 0x082a2959 in Poppler::PSConverter::convert (this=0x9d71a78) at poppler-ps-converter.cc:236
#31 0x04ea19c5 in PDFGenerator::print (this=0x9b5a9b8, printer=...) at ../../../generators/poppler/generator_pdf.cpp:1004
#32 0x08f3bb86 in Okular::Document::print (this=0x980ba48, printer=...) at ../core/document.cpp:3101
#33 0x01dc0602 in doPrint (printer=..., this=0x9771c38) at ../part.cpp:2124
#34 Okular::Part::doPrint (this=0x9771c38, printer=...) at ../part.cpp:2116
#35 0x01dce5cc in Okular::Part::slotPrint (this=0x9771c38) at ../part.cpp:2076
#36 0x01dceadd in Okular::Part::qt_metacall (this=0x9771c38, _c=QMetaObject::InvokeMetaMethod, _id=54, _a=0xbf859568) at ./part.moc:240
#37 0x04ab0b7d in metacall (argv=0xbf859568, idx=69, cl=QMetaObject::InvokeMetaMethod, object=0x9771c38) at kernel/qmetaobject.cpp:237
#38 QMetaObject::metacall (object=0x9771c38, cl=QMetaObject::InvokeMetaMethod, idx=69, argv=0xbf859568) at kernel/qmetaobject.cpp:232
#39 0x04abfa6a in QMetaObject::activate (sender=0x9ae60f0, m=0x18c6458, local_signal_index=1, argv=0xbf859568) at kernel/qobject.cpp:3278
#40 0x00f7683d in QAction::triggered (this=0x9ae60f0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#41 0x00f76adb in QAction::activate (this=0x9ae60f0, event=QAction::Trigger) at kernel/qaction.cpp:1257
#42 0x0146a170 in trigger (this=<optimized out>) at ../../include/QtGui/../../src/gui/kernel/qaction.h:218
#43 QToolButton::nextCheckState (this=0x9af3a08) at widgets/qtoolbutton.cpp:1147
#44 0x01392bb7 in QAbstractButtonPrivate::click (this=0x9af9ec8) at widgets/qabstractbutton.cpp:528
#45 0x01392eb6 in QAbstractButton::mouseReleaseEvent (this=0x9af3a08, e=0xbf859b4c) at widgets/qabstractbutton.cpp:1121
#46 0x0146a20d in QToolButton::mouseReleaseEvent (this=0x9af3a08, e=0xbf859b4c) at widgets/qtoolbutton.cpp:721
#47 0x00fd7f98 in QWidget::event (this=0x9af3a08, event=0xbf859b4c) at kernel/qwidget.cpp:8295
#48 0x01392159 in QAbstractButton::event (this=0x9af3a08, e=0xbf859b4c) at widgets/qabstractbutton.cpp:1080
#49 0x0146b94c in QToolButton::event (this=0x9af3a08, event=0xbf859b4c) at widgets/qtoolbutton.cpp:1163
#50 0x00f7dd54 in notify_helper (e=0xbf859b4c, receiver=0x9af3a08, this=0x9639058) at kernel/qapplication.cpp:4486
#51 QApplicationPrivate::notify_helper (this=0x9639058, receiver=0x9af3a08, e=0xbf859b4c) at kernel/qapplication.cpp:4458
#52 0x00f83dbb in QApplication::notify (this=0x9639058, receiver=0x9af3a08, e=0xbf859b4c) at kernel/qapplication.cpp:4047
#53 0x00bd4681 in KApplication::notify (this=0xbf85a360, receiver=0x9af3a08, event=0xbf859b4c) at ../../kdeui/kernel/kapplication.cpp:311
#54 0x04aaa19e in QCoreApplication::notifyInternal (this=0xbf85a360, receiver=0x9af3a08, event=0xbf859b4c) at kernel/qcoreapplication.cpp:787
#55 0x00f7ed15 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#56 QApplicationPrivate::sendMouseEvent (receiver=0x9af3a08, event=0xbf859b4c, alienWidget=0x9af3a08, nativeWidget=0x96995c8, buttonDown=0x18e8eb4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#57 0x0100b2c4 in QETWidget::translateMouseEvent (this=0x96995c8, event=0xbf859fcc) at kernel/qapplication_x11.cpp:4568
#58 0x01009e4d in QApplication::x11ProcessEvent (this=0xbf85a360, event=0xbf859fcc) at kernel/qapplication_x11.cpp:3690
#59 0x0103624c in x11EventSourceDispatch (s=0x9632fa8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#60 0x01c5025f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#61 0x01c50990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#62 0x01c50c2a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#63 0x04ad8ada in QEventDispatcherGlib::processEvents (this=0x96316a8, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#64 0x01035e3a in QGuiEventDispatcherGlib::processEvents (this=0x96316a8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#65 0x04aa91dd in QEventLoop::processEvents (this=0xbf85a2d4, flags=...) at kernel/qeventloop.cpp:149
#66 0x04aa9421 in QEventLoop::exec (this=0xbf85a2d4, flags=...) at kernel/qeventloop.cpp:201
#67 0x04aae19d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#68 0x00f7b8f4 in QApplication::exec () at kernel/qapplication.cpp:3760
#69 0x0804e010 in main (argc=) at ../../shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-12-16 19:33:43 UTC
We are going to need the pdf file, otherwise it's impossible to find out what's wrong
Comment 2 Martin Tlustos 2011-12-17 08:04:48 UTC
Created attachment 66826 [details]
the pdf that crashed okular on printing
Comment 3 Albert Astals Cid 2011-12-17 16:50:05 UTC
Some more questions:
 * Which poppler version are you using?
 * Does it also happen if you do Print Preview instead of print?
 * Can you install valgrind and run from a shell
    valgrind okular myfile.pdf
  and post what is written in the shell when you try to print?
Comment 4 Martin Tlustos 2011-12-19 15:04:21 UTC
everything is standard kubuntu, kde 4.7.3. I have two libpoppler, 0.16.7 and 0.17.1.
Print Preview crashes okular as well.
Funilly, when running from valgrind, okular prints and previews without crashing...
attached is the valgrind shell output of the whole okular session.
Comment 5 Martin Tlustos 2011-12-19 15:05:04 UTC
Created attachment 66902 [details]
Valgrind output
Comment 6 Albert Astals Cid 2011-12-19 18:24:06 UTC
"everything is standard kubuntu, kde 4.7.3. I have two libpoppler, 0.16.7 and
0.17.1."

That sentence contradicts itself, standard kubuntu does not ship two different popplers, even mode, poppler 0.17.1 is an unstable release, you should not be doing it unless you know what you are doing, please uninstall 0.17.1 and try again
Comment 7 Martin Tlustos 2011-12-20 11:05:08 UTC
Well, I found out that it's because I had the development version of scribus installed. With the 0.16.7 version everything works as expected, so the bug can be closed.