Bug 199780

Summary: Qt print dialog crashed when cups restarted [QCUPSSupport::printerOption, QUnixPrintWidgetPrivate::_q_printerChanged, ..., KdePrint::createPrintDialog]
Product: [Unmaintained] kdelibs Reporter: Jon Nelson <jnelson-kde>
Component: print-dialogAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash CC: andresbajotierra, benderamp, cfeck, christiandehne, dilfridge, energie.mc2, jlayt, mark, martin.stehno, montgomerie, paul.leopardi, seife, v.for.vandal, volodya
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jon Nelson 2009-07-11 15:22:31 UTC
Application that crashed: okular
Version of the application: 0.8.90
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1)) "release 139"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.23-0.1-default x86_64
Distribution: "openSUSE 11.1 (x86_64)"

What I was doing when the application crashed:
I tried to print, it hung (unresponsive) after control-p with no dialog.
I restarted cups and that is when it crashed.


 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f6874db5750 (LWP 4272))]

Thread 3 (Thread 0x7f6863043950 (LWP 4347)):
#0  0x00007f68729ddd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6872c4ee19 in QWaitCondition::wait (this=0xc26bd8, mutex=0xc26bd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f687247165e in QFileInfoGatherer::run (this=0xc26bc0) at dialogs/qfileinfogatherer.cpp:207
#3  0x00007f6872c4de65 in QThreadPrivate::start (arg=0xc26bc0) at thread/qthread_unix.cpp:188
#4  0x00007f68729da070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f687141d10d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6860cce950 (LWP 4348)):
#0  0x00007f6871414386 in poll () from /lib64/libc.so.6
#1  0x00007f686e99a768 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f686e99aa8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f6872d60d3f in QEventDispatcherGlib::processEvents (this=0x8733a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#4  0x00007f6872d361d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1624039424}) at kernel/qeventloop.cpp:149
#5  0x00007f6872d365a4 in QEventLoop::exec (this=0x7f6860cce040, flags={i = 1624039504}) at kernel/qeventloop.cpp:201
#6  0x00007f6872c4aed8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f6872d199b8 in QInotifyFileSystemWatcherEngine::run (this=0xc278b0) at io/qfilesystemwatcher_inotify.cpp:214
#8  0x00007f6872c4de65 in QThreadPrivate::start (arg=0xc278b0) at thread/qthread_unix.cpp:188
#9  0x00007f68729da070 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f687141d10d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6874db5750 (LWP 4272)):
[KCrash Handler]
#5  0x00007f687218ff9e in QCUPSSupport::printerOption (this=0xc26780, key=@0x7fff7cdecf30) at painting/qcups.cpp:251
#6  0x00007f687241c239 in QUnixPrintWidgetPrivate::_q_printerChanged (this=0xc19100, index=<value optimized out>) at dialogs/qprintdialog_unix.cpp:795
#7  0x00007f687241cf2f in QUnixPrintWidgetPrivate (this=0xc19100, p=<value optimized out>) at dialogs/qprintdialog_unix.cpp:702
#8  0x00007f687241d2dc in QUnixPrintWidget (this=0xc18cb0, printer=0x0, parent=<value optimized out>) at dialogs/qprintdialog_unix.cpp:995
#9  0x00007f687241d350 in QPrintDialogPrivate::init (this=0xc16c80) at dialogs/qprintdialog_unix.cpp:384
#10 0x00007f687241d929 in QPrintDialog (this=0xbdd050, printer=0x7fff7cded360, parent=0x7c7e20) at dialogs/qprintdialog_unix.cpp:580
#11 0x00007f6873ae5840 in KdePrint::createPrintDialog(QPrinter*, QList<QWidget*> const&, QWidget*) () from /usr/lib64/libkdeui.so.5
#12 0x00007f6866f33ce1 in ?? () from /usr/lib64/kde4/okularpart.so
#13 0x00007f6866f36ad5 in ?? () from /usr/lib64/kde4/okularpart.so
#14 0x00007f6872d4c6e2 in QMetaObject::activate (sender=0x8251e0, from_signal_index=<value optimized out>, to_signal_index=6, argv=0xc2b480) at kernel/qobject.cpp:3113
#15 0x00007f6871fb5af7 in QAction::triggered (this=0xc26780, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#16 0x00007f6871fb6f70 in QAction::activate (this=0x8251e0, event=<value optimized out>) at kernel/qaction.cpp:1160
#17 0x00007f68723a0e1d in QMenuPrivate::activateCausedStack (this=0x8daaa0, causedStack=@0x7fff7cded630, action=0x8251e0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967
#18 0x00007f68723a6e5e in QMenuPrivate::activateAction (this=0x8daaa0, action=0x8251e0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1060
#19 0x00007f6873c47111 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libkdeui.so.5
#20 0x00007f687200caed in QWidget::event (this=0x945920, event=0x7fff7cdedfd0) at kernel/qwidget.cpp:7549
#21 0x00007f68723a96ab in QMenu::event (this=0x945920, e=0x7fff7cdedfd0) at widgets/qmenu.cpp:2353
#22 0x00007f6871fbbb0d in QApplicationPrivate::notify_helper (this=0x62e180, receiver=0x945920, e=0x7fff7cdedfd0) at kernel/qapplication.cpp:4056
#23 0x00007f6871fc44fa in QApplication::notify (this=<value optimized out>, receiver=0x945920, e=0x7fff7cdedfd0) at kernel/qapplication.cpp:3758
#24 0x00007f6873b745cb in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#25 0x00007f6872d3794c in QCoreApplication::notifyInternal (this=0x7fff7cdeff00, receiver=0x945920, event=0x7fff7cdedfd0) at kernel/qcoreapplication.cpp:610
#26 0x00007f6871fc3748 in QApplicationPrivate::sendMouseEvent (receiver=0x945920, event=0x7fff7cdedfd0, alienWidget=0x0, nativeWidget=0x945920, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f68729cff30) at ../../src/corelib/kernel/qcoreapplication.h:216
#27 0x00007f687202d6c4 in QETWidget::translateMouseEvent (this=0x945920, event=<value optimized out>) at kernel/qapplication_x11.cpp:4341
#28 0x00007f687202c543 in QApplication::x11ProcessEvent (this=0x7fff7cdeff00, event=0x7fff7cdefb50) at kernel/qapplication_x11.cpp:3548
#29 0x00007f6872053864 in x11EventSourceDispatch (s=0x631b20, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007f686e9970fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f686e99a8cd in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f686e99aa8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f6872d60d3f in QEventDispatcherGlib::processEvents (this=0x614c30, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#34 0x00007f6872052fef in QGuiEventDispatcherGlib::processEvents (this=0xc26780, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#35 0x00007f6872d361d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 2094988864}) at kernel/qeventloop.cpp:149
#36 0x00007f6872d365a4 in QEventLoop::exec (this=0x7fff7cdefe80, flags={i = 2094988944}) at kernel/qeventloop.cpp:201
#37 0x00007f6872d38894 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#38 0x00000000004080bc in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2010-08-08 23:25:00 UTC
*** Bug 233890 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2010-08-08 23:34:45 UTC
This probably is http://bugreports.qt.nokia.com/browse/QTBUG-10512 and should be fixed in Qt 4.6.3. If you can still reproduce with that version, please file a bug report to http://bugreports.qt.nokia.com/
Comment 3 Christian Trippe 2010-08-09 08:49:50 UTC
JFYI: Bug 242472 which in the end was marked as duplicate of this bug happened for me with Qt 4.6.3. I filled an upstream bug report at http://bugreports.qt.nokia.com/browse/QTBUG-12748
Comment 4 Dario Andres 2010-11-24 21:51:46 UTC
[Comment from a bug triager]
Bug 257816 is also happening with Qt 4.6.3
Comment 5 Dario Andres 2010-11-24 21:51:54 UTC
*** Bug 257816 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-12-11 22:01:53 UTC
*** Bug 223767 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2010-12-11 22:03:13 UTC
*** Bug 258945 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2012-04-12 14:39:58 UTC
*** Bug 295138 has been marked as a duplicate of this bug. ***
Comment 9 Dawit Alemayehu 2012-04-20 14:44:31 UTC
*** Bug 298276 has been marked as a duplicate of this bug. ***
Comment 10 Albert Astals Cid 2012-12-22 15:17:52 UTC
*** Bug 312049 has been marked as a duplicate of this bug. ***
Comment 11 Albert Astals Cid 2013-02-27 22:59:06 UTC
*** Bug 315842 has been marked as a duplicate of this bug. ***
Comment 12 paul.leopardi 2013-04-11 06:24:22 UTC
I experienced a very similar crash with Okular Version 0.16.2
Using KDE Development Platform 4.10.2. Should I file a new report, or ask for this one to be re-opened?

