Bug 170171 - okular crash when selecting printer after having added three printers
Summary: okular crash when selecting printer after having added three printers
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.7
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 11:31 UTC by Oliver Putz
Modified: 2008-09-01 11:43 UTC (History)
0 users

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 Oliver Putz 2008-09-01 11:31:37 UTC
Version:           0.7 (using 4.1.00 (KDE 4.1.0), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.25-gentoo-r7

I tried to print a pdf in okular. As this only printed the document to a file (Bug 
#162793) I added two more printers in cups. Whenever I now select the second printer Okular immediately crashes with the following backtrace:

Application: Okular (okular), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb6354700 (LWP 11023)]
[New Thread 0xb348db90 (LWP 11383)]
[New Thread 0xb2a86b90 (LWP 11382)]
[KCrash handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb6607690 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0xb6608ed8 in *__GI_abort () at abort.c:88
#9  0xb7535097 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbff9c18c "ASSERT: \"index != printerCount - 3\" in file dialogs/qprintdialog_unix.cpp, line 749") at global/qglobal.cpp:2058
#10 0xb753514f in qFatal (msg=0xb7688ab4 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2260
#11 0xb75355cb in qt_assert (
    assertion=0xb6fd4b46 "index != printerCount - 3", 
    file=0xb6fd4b28 "dialogs/qprintdialog_unix.cpp", line=749)
    at global/qglobal.cpp:1828
#12 0xb6df6ee0 in QUnixPrintWidgetPrivate::_q_printerChanged (
    this=0xb2bf1d18, index=0) at dialogs/qprintdialog_unix.cpp:749
#13 0xb6df7615 in QUnixPrintWidget::qt_metacall (this=0xb2bcfdf0, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbff9e32c)
    at .moc/debug-shared/moc_qprintdialog.cpp:68
#14 0xb7648530 in QMetaObject::activate (sender=0xb2bf9188, 
    from_signal_index=<value optimized out>, to_signal_index=32, 
    argv=<value optimized out>) at kernel/qobject.cpp:3001
#15 0xb7648c92 in QMetaObject::activate (sender=0xb2bf9188, m=0xb715a8f4, 
    local_signal_index=5, argv=0xbff9e32c) at kernel/qobject.cpp:3071
#16 0xb6cfb865 in QComboBox::currentIndexChanged (this=0xb2bf9188, _t1=0)
    at .moc/debug-shared/moc_qcombobox.cpp:278
#17 0xb6cfd805 in QComboBoxPrivate::_q_emitCurrentIndexChanged (
    this=0xb2bf75f8, index=@0xb192a7e0) at widgets/qcombobox.cpp:1207
#18 0xb6cff246 in QComboBoxPrivate::setCurrentIndex (this=0xb2bf75f8, 
    mi=@0xbff9e5c0) at widgets/qcombobox.cpp:1904
#19 0xb6cffe80 in QComboBoxPrivate::_q_itemSelected (this=0xb2bf75f8, 
    item=@0xbff9e5c0) at widgets/qcombobox.cpp:1176
#20 0xb6d05923 in QComboBox::qt_metacall (this=0xb2bf9188, 
    _c=QMetaObject::InvokeMetaMethod, _id=39, _a=0xbff9e4fc)
    at .moc/debug-shared/moc_qcombobox.cpp:168
#21 0xb7648530 in QMetaObject::activate (sender=0xb193d508, 
    from_signal_index=<value optimized out>, to_signal_index=27, 
    argv=<value optimized out>) at kernel/qobject.cpp:3001
#22 0xb7648c92 in QMetaObject::activate (sender=0xb193d508, m=0xb7167294, 
    local_signal_index=0, argv=0xbff9e4fc) at kernel/qobject.cpp:3071
#23 0xb6f956e3 in QComboBoxPrivateContainer::itemSelected (this=0xb193d508, 
    _t1=@0xbff9e5c0) at .moc/debug-shared/moc_qcombobox_p.cpp:193
