[Okular-devel] [okular] [Bug 351660] New: print preview followed by print crashes okular

Paul def_mornahan at hotmail.com
Sun Aug 23 17:35:05 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=351660

            Bug ID: 351660
           Summary: print preview followed by print crashes okular
           Product: okular
           Version: 0.19.3
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: printing
          Assignee: okular-devel at kde.org
          Reporter: def_mornahan at hotmail.com

I opened a graphics-heavy pdf, checked the print preview because I thought it
had a higher aspect ratio than letter paper.  I saw a normal looking preview,
then selected print (to a printer).  Okular crashed.

I restarted Okular and printed the document twice (to a physical printer), no
crash.  Puzzled, I continued the bug report process.

I looked at the related bug reports, realized Print Preview was mentioned, then
tried looking at a print preview again and then tried printing to pdf.  Okular
crashed.  I went back and changed "Never" to "Every time" under
repeatability...

Reproducible: Always

Steps to Reproduce:
1. Open document
2. Select print preview
3. Select print

Actual Results:  
Okular crashes and the bug reporter fires up.

Expected Results:  
Printed document to printer or pdf, which is what happens if print preview is
not selected beforehand.

Generated by bug tracker:

Application: okular (0.19.3)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-62-generic x86_64
Distribution: Ubuntu 14.04.3 LTS

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

I opened a graphics-heavy pdf, checked the print preview because I thought it
had a higher aspect ratio than letter paper.  I saw a normal looking preview,
then selected print (to a printer).  Okular crashed.

I restarted Okular and printed the document twice (to a physical printer), no
crash.  Puzzled, I continued the bug report process.

I looked at the related bug reports, realized Print Preview was mentioned, then
tried looking at a print preview again and then tried printing to pdf.  Okular
crashed.  I went back and changed "Never" to "Every time" under
repeatability...

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3dc89407c0 (LWP 11757))]