Thread 1 (Thread 0x7fdb07b7f780 (LWP 17842)):
[KCrash Handler]
#6  0x00007fdb0612cefe in QCUPSSupport::printerOption (this=0x22677c0, key=...) at painting/qcups.cpp:251
#7  0x00007fdb063c9335 in QUnixPrintWidgetPrivate::_q_printerChanged (this=0x2279370, index=0) at dialogs/qprintdialog_unix.cpp:830
#8  0x00007fdb063c9f42 in QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate (this=0x2279370, p=<optimized out>) at dialogs/qprintdialog_unix.cpp:737
#9  0x00007fdb063ca22b in QUnixPrintWidget::QUnixPrintWidget (this=0x22a9e30, printer=0x0, parent=<optimized out>) at dialogs/qprintdialog_unix.cpp:1062
#10 0x00007fdb063ca2ae in QPrintDialogPrivate::init (this=0x22e8e10) at dialogs/qprintdialog_unix.cpp:386
#11 0x00007fdb063ca7f8 in QPrintDialog::QPrintDialog (this=0x295b650, printer=0x7fffdb5ac1a0, parent=0x1b8a0e0) at dialogs/qprintdialog_unix.cpp:617
#12 0x00007fdb06d6e902 in KdePrint::createPrintDialog (printer=0x7fffdb5ac1a0, pageSelectPolicy=KdePrint::ApplicationSelectsPages, customTabs=..., parent=0x1b8a0e0) at ../../kdeui/dialogs/kdeprintdialog.cpp:44
#13 0x00007fdaf638ada8 in ?? () from /usr/lib/kde4/okularpart.so
#14 0x00007fdaf638b93a in ?? () from /usr/lib/kde4/okularpart.so
#15 0x00007fdb05525781 in QMetaObject::activate (sender=0x1f939d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffdb5ac390) at kernel/qobject.cpp:3547
#16 0x00007fdb05f08072 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#17 0x00007fdb05f0825f in QAction::activate (this=0x1f939d0, event=<optimized out>) at kernel/qaction.cpp:1257
#18 0x00007fdb0635a5e9 in QMenuPrivate::activateCausedStack (this=0x1af2db0, causedStack=..., action=0x1f939d0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#19 0x00007fdb06360742 in QMenuPrivate::activateAction (this=0x1af2db0, action=0x1f939d0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#20 0x00007fdb06d0ac90 in KMenu::mouseReleaseEvent (this=0x1fb0e60, e=0x7fffdb5acf60) at ../../kdeui/widgets/kmenu.cpp:464
#21 0x00007fdb05f5efb4 in QWidget::event (this=0x1fb0e60, event=0x7fffdb5acf60) at kernel/qwidget.cpp:8371
#22 0x00007fdb06361cdb in QMenu::event (this=0x1fb0e60, e=0x7fffdb5acf60) at widgets/qmenu.cpp:2469
#23 0x00007fdb05f0e7b4 in notify_helper (e=0x7fffdb5acf60, receiver=0x1fb0e60, this=0x1959ad0) at kernel/qapplication.cpp:4556
#24 QApplicationPrivate::notify_helper (this=0x1959ad0, receiver=0x1fb0e60, e=0x7fffdb5acf60) at kernel/qapplication.cpp:4528
#25 0x00007fdb05f13f2f in QApplication::notify (this=<optimized out>, receiver=0x1fb0e60, e=0x7fffdb5acf60) at kernel/qapplication.cpp:4099
#26 0x00007fdb06c4a006 in KApplication::notify (this=0x7fffdb5adc50, receiver=0x1fb0e60, event=0x7fffdb5acf60) at ../../kdeui/kernel/kapplication.cpp:311
#27 0x00007fdb0551132c in QCoreApplication::notifyInternal (this=0x7fffdb5adc50, receiver=0x1fb0e60, event=0x7fffdb5acf60) at kernel/qcoreapplication.cpp:915
#28 0x00007fdb05f0f782 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#29 QApplicationPrivate::sendMouseEvent (receiver=0x1fb0e60, event=0x7fffdb5acf60, alienWidget=0x0, nativeWidget=0x1fb0e60, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3167
#30 0x00007fdb05f8f1e1 in QETWidget::translateMouseEvent (this=0x1fb0e60, event=<optimized out>) at kernel/qapplication_x11.cpp:4551
#31 0x00007fdb05f8dace in QApplication::x11ProcessEvent (this=0x7fffdb5adc50, event=0x7fffdb5ad830) at kernel/qapplication_x11.cpp:3732
#32 0x00007fdb05fb7052 in x11EventSourceDispatch (s=0x194f900, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#33 0x00007fdb01944d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fdb019450a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fdb01945164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fdb055408bf in QEventDispatcherGlib::processEvents (this=0x1922b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0x00007fdb05fb6cde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x00007fdb0550fe62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x00007fdb055100b7 in QEventLoop::exec (this=0x7fffdb5adbd0, flags=...) at kernel/qeventloop.cpp:204
#40 0x00007fdb05515407 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#41 0x0000000000408016 in ?? ()
#42 0x00007fdb04a7a76d in __libc_start_main (main=0x407c30, argc=2, ubp_av=0x7fffdb5ae268, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffdb5ae258) at libc-start.c:226
#43 0x0000000000408c61 in _start ()
Comment 13 Christoph Feck 2013-04-11 09:58:39 UTC
Paul, if this bug is reproducible, and you can provide exact steps to reproduce this crash, please report it to Qt developers via https://bugreports.qt-project.org/
Comment 14 Jekyll Wu 2013-04-12 23:49:59 UTC
*** Bug 318268 has been marked as a duplicate of this bug. ***