#24 0xb6cfd5f8 in QComboBoxPrivateContainer::eventFilter (this=0xb193d508, 
    o=0xb19246c0, e=0xbff9eb50) at widgets/qcombobox.cpp:665
#25 0xb7633192 in QCoreApplicationPrivate::sendThroughObjectEventFilters (
    this=0x805f008, receiver=0xb19246c0, event=0xbff9eb50)
    at kernel/qcoreapplication.cpp:694
#26 0xb6986884 in QApplicationPrivate::notify_helper (this=0x805f008, 
    receiver=0xb19246c0, e=0xbff9eb50) at kernel/qapplication.cpp:3768
#27 0xb698ab60 in QApplication::notify (this=0xbffa0084, receiver=0xb19246c0, 
    e=0xbff9eb50) at kernel/qapplication.cpp:3501
#28 0xb7c036c3 in KApplication::notify (this=0xbffa0084, receiver=0xb19246c0, 
    event=0xbff9eb50)
    at /var/tmp/portage/kde-base/kdelibs-4.1.0/work/kdelibs-4.1.0/kdeui/kernel/kapplication.cpp:311
#29 0xb7632d59 in QCoreApplication::notifyInternal (this=0xbffa0084, 
    receiver=0xb19246c0, event=0xbff9eb50) at kernel/qcoreapplication.cpp:587
#30 0xb698c67f in QApplicationPrivate::sendMouseEvent (receiver=0xb19246c0, 
    event=0xbff9eb50, alienWidget=0xb19246c0, nativeWidget=0xb193d508, 
    buttonDown=0xb716dc40, lastMouseReceiver=@0xb716dc44)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#31 0xb69f1a78 in QETWidget::translateMouseEvent (this=0xb193d508, 
    event=0xbff9ef48) at kernel/qapplication_x11.cpp:4067
#32 0xb69f048d in QApplication::x11ProcessEvent (this=0xbffa0084, 
    event=0xbff9ef48) at kernel/qapplication_x11.cpp:3133
#33 0xb6a16ed8 in QEventDispatcherX11::processEvents (this=0x805f0c0, 
    flags=@0xbff9f038) at kernel/qeventdispatcher_x11.cpp:134
#34 0xb76320d3 in QEventLoop::processEvents (this=0xbff9f0bc, 
    flags=@0xbff9f078) at kernel/qeventloop.cpp:149
#35 0xb7632246 in QEventLoop::exec (this=0xbff9f0bc, flags=@0xbff9f0c8)
    at kernel/qeventloop.cpp:200
#36 0xb6e0f931 in QDialog::exec (this=0xb2be6f30) at dialogs/qdialog.cpp:453
#37 0xb6df6105 in QPrintDialog::exec (this=0xb2be6f30)
    at dialogs/qprintdialog_unix.cpp:596
#38 0xb4eb5f8b in Part::slotPrint (this=0x8114d78)
    at /var/tmp/portage/kde-base/okular-4.1.0/work/okular-4.1.0/okular/part.cpp:1778
#39 0xb4ebbfa8 in Part::qt_metacall (this=0x8114d78, 
    _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0xbff9f25c)
    at /var/tmp/portage/kde-base/okular-4.1.0/work/okular_build/okular/part.moc:219
#40 0xb7648530 in QMetaObject::activate (sender=0x81f1520, 
    from_signal_index=<value optimized out>, to_signal_index=6, 
    argv=<value optimized out>) at kernel/qobject.cpp:3001
#41 0xb7648a4a in QMetaObject::activate (sender=0x81f1520, m=0xb71569f8, 
    from_local_signal_index=1, to_local_signal_index=2, argv=0xbff9f25c)
    at kernel/qobject.cpp:3091
#42 0xb697fc3f in QAction::triggered (this=0x81f1520, _t1=false)
    at .moc/debug-shared/moc_qaction.cpp:216
