Bug 168118 - Okular crashes when printing PDF files
Summary: Okular crashes when printing PDF files
Status: RESOLVED LATER
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.7
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 16:51 UTC by girobank
Modified: 2008-12-22 12:09 UTC (History)
2 users (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 girobank 2008-08-02 16:51:15 UTC
Version:           0.7 (using KDE 4.1.0)
Installed from:    SuSE RPMs
OS:                Linux

I tell Okular to print a PDF file and tell it to print with greyscale only. It crashes and produces a bug report shown below...

Application: Okular (okular), signal SIGSEGV
[?1034h(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb660d6d0 (LWP 6187)]
[New Thread 0xb30feb90 (LWP 6323)]
[New Thread 0xb1dfcb90 (LWP 6322)]
[New Thread 0xb28fdb90 (LWP 6191)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb6cb163e in QWidget::testAttribute_helper () from /usr/lib/libQtGui.so.4
#7  0xb6cedb3a in QWidgetPrivate::setParent_sys () from /usr/lib/libQtGui.so.4
#8  0xb6cc0bb9 in QWidget::setParent () from /usr/lib/libQtGui.so.4
#9  0xb6cc113e in QWidget::setParent () from /usr/lib/libQtGui.so.4
#10 0xb6c9af0f in QLayout::addChildWidget () from /usr/lib/libQtGui.so.4
#11 0xb6ca8719 in QStackedLayout::insertWidget () from /usr/lib/libQtGui.so.4
#12 0xb700e824 in QStackedWidget::insertWidget () from /usr/lib/libQtGui.so.4
#13 0xb701b135 in QTabWidget::insertTab () from /usr/lib/libQtGui.so.4
#14 0xb701b1d9 in QTabWidget::insertTab () from /usr/lib/libQtGui.so.4
#15 0xb701b233 in QTabWidget::addTab () from /usr/lib/libQtGui.so.4
#16 0xb705f210 in ?? () from /usr/lib/libQtGui.so.4
#17 0xb706d90b in QAbstractPrintDialog::setOptionTabs ()
   from /usr/lib/libQtGui.so.4
#18 0xb7c2b7b6 in KdePrint::createPrintDialog () from /usr/lib/libkdeui.so.5
#19 0xb4f579b0 in ?? () from /usr/lib/kde4/okularpart.so
#20 0xb4f61817 in ?? () from /usr/lib/kde4/okularpart.so
#21 0xb772c45a in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb772c750 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb6c6a941 in QAction::triggered () from /usr/lib/libQtGui.so.4
#24 0xb6c6b2af in QAction::activate () from /usr/lib/libQtGui.so.4
#25 0xb6fed052 in ?? () from /usr/lib/libQtGui.so.4
#26 0xb6fedcc2 in QMenu::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#27 0xb7d84f35 in KMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.5
#28 0xb6cc2176 in QWidget::event () from /usr/lib/libQtGui.so.4
#29 0xb6fee739 in QMenu::event () from /usr/lib/libQtGui.so.4
#30 0xb6c6fecc in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#31 0xb6c76ca7 in QApplication::notify () from /usr/lib/libQtGui.so.4
#32 0xb7cbec5d in KApplication::notify () from /usr/lib/libkdeui.so.5
#33 0xb771abc1 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#34 0xb6c77fae in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#35 0xb6cd5474 in ?? () from /usr/lib/libQtGui.so.4
#36 0xb6cd45a4 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#37 0xb6cfa3ae in ?? () from /usr/lib/libQtGui.so.4
#38 0xb771933a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#39 0xb77194fa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#40 0xb771b6dd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#41 0xb6c6fd47 in QApplication::exec () from /usr/lib/libQtGui.so.4
#42 0x0804e1df in _start ()
#0  0xffffe430 in __kernel_vsyscall ()
Comment 1 Médéric Boquien 2008-08-02 17:09:01 UTC
Hello. Thank you for your report. Unfortunately the backtrace is not complete. Could you install debugging packages provided by your distribution and reproduce the crash please? Instructions are given in this page: http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports . Thanks.
Comment 2 Pino Toscano 2008-08-05 11:20:26 UTC
Were you actually printing or just doing the print preview?
Comment 3 sts 2008-08-13 20:46:38 UTC
here the same with print preview.. I can't print any pdf :(

Anwendung: Okular (okular), Signal SIGSEGV
[?1034h(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7f4c6d568700 (LWP 19002)]
[KCrash handler]
#5  0x00007f4c60a69308 in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#6  0x00007f4c63c5980a in ?? () from /usr/lib64/kde4/okularpart.so
#7  0x00007f4c63c59d87 in ?? () from /usr/lib64/kde4/okularpart.so
#8  0x00007f4c63c6259d in ?? () from /usr/lib64/kde4/okularpart.so
#9  0x00007f4c6b90ce50 in QMetaObject::activate (sender=0x761090, 
    from_signal_index=<value optimized out>, to_signal_index=6, argv=0x660064)
    at kernel/qobject.cpp:3013
#10 0x00007f4c68b7fdb7 in QAction::triggered (this=0x7fff75599690, _t1=false)
    at .moc/release-shared/moc_qaction.cpp:216
#11 0x00007f4c68b80570 in QAction::activate (this=0x761090, 
    event=<value optimized out>) at kernel/qaction.cpp:1119
#12 0x00007f4c68ec79b3 in QMenuPrivate::activateAction (this=0x769150, 
    action=0x761090, action_e=QAction::Trigger, self=true)
    at widgets/qmenu.cpp:1005
#13 0x00007f4c6cc06f01 in KMenu::mouseReleaseEvent (this=0x74fea0, 
    e=0x7fff755996e0)
    at /usr/src/debug/kdelibs-4.1.0/kdeui/widgets/kmenu.cpp:452
