Version: (using KDE Devel) Installed from: Compiled sources kopete crashes if you go to Settings Dialog, select Device and then go to the middle dropdown (named "Input"). if there are no devices in the list and you focus that dropdown list and press up / down on your keyboard, kopete will crash providing this backtrace: Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 29957)] [KCrash handler] #6 0x426eddc7 in Kopete::AV::VideoDevice::inputs () from /opt/kde3/lib/libkopete_videodevice.so.0 #7 0x423c5e41 in AVDeviceConfig::slotInputKComboBoxChanged () from /opt/kde3/lib/kde3/kcm_kopete_avdeviceconfig.so #8 0x423cb9ff in AVDeviceConfig::qt_invoke () from /opt/kde3/lib/kde3/kcm_kopete_avdeviceconfig.so #9 0x414735b4 in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #10 0x41473bdb in QObject::activate_signal () from /usr/lib/qt3/lib/libqt-mt.so.3 #11 0x417d8b60 in QComboBox::activated () from /usr/lib/qt3/lib/libqt-mt.so.3 #12 0x41516744 in QComboBox::keyPressEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #13 0x414ad259 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3 #14 0x4140eb9f in QApplication::internalNotify () from /usr/lib/qt3/lib/libqt-mt.so.3 #15 0x4140f1e2 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3 #16 0x40f774b5 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4 #17 0x4139e1ae in QETWidget::translateKeyEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #18 0x413a53e4 in QApplication::x11ProcessEvent () from /usr/lib/qt3/lib/libqt-mt.so.3 #19 0x413b91b5 in QEventLoop::processEvents () from /usr/lib/qt3/lib/libqt-mt.so.3 #20 0x41425301 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3 #21 0x41425256 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #22 0x4140dcff in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3 #23 0x0806d9c3 in main ()
Kopete 0.11.1 : probably same bug, only it crashes when you click on section "devices", you even don't get to selecting that dropdown menu.
yes, actually i wanted to report that bug of kopete 0.11.1, but then when it was fixed in kopete 0.11.2 i searched if it is really fixed and found this, reported bug :(
I get the same with the 0.12 branch, r531801.
Created attachment 16594 [details] Possible fix (not tested) More bounds checking needed (a la bug 120117), this time in videodevicepool.cpp. The patch is a "schematic" solution - I haven't tested it (it might not even compile!), and there are a bunch more places in the code where bounds checking could/should also be done. As in bug 120117, I guess the whole code path for the case where no video devices are available could be rethought, but I don't have time to do this - maybe in a few weeks.
Just tested, and it prevents the crash, although CPU usage goes to 100% on entering that dialog - I don't remember whether that happened before.
yes, the problem with 100% CPU usage was there before too :(
it still crashes with the most recent kopete (branch 3.5 of KDE)
Tested recent builds, 3.5.x, 4.0.x and trunk. Couldn't reproduce the bug.