#43 0xb69804d4 in QAction::activate (this=0x81f1520, event=QAction::Trigger)
    at kernel/qaction.cpp:1119
#44 0xb6d7e4d8 in QMenuPrivate::activateAction (this=0x81161f0, 
    action=0x81f1520, action_e=QAction::Trigger, self=true)
    at widgets/qmenu.cpp:1005
#45 0xb6d80920 in QMenu::mouseReleaseEvent (this=0x81f7ec0, e=0xbff9fad0)
    at widgets/qmenu.cpp:2160
#46 0xb7cb7f56 in KMenu::mouseReleaseEvent (this=0x81f7ec0, e=0xbff9fad0)
    at /var/tmp/portage/kde-base/kdelibs-4.1.0/work/kdelibs-4.1.0/kdeui/widgets/kmenu.cpp:452
#47 0xb69dfdc2 in QWidget::event (this=0x81f7ec0, event=0xbff9fad0)
    at kernel/qwidget.cpp:6927
#48 0xb6d7be38 in QMenu::event (this=0x81f7ec0, e=0xbff9fad0)
    at widgets/qmenu.cpp:2256
#49 0xb69868a4 in QApplicationPrivate::notify_helper (this=0x805f008, 
    receiver=0x81f7ec0, e=0xbff9fad0) at kernel/qapplication.cpp:3772
#50 0xb698ab60 in QApplication::notify (this=0xbffa0084, receiver=0x81f7ec0, 
    e=0xbff9fad0) at kernel/qapplication.cpp:3501
#51 0xb7c036c3 in KApplication::notify (this=0xbffa0084, receiver=0x81f7ec0, 
    event=0xbff9fad0)
    at /var/tmp/portage/kde-base/kdelibs-4.1.0/work/kdelibs-4.1.0/kdeui/kernel/kapplication.cpp:311
#52 0xb7632d59 in QCoreApplication::notifyInternal (this=0xbffa0084, 
    receiver=0x81f7ec0, event=0xbff9fad0) at kernel/qcoreapplication.cpp:587
#53 0xb698c67f in QApplicationPrivate::sendMouseEvent (receiver=0x81f7ec0, 
    event=0xbff9fad0, alienWidget=0x0, nativeWidget=0x81f7ec0, 
    buttonDown=0xb716dc40, lastMouseReceiver=@0xb716dc44)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#54 0xb69f1a78 in QETWidget::translateMouseEvent (this=0x81f7ec0, 
    event=0xbff9fec8) at kernel/qapplication_x11.cpp:4067
#55 0xb69f048d in QApplication::x11ProcessEvent (this=0xbffa0084, 
    event=0xbff9fec8) at kernel/qapplication_x11.cpp:3133
#56 0xb6a16ed8 in QEventDispatcherX11::processEvents (this=0x805f0c0, 
    flags=@0xbff9ffb8) at kernel/qeventdispatcher_x11.cpp:134
#57 0xb76320d3 in QEventLoop::processEvents (this=0xbffa0030, 
    flags=@0xbff9fff8) at kernel/qeventloop.cpp:149
#58 0xb7632246 in QEventLoop::exec (this=0xbffa0030, flags=@0xbffa0038)
    at kernel/qeventloop.cpp:200
#59 0xb7634401 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#60 0xb698623f in QApplication::exec () at kernel/qapplication.cpp:3304
#61 0x0804ec26 in main (argc=)
    at /var/tmp/portage/kde-base/okular-4.1.0/work/okular-4.1.0/okular/shell/main.cpp:58
#0  0xffffe424 in __kernel_vsyscall ()
Comment 1 Oliver Putz 2008-09-01 11:33:21 UTC
Addendum: If its important: The printer I am talking about is the first one displayed in the list of available printers.
Comment 2 Pino Toscano 2008-09-01 11:43:54 UTC
I can do exactly nothing with Qt bugs, so qt-bugs@trolltech.com.