#14 0x00007f4c68bd1eb4 in QWidget::event (this=0x7fff75599690, 
    event=0x7fff7559a520) at kernel/qwidget.cpp:7021
#15 0x00007f4c68ec8efb in QMenu::event (this=0x74fea0, e=0x7fff7559a520)
    at widgets/qmenu.cpp:2265
#16 0x00007f4c68b84ebd in QApplicationPrivate::notify_helper (this=0x624ab0, 
    receiver=0x74fea0, e=0x7fff7559a520) at kernel/qapplication.cpp:3800
#17 0x00007f4c68b8baf6 in QApplication::notify (this=<value optimized out>, 
    receiver=0x74fea0, e=0x7fff7559a520) at kernel/qapplication.cpp:3527
#18 0x00007f4c6cb53d1b in KApplication::notify (this=0x7fff7559b170, 
    receiver=0x74fea0, event=0x7fff7559a520)
    at /usr/src/debug/kdelibs-4.1.0/kdeui/kernel/kapplication.cpp:311
#19 0x00007f4c6b8fb78c in QCoreApplication::notifyInternal (
    this=0x7fff7559b170, receiver=0x74fea0, event=0x7fff7559a520)
    at kernel/qcoreapplication.cpp:587
#20 0x00007f4c68b8cea8 in QApplicationPrivate::sendMouseEvent (
    receiver=0x74fea0, event=0x7fff7559a520, alienWidget=0x0, 
    nativeWidget=0x74fea0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f4c6941b6a0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#21 0x00007f4c68be34bb in QETWidget::translateMouseEvent (this=0x74fea0, 
    event=<value optimized out>) at kernel/qapplication_x11.cpp:3980
#22 0x00007f4c68be1f1b in QApplication::x11ProcessEvent (this=0x7fff7559b170, 
    event=0x7fff7559afa0) at kernel/qapplication_x11.cpp:3164
#23 0x00007f4c68c05ffc in QEventDispatcherX11::processEvents (this=0x624770, 
    flags={i = 1968812208}) at kernel/qeventdispatcher_x11.cpp:134
#24 0x00007f4c6b8fa0e2 in QEventLoop::processEvents (
    this=<value optimized out>, flags={i = 1968812256})
    at kernel/qeventloop.cpp:149
#25 0x00007f4c6b8fa275 in QEventLoop::exec (this=0x7fff7559b120, flags=
      {i = 1968812336}) at kernel/qeventloop.cpp:196