Thread 5 (Thread 0x7f3daac07700 (LWP 11760)):
#0  0x00007ffe72200c17 in ?? ()
#1  0x0000000000000001 in ?? ()
#2  0x00007f3d9c002d30 in ?? ()
#3  0x00007f3daac06c28 in ?? ()
#4  0x00007f3daac06bc0 in ?? ()
#5  0x000000007fffffff in ?? ()
#6  0x00007f3dc632a6f0 in ?? () at kernel/qeventdispatcher_glib.cpp:223 from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f3daac06c30 in ?? ()
#8  0x00007f3dc593892d in __GI___clock_gettime (clock_id=<optimized out>,
tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#9  0x00007f3dc624fad7 in do_gettime (frac=0x7f3daac06b70, sec=0x7f3daac06b68)
at tools/qelapsedtimer_unix.cpp:127
#10 qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#11 0x00007f3dc632bf05 in updateCurrentTime (this=0x7b) at
kernel/qeventdispatcher_unix.cpp:354
#12 QTimerInfoList::timerWait (this=0x7b, tm=...) at
kernel/qeventdispatcher_unix.cpp:460
#13 0x00007f3dc632a67c in timerSourcePrepareHelper (src=<optimized out>,
timeout=0x7f3daac06c24) at kernel/qeventdispatcher_glib.cpp:143
#14 0x00007f3dc632a725 in timerSourcePrepare (source=<optimized out>,
timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:176
#15 0x00007f3dc24d068d in g_main_context_prepare () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f3dc24d0f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f3dc24d10ec in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f3dc632a7be in QEventDispatcherGlib::processEvents
(this=0x7f3d9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#19 0x00007f3dc62fc0af in QEventLoop::processEvents
(this=this at entry=0x7f3daac06de0, flags=...) at kernel/qeventloop.cpp:149
#20 0x00007f3dc62fc3a5 in QEventLoop::exec (this=this at entry=0x7f3daac06de0,
flags=...) at kernel/qeventloop.cpp:204
#21 0x00007f3dc61f8c5f in QThread::exec (this=this at entry=0x1bb9e70) at
thread/qthread.cpp:537
#22 0x00007f3dc62dd823 in QInotifyFileSystemWatcherEngine::run (this=0x1bb9e70)
at io/qfilesystemwatcher_inotify.cpp:265
#23 0x00007f3dc61fb32f in QThreadPrivate::start (arg=0x1bb9e70) at
thread/qthread_unix.cpp:349
#24 0x00007f3dc29b0182 in start_thread (arg=0x7f3daac07700) at
pthread_create.c:312
#25 0x00007f3dc592a47d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f3db10e7700 (LWP 12110)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f3dc61fb816 in wait (time=18446744073709551615, this=0x219f520) at
thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex at entry=0x20e4c60,
time=time at entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3dc61f795b in QSemaphore::acquire (this=this at entry=0x2199f60,
n=n at entry=1) at thread/qsemaphore.cpp:144
#4  0x00007f3da858156f in GSRendererThread::run (this=0x2199f50) at
../../../generators/spectre/rendererthread.cpp:50
#5  0x00007f3dc61fb32f in QThreadPrivate::start (arg=0x2199f50) at
thread/qthread_unix.cpp:349
#6  0x00007f3dc29b0182 in start_thread (arg=0x7f3db10e7700) at
pthread_create.c:312
#7  0x00007f3dc592a47d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f3db08e6700 (LWP 12160)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f3dc61fb816 in wait (time=18446744073709551615, this=0x1579d90) at
thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this at entry=0x15a40c8,
mutex=mutex at entry=0x15a40c0, time=time at entry=18446744073709551615) at
thread/qwaitcondition_unix.cpp:158
#3  0x00007f3dc71d6e16 in QFileInfoGatherer::run (this=0x15a40b0) at
dialogs/qfileinfogatherer.cpp:214
#4  0x00007f3dc61fb32f in QThreadPrivate::start (arg=0x15a40b0) at
thread/qthread_unix.cpp:349
#5  0x00007f3dc29b0182 in start_thread (arg=0x7f3db08e6700) at
pthread_create.c:312
#6  0x00007f3dc592a47d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f3da3fff700 (LWP 12161)):
#0  0x00007f3dc591d12d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3dc24d0fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3dc24d10ec in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3dc632a7be in QEventDispatcherGlib::processEvents
(this=0x7f3d980008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f3dc62fc0af in QEventLoop::processEvents
(this=this at entry=0x7f3da3ffede0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3dc62fc3a5 in QEventLoop::exec (this=this at entry=0x7f3da3ffede0,
flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3dc61f8c5f in QThread::exec (this=this at entry=0x153f060) at
thread/qthread.cpp:537
#7  0x00007f3dc62dd823 in QInotifyFileSystemWatcherEngine::run (this=0x153f060)
at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f3dc61fb32f in QThreadPrivate::start (arg=0x153f060) at
thread/qthread_unix.cpp:349
#9  0x00007f3dc29b0182 in start_thread (arg=0x7f3da3fff700) at
pthread_create.c:312
#10 0x00007f3dc592a47d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f3dc89407c0 (LWP 11757)):
[KCrash Handler]
#6  gs_lcms2_malloc (id=0x0, size=3744) at ./base/gsicc_lcms2.c:49
#7  0x00007f3db152673d in ?? () from /usr/lib/x86_64-linux-gnu/liblcms2.so.2
#8  0x00007f3db152cc62 in cmsCreateProfilePlaceholder () from
/usr/lib/x86_64-linux-gnu/liblcms2.so.2
#9  0x00007f3db152e088 in cmsOpenProfileFromMemTHR () from
/usr/lib/x86_64-linux-gnu/liblcms2.so.2
#10 0x00007f3db187ed3b in GfxICCBasedColorSpace::parse (arr=<optimized out>,
out=out at entry=0x230a190, recursion=recursion at entry=0) at GfxState.cc:1730
#11 0x00007f3db187e80e in GfxColorSpace::parse
(csObj=csObj at entry=0x7ffe721e88b0, out=0x230a190, recursion=recursion at entry=0)
at GfxState.cc:297
#12 0x00007f3db186a45c in Gfx::doImage (this=this at entry=0x2331b90,
ref=ref at entry=0x7ffe721e8a60, str=0x233b620, inlineImg=inlineImg at entry=false)
at Gfx.cc:4342
#13 0x00007f3db186bc69 in Gfx::opXObject (this=0x2331b90, args=<optimized out>,
numArgs=<optimized out>) at Gfx.cc:4128
#14 0x00007f3db18660a9 in Gfx::go (this=this at entry=0x2331b90,
topLevel=topLevel at entry=true) at Gfx.cc:712
#15 0x00007f3db18664ed in Gfx::display (this=this at entry=0x2331b90,
obj=obj at entry=0x7ffe721e8e40, topLevel=topLevel at entry=true) at Gfx.cc:678
#16 0x00007f3db18a85a8 in Page::displaySlice (this=this at entry=0x1ad7dc0,
out=out at entry=0x230a190, hDPI=hDPI at entry=72, vDPI=vDPI at entry=72,
rotate=rotate at entry=0, useMediaBox=useMediaBox at entry=false, crop=<optimized
out>, sliceX=sliceX at entry=-1, sliceY=sliceY at entry=-1, sliceW=sliceW at entry=-1,
sliceH=sliceH at entry=-1, printing=printing at entry=true,
abortCheckCbk=abortCheckCbk at entry=0x0,
abortCheckCbkData=abortCheckCbkData at entry=0x0,
annotDisplayDecideCbk=annotDisplayDecideCbk at entry=0x7f3db1c12910
<Poppler::annotDisplayDecideCbk(Annot*, void*)>,
annotDisplayDecideCbkData=annotDisplayDecideCbkData at entry=0x7ffe721e922f,
copyXRef=copyXRef at entry=false) at Page.cc:584
#17 0x00007f3db18c3dc2 in PSOutputDev::checkPageSlice (this=0x2309ec0,
page=0x1ad7dc0, rotateA=0, useMediaBox=<optimized out>, crop=true, sliceX=-1,
sliceY=-1, sliceW=-1, sliceH=-1, printing=true, abortCheckCbk=0x0,
abortCheckCbkData=0x0, annotDisplayDecideCbk=0x7f3db1c12910
<Poppler::annotDisplayDecideCbk(Annot*, void*)>,
annotDisplayDecideCbkData=0x7ffe721e922f) at PSOutputDev.cc:3097
#18 0x00007f3db18a84b6 in Page::displaySlice (this=0x1ad7dc0, out=0x2309ec0,
out at entry=0x1, hDPI=72, hDPI at entry=6.9121240545721143e-310, vDPI=72,
vDPI at entry=72.000061035156236, rotate=rotate at entry=0, useMediaBox=false,
useMediaBox at entry=255, crop=crop at entry=true, sliceX=sliceX at entry=-1,
sliceY=sliceY at entry=-1, sliceW=sliceW at entry=-1, sliceH=sliceH at entry=-1,
printing=printing at entry=true, abortCheckCbk=abortCheckCbk at entry=0x0,
abortCheckCbkData=abortCheckCbkData at entry=0x0,
annotDisplayDecideCbk=annotDisplayDecideCbk at entry=0x7f3db1c12910
<Poppler::annotDisplayDecideCbk(Annot*, void*)>,
annotDisplayDecideCbkData=annotDisplayDecideCbkData at entry=0x7ffe721e922f,
copyXRef=copyXRef at entry=true) at Page.cc:567
#19 0x00007f3db18a878a in Page::display (this=<optimized out>,
out=out at entry=0x1, hDPI=hDPI at entry=6.9121240545721143e-310,
vDPI=vDPI at entry=72.000061035156236, rotate=rotate at entry=0,
useMediaBox=useMediaBox at entry=255, crop=crop at entry=true,
printing=printing at entry=true, abortCheckCbk=0x0, abortCheckCbkData=0x0,
annotDisplayDecideCbk=0x7f3db1c12910 <Poppler::annotDisplayDecideCbk(Annot*,
void*)>, annotDisplayDecideCbkData=0x7ffe721e922f, copyXRef=true) at
Page.cc:506
#20 0x00007f3db18ae846 in PDFDoc::displayPage (this=<optimized out>, out=0x1,
out at entry=0x2309ec0, page=page at entry=1, hDPI=6.9121240545721143e-310,
vDPI=72.000061035156236, rotate=0, useMediaBox=useMediaBox at entry=false,
crop=crop at entry=true, printing=false, printing at entry=true,
abortCheckCbk=abortCheckCbk at entry=0x0, abortCheckCbkData=0x7f3db1c12910
<Poppler::annotDisplayDecideCbk(Annot*, void*)>, abortCheckCbkData at entry=0x0,
annotDisplayDecideCbk=0x7ffe721e922f,
annotDisplayDecideCbk at entry=0x7f3db1c12910
<Poppler::annotDisplayDecideCbk(Annot*, void*)>,
annotDisplayDecideCbkData=0x7ffe00000001,
annotDisplayDecideCbkData at entry=0x7ffe721e922f, copyXRef=copyXRef at entry=true)
at PDFDoc.cc:464
#21 0x00007f3db1c12f68 in Poppler::PSConverter::convert (this=<optimized out>)
at poppler-ps-converter.cc:257
#22 0x00007f3db1e6e7c7 in PDFGenerator::print (this=0x1a7b440, printer=...) at
../../../generators/poppler/generator_pdf.cpp:1179
#23 0x00007f3db678a5d2 in Okular::Part::doPrint (this=0x15b5af0, printer=...)
at ../part.cpp:2607
#24 0x00007f3db6794d73 in Okular::Part::slotPrint (this=0x15b5af0) at
../part.cpp:2576
#25 0x00007f3db67965e5 in Okular::Part::qt_static_metacall (_o=0x0, _id=3744,
_a=0x7ffe721e9630, _c=<optimized out>) at ./part.moc:243
#26 0x00007f3dc6305908 in QMetaMethod::invoke (this=this at entry=0x7ffe721e9820,
object=object at entry=0x15b5af0, connectionType=Qt::DirectConnection,
connectionType at entry=Qt::AutoConnection, returnValue=..., val0=..., val1=...,
val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...)
at kernel/qmetaobject.cpp:1664
#27 0x00007f3dc6307dc2 in QMetaObject::invokeMethod (obj=0x15b5af0,
member=member at entry=0x4115c0 "slotPrint", type=type at entry=Qt::AutoConnection,
ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=...,
val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1179
#28 0x000000000040d53d in invokeMethod (val9=..., val8=..., val7=..., val6=...,
val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., member=0x4115c0
"slotPrint", obj=<optimized out>) at /usr/include/qt4/QtCore/qobjectdefs.h:434
#29 Shell::print (this=0x155c3a0) at ../../shell/shell.cpp:561
#30 0x00000000004105cd in Shell::qt_static_metacall (_o=0x0, _id=3744,
_a=0x7ffe721e9d10, _c=<optimized out>) at ./shell.moc:107
#31 0x00007f3dc631187a in QMetaObject::activate (sender=sender at entry=0x19b1050,
m=m at entry=0x7f3dc77a3de0 <QAction::staticMetaObject>,
local_signal_index=local_signal_index at entry=1, argv=argv at entry=0x7ffe721e9d10)
at kernel/qobject.cpp:3539
#32 0x00007f3dc6cf3a62 in QAction::triggered (this=this at entry=0x19b1050,
_t1=false) at .moc/release-shared/moc_qaction.cpp:276
#33 0x00007f3dc6cf5433 in QAction::activate (this=this at entry=0x19b1050,
event=event at entry=QAction::Trigger) at kernel/qaction.cpp:1257
#34 0x00007f3dc7123509 in QMenuPrivate::activateCausedStack
(this=this at entry=0x19f3850, causedStack=..., action=action at entry=0x19b1050,
action_e=action_e at entry=QAction::Trigger, self=self at entry=true) at
widgets/qmenu.cpp:1038
#35 0x00007f3dc7127a39 in QMenuPrivate::activateAction (this=0x19f3850,
action=0x19b1050, action_e=action_e at entry=QAction::Trigger,
self=self at entry=true) at widgets/qmenu.cpp:1130
#36 0x00007f3dc712b405 in QMenu::mouseReleaseEvent (this=this at entry=0x19f36e0,
e=e at entry=0x7ffe721ea440) at widgets/qmenu.cpp:2372
#37 0x00007f3dc7ac0665 in KMenu::mouseReleaseEvent (this=0x19f36e0,
e=0x7ffe721ea440) at ../../kdeui/widgets/kmenu.cpp:464
#38 0x00007f3dc6d4951a in QWidget::event (this=this at entry=0x19f36e0,
event=event at entry=0x7ffe721ea440) at kernel/qwidget.cpp:8376
#39 0x00007f3dc712b83b in QMenu::event (this=0x19f36e0, e=0x7ffe721ea440) at
widgets/qmenu.cpp:2481
#40 0x00007f3dc6cf9e2c in QApplicationPrivate::notify_helper
(this=this at entry=0x13e77e0, receiver=receiver at entry=0x19f36e0,
e=e at entry=0x7ffe721ea440) at kernel/qapplication.cpp:4567
#41 0x00007f3dc6d005dd in QApplication::notify (this=this at entry=0x7ffe721ead00,
receiver=receiver at entry=0x19f36e0, e=e at entry=0x7ffe721ea440) at
kernel/qapplication.cpp:4110
#42 0x00007f3dc7a09d1a in KApplication::notify (this=0x7ffe721ead00,
receiver=0x19f36e0, event=0x7ffe721ea440) at
../../kdeui/kernel/kapplication.cpp:311
#43 0x00007f3dc62fd4dd in QCoreApplication::notifyInternal
(this=0x7ffe721ead00, receiver=receiver at entry=0x19f36e0,
event=event at entry=0x7ffe721ea440) at kernel/qcoreapplication.cpp:953
#44 0x00007f3dc6cffd93 in sendEvent (event=<optimized out>, receiver=<optimized
out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#45 QApplicationPrivate::sendMouseEvent (receiver=receiver at entry=0x19f36e0,
event=event at entry=0x7ffe721ea440, alienWidget=alienWidget at entry=0x0,
nativeWidget=nativeWidget at entry=0x19f36e0,
buttonDown=buttonDown at entry=0x7f3dc77df318 <qt_button_down>,
lastMouseReceiver=..., spontaneous=spontaneous at entry=true) at
kernel/qapplication.cpp:3178
#46 0x00007f3dc6d74d1c in QETWidget::translateMouseEvent
(this=this at entry=0x19f36e0, event=event at entry=0x7ffe721ea790) at
kernel/qapplication_x11.cpp:4568
#47 0x00007f3dc6d74289 in QApplication::x11ProcessEvent (this=0x7ffe721ead00,
event=event at entry=0x7ffe721ea790) at kernel/qapplication_x11.cpp:3627
#48 0x00007f3dc6d9bb32 in x11EventSourceDispatch (s=0x13ec1e0, callback=0x0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#49 0x00007f3dc24d0e04 in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f3dc24d1048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f3dc24d10ec in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007f3dc632a7a1 in QEventDispatcherGlib::processEvents (this=0x13afb50,
flags=...) at kernel/qeventdispatcher_glib.cpp:434
#53 0x00007f3dc6d9bbe6 in QGuiEventDispatcherGlib::processEvents
(this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#54 0x00007f3dc62fc0af in QEventLoop::processEvents
(this=this at entry=0x7ffe721eab60, flags=...) at kernel/qeventloop.cpp:149
#55 0x00007f3dc62fc3a5 in QEventLoop::exec (this=this at entry=0x7ffe721eab60,
flags=...) at kernel/qeventloop.cpp:204
#56 0x00007f3dc6301b79 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1225
#57 0x00007f3dc6cf837c in QApplication::exec () at kernel/qapplication.cpp:3828
#58 0x00000000004099c6 in main (argc=<optimized out>, argv=<optimized out>) at
../../shell/main.cpp:174

The reporter indicates this bug may be a duplicate of or related to bug 329907.

Possible duplicates by query: bug 348024, bug 341176.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list