#26 0x00007f4c6b8fc315 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:849
#27 0x0000000000407a64 in _start ()
#0  0x00007f4c67597261 in nanosleep () from /lib64/libc.so.6
Comment 4 Pino Toscano 2008-08-15 11:23:32 UTC
@sts (comment #3):
please please please, please, please, *read* comment #1 and follow the linked instructions. Crying with an unuseful backtrace is not going to help us. Thanks.
Comment 5 girobank 2008-08-16 15:00:11 UTC
Hi,

It appears that the SuSE debugger doesn't produce any more information 
so I've tried to run okular inside gdb as suggested.

However, I'm not sure which bits you're interested in so I've copied the 
last bit where it falls over.

Can I just point out that okular is now not allowing me to print to the 
printer and simply prints to a local file. However, it did use to print 
to the printer so something's obviously got scrambled.

Anyway, for what it's worth...


(no debugging symbols found) 
 

(no debugging symbols found) 
 

[New Thread 0xb2b3bb90 (LWP 3437)] 
 

[New Thread 0xb333cb90 (LWP 3438)] 
 

[Thread 0xb2b3bb90 (LWP 3437) exited] 
 

[Thread 0xb333cb90 (LWP 3438) exited] 
 

(no debugging symbols found) 
 

(no debugging symbols found) 
 

(no debugging symbols found) 
 

---Type <return> to continue, or q <return> to quit--- 
 

(no debugging symbols found) 
 

(no debugging symbols found) 
 

[New Thread 0xb333cb90 (LWP 3445)] 
 

rangecheck -15 
 

okular(3432)/okular (Spectre) GSRendererThread::run: Generated image 
does not match wanted size  0   8   0   12 

QImage::scaled: Image is a null image 
 

syntaxerror -18 
 

okular(3432)/okular (Spectre) GSRendererThread::run: Generated image 
does not match wanted size  0   29   0   42 

QImage::scaled: Image is a null image 
 

syntaxerror -18 
 

okular(3432)/okular (Spectre) GSRendererThread::run: Generated image 
does not match wanted size  0   78   0   110 

QImage::scaled: Image is a null image 
 

syntaxerror -18 
 

okular(3432)/okular (Spectre) GSRendererThread::run: Generated image 
does not match wanted size  0   231   0   327 

QImage::scaled: Image is a null image 
 

syntaxerror -18 
 

okular(3432)/okular (Spectre) GSRendererThread::run: Generated image 
does not match wanted size  0   450   0   638 

QImage::scaled: Image is a null image 
 

[New Thread 0xb2b3bb90 (LWP 3446)] 
 

[New Thread 0xb1bd6b90 (LWP 3447)] 
 


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb65756d0 (LWP 3432)]
0xb6c1c563 in QWidget::windowTitle () from /usr/lib/libQtGui.so.4


Regards
Andy Bennett



Pino Toscano wrote:
[bugs.kde.org quoted mail]
Comment 6 Pino Toscano 2008-08-20 10:33:25 UTC
Hi girobank,

unfortunately the output you posted is not that useful.
What you could do (if it is not what you already did) is:
$ gdb --args okular somedocument.pdf
(gdb) run
then work normally, waiting that it stucks
(gdb) thread apply all bt
and then paste its output here
(to quit gdb, write "quit" at its prompt.)
Comment 7 Thomas Jarosch 2008-08-28 09:50:36 UTC
The second backtrace looks like the backtrace of bug #167822 to me...
Comment 8 Pino Toscano 2008-08-28 10:26:55 UTC
(In reply to comment #7)
> The second backtrace looks like the backtrace of bug #167822 to me...

I guess you mean bug #167882, no? :)
Comment 9 Thomas Jarosch 2008-08-28 10:32:10 UTC
I'm sure okular is heavily related to the "cdr-device without motor" :o)

Thanks for spotting this, your bug # is the correct one.
Comment 10 Pino Toscano 2008-12-20 14:42:43 UTC
Any news about this problem?
Does it still happen with more recent Okular versions?
Comment 11 sts 2008-12-20 15:15:38 UTC
I haven't seen it with 4.1.3
Comment 12 girobank 2008-12-22 12:09:06 UTC
FYI I am not using KDE now with SuSE and have changed to Ubuntu. I may change back at some point and will try it then

Thanks/Regards