Bug 199830 - closing Keyboard & Mouse in system Settings causes crash
Summary: closing Keyboard & Mouse in system Settings causes crash
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: System Settings Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-12 05:09 UTC by Guillermo Belli
Modified: 2009-08-05 09:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillermo Belli 2009-07-12 05:09:36 UTC
Application that crashed: systemsettings
Version of the application: 1.0
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.1
Operating System: Linux 2.6.28-13-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
I was changing some settings in the Keyboard & Mouse section in System Settings, and after closing the dialog it crashed.

 -- Backtrace:
Application: System Settings (systemsettings), signal: Segmentation fault
[KCrash Handler]
#5  0x00007fedd0c6f33b in QWidgetPrivate::hide_helper (this=0x1e13c10) at kernel/qwidget.cpp:6825
#6  0x00007fedd0c763f0 in QWidget::setVisible (this=0x2587410, visible=<value optimized out>) at kernel/qwidget.cpp:6984
#7  0x00007fedd0c59e8b in QStackedLayout::setCurrentIndex (this=0x1bb47e0, index=5) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:477
#8  0x00007fedd1b15cc3 in KPageViewPrivate::_k_pageSelected (this=0x1bb3100, index=@0x1ddc700, previous=@0x1cc3120) at /build/buildd/kde4libs-4.2.95/kdeui/paged/kpageview.cpp:226
#9  0x00007fedd1b16701 in KPageView::qt_metacall (this=0x1bb3e40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdaf8f6c0)
    at /build/buildd/kde4libs-4.2.95/obj-x86_64-linux-gnu/kdeui/kpageview.moc:94
#10 0x00007fedd1b197c6 in KPageWidget::qt_metacall (this=0x1868db0, _c=39351312, _id=31212816, _a=0x0) at /build/buildd/kde4libs-4.2.95/obj-x86_64-linux-gnu/kdeui/kpagewidget.moc:70
#11 0x00007fedd00b8962 in QMetaObject::activate (sender=0x1e949c0, from_signal_index=<value optimized out>, to_signal_index=5, argv=0x0) at kernel/qobject.cpp:3120
#12 0x00007fedd1189a0a in QItemSelectionModel::currentChanged (this=0x1868db0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:153
#13 0x00007fedd1189b54 in QItemSelectionModel::setCurrentIndex (this=0x1e949c0, index=<value optimized out>, command={i = -621217760}) at itemviews/qitemselectionmodel.cpp:1123
#14 0x00007fedd113bfaf in QAbstractItemView::setCurrentIndex (this=0x1bb71e0, index=@0x7fffdaf8f910) at itemviews/qabstractitemview.cpp:892
#15 0x00007fedd113d03b in QAbstractItemView::rowsAboutToBeRemoved (this=0x1bb71e0, parent=@0x7fffdaf8fcd0, start=3, end=3) at itemviews/qabstractitemview.cpp:2988
#16 0x00007fedd11565e1 in QListView::rowsAboutToBeRemoved (this=0x1868db0, parent=@0x2587410, start=31212816, end=0) at itemviews/qlistview.cpp:812
#17 0x00007fedd113deb7 in QAbstractItemView::qt_metacall (this=0x1bb71e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdaf8fc40)
    at .moc/release-shared/moc_qabstractitemview.cpp:228
#18 0x00007fedd12707e5 in QListView::qt_metacall (this=0x1868db0, _c=39351312, _id=31212816, _a=0x0) at .moc/release-shared/moc_qlistview.cpp:105
#19 0x00007fedd1b180dd in KDEPrivate::KPageListView::qt_metacall (this=0x1868db0, _c=39351312, _id=31212816, _a=0x0) at /build/buildd/kde4libs-4.2.95/obj-x86_64-linux-gnu/kdeui/kpageview_p.moc:61
#20 0x00007fedd00b8962 in QMetaObject::activate (sender=0x1bb6f90, from_signal_index=<value optimized out>, to_signal_index=10, argv=0x0) at kernel/qobject.cpp:3120
#21 0x00007fedd00ef2b4 in QAbstractItemModel::rowsAboutToBeRemoved (this=0x1868db0, _t1=<value optimized out>, _t2=3, _t3=3) at .moc/release-shared/moc_qabstractitemmodel.cpp:166
#22 0x00007fedd009aa5c in QAbstractItemModel::beginRemoveRows (this=0x1bb6f90, parent=@0x7fffdaf8fcd0, first=3, last=3) at kernel/qabstractitemmodel.cpp:2113
#23 0x00007fedd1b1b5e0 in KPageWidgetModel::removePage (this=0x1bb6f90, item=<value optimized out>) at /build/buildd/kde4libs-4.2.95/kdeui/paged/kpagewidgetmodel.cpp:478
#24 0x00007fedd2457b69 in ModuleView::closeModules () from /usr/lib/libsystemsettingsview.so
#25 0x00007fedc5f1fca6 in ?? () from /usr/lib/kde4/icon_mode.so
#26 0x00007fedc5f20450 in ?? () from /usr/lib/kde4/icon_mode.so
#27 0x00007fedd00b8962 in QMetaObject::activate (sender=0x1baf240, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x0) at kernel/qobject.cpp:3120
#28 0x00007fedd0c19b87 in QAction::triggered (this=0x1868db0, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#29 0x00007fedd0c1b000 in QAction::activate (this=0x1baf240, event=<value optimized out>) at kernel/qaction.cpp:1160
#30 0x00007fedd0fc798a in QAbstractButtonPrivate::click (this=0x1bd6650) at widgets/qabstractbutton.cpp:525
#31 0x00007fedd0fc7c25 in QAbstractButton::mouseReleaseEvent (this=0x1bca4c0, e=0x7fffdaf90660) at widgets/qabstractbutton.cpp:1115
#32 0x00007fedd109996a in QToolButton::mouseReleaseEvent (this=0x1868db0, e=0x2587410) at widgets/qtoolbutton.cpp:709
#33 0x00007fedd0c70def in QWidget::event (this=0x1bca4c0, event=0x7fffdaf90660) at kernel/qwidget.cpp:7521
#34 0x00007fedd0c1fb9d in QApplicationPrivate::notify_helper (this=0x1868db0, receiver=0x1bca4c0, e=0x7fffdaf90660) at kernel/qapplication.cpp:4057
#35 0x00007fedd0c2854a in QApplication::notify (this=<value optimized out>, receiver=0x1bca4c0, e=0x7fffdaf90660) at kernel/qapplication.cpp:3759
#36 0x00007fedd1ae862b in KApplication::notify (this=0x7fffdaf925a0, receiver=0x1bca4c0, event=0x7fffdaf90660) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:302
#37 0x00007fedd00a2e8c in QCoreApplication::notifyInternal (this=0x7fffdaf925a0, receiver=0x1bca4c0, event=0x7fffdaf90660) at kernel/qcoreapplication.cpp:610
#38 0x00007fedd0c27798 in QApplicationPrivate::sendMouseEvent (receiver=0x1bca4c0, event=0x7fffdaf90660, alienWidget=0x1bca4c0, nativeWidget=0x1b54680, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fedd1681010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#39 0x00007fedd0c91789 in QETWidget::translateMouseEvent (this=0x1b54680, event=<value optimized out>) at kernel/qapplication_x11.cpp:4448
#40 0x00007fedd0c907f5 in QApplication::x11ProcessEvent (this=0x7fffdaf925a0, event=0x7fffdaf921e0) at kernel/qapplication_x11.cpp:3566
#41 0x00007fedd0cb8f84 in x11EventSourceDispatch (s=0x186ce20, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00007fedcbf6d20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0x00007fedcbf708e0 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0x00007fedcbf70a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0x00007fedd00cc5bf in QEventDispatcherGlib::processEvents (this=0x18418f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#46 0x00007fedd0cb870f in QGuiEventDispatcherGlib::processEvents (this=0x1868db0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#47 0x00007fedd00a1732 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -621206320}) at kernel/qeventloop.cpp:149
#48 0x00007fedd00a1afd in QEventLoop::exec (this=0x7fffdaf92510, flags={i = -621206240}) at kernel/qeventloop.cpp:200
#49 0x00007fedd00a3dc4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#50 0x000000000040cb6a in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-07-13 16:08:26 UTC
Do you think you could reproduce the crash ? Thanks
Comment 2 Vsevolod Krishchenko 2009-07-18 16:09:22 UTC
I have reproduced it 4.3 RC 2. My steps are:

1. Open 'System settings'.

2. Select 'Keyboard and mouse'.

3. Select 'Standart keyboard shortcuts'.

4. Press 'Overview' (back) button.

It craches with 100% success on my desktop.
Comment 3 Dario Andres 2009-07-18 16:17:55 UTC
With the steps described at comment 2 I could reproduce the crash but I'm getting a different backtrace, so I think it could be a different crash. I have opened a new report about it: bug 200665.
Thanks
Comment 4 Guillermo Belli 2009-07-18 16:49:32 UTC
I'm now using KDE 4.3 RC2. I could reproduce the bug with those steps, the backtrace seems similar to the original one I reported:

Application: System Settings (systemsettings), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f2a4c84a33b in QWidgetPrivate::hide_helper (this=0x281f9f0) at kernel/qwidget.cpp:6825
#6  0x00007f2a4c8513f0 in QWidget::setVisible (this=0x281e140, visible=<value optimized out>) at kernel/qwidget.cpp:6984
#7  0x00007f2a4c834e8b in QStackedLayout::setCurrentIndex (this=0x265a720, index=2) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:477
#8  0x00007f2a4d6f0cd3 in KPageViewPrivate::_k_pageSelected (this=0x231dbd0, index=@0x280e7f0, previous=@0x24c2f60) at /build/buildd/kde4libs-4.2.96/kdeui/paged/kpageview.cpp:226
#9  0x00007f2a4d6f1711 in KPageView::qt_metacall (this=0x265b470, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff29f14070)
    at /build/buildd/kde4libs-4.2.96/obj-x86_64-linux-gnu/kdeui/kpageview.moc:94
#10 0x00007f2a4d6f47d6 in KPageWidget::qt_metacall (this=0x22aab60, _c=42066240, _id=42317264, _a=0x0) at /build/buildd/kde4libs-4.2.96/obj-x86_64-linux-gnu/kdeui/kpagewidget.moc:70
#11 0x00007f2a4bc92962 in QMetaObject::activate (sender=0x265a570, from_signal_index=<value optimized out>, to_signal_index=5, argv=0x0) at kernel/qobject.cpp:3120
#12 0x00007f2a4cd64a0a in QItemSelectionModel::currentChanged (this=0x22aab60, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:153
#13 0x00007f2a4cd64b54 in QItemSelectionModel::setCurrentIndex (this=0x265a570, index=<value optimized out>, command={i = 703676880}) at itemviews/qitemselectionmodel.cpp:1123
#14 0x00007f2a4cd16faf in QAbstractItemView::setCurrentIndex (this=0x23fc450, index=@0x7fff29f142c0) at itemviews/qabstractitemview.cpp:892
#15 0x00007f2a4cd1803b in QAbstractItemView::rowsAboutToBeRemoved (this=0x23fc450, parent=@0x7fff29f14680, start=0, end=0) at itemviews/qabstractitemview.cpp:2988
#16 0x00007f2a4cd315e1 in QListView::rowsAboutToBeRemoved (this=0x22aab60, parent=@0x281e140, start=42317264, end=0) at itemviews/qlistview.cpp:812
#17 0x00007f2a4cd18eb7 in QAbstractItemView::qt_metacall (this=0x23fc450, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff29f145f0)
    at .moc/release-shared/moc_qabstractitemview.cpp:228
#18 0x00007f2a4ce4b7e5 in QListView::qt_metacall (this=0x22aab60, _c=42066240, _id=42317264, _a=0x0) at .moc/release-shared/moc_qlistview.cpp:105
#19 0x00007f2a4d6f30ed in KDEPrivate::KPageListView::qt_metacall (this=0x22aab60, _c=42066240, _id=42317264, _a=0x0) at /build/buildd/kde4libs-4.2.96/obj-x86_64-linux-gnu/kdeui/kpageview_p.moc:61
#20 0x00007f2a4bc92962 in QMetaObject::activate (sender=0x22f64b0, from_signal_index=<value optimized out>, to_signal_index=10, argv=0x0) at kernel/qobject.cpp:3120
#21 0x00007f2a4bcc92b4 in QAbstractItemModel::rowsAboutToBeRemoved (this=0x22aab60, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:166
#22 0x00007f2a4bc74a5c in QAbstractItemModel::beginRemoveRows (this=0x22f64b0, parent=@0x7fff29f14680, first=0, last=0) at kernel/qabstractitemmodel.cpp:2113
#23 0x00007f2a4d6f65f0 in KPageWidgetModel::removePage (this=0x22f64b0, item=<value optimized out>) at /build/buildd/kde4libs-4.2.96/kdeui/paged/kpagewidgetmodel.cpp:478
#24 0x00007f2a4e032b69 in ModuleView::closeModules () from /usr/lib/libsystemsettingsview.so
#25 0x00007f2a3e6daca6 in ?? () from /usr/lib/kde4/icon_mode.so
#26 0x00007f2a3e6db450 in ?? () from /usr/lib/kde4/icon_mode.so
#27 0x00007f2a4bc92962 in QMetaObject::activate (sender=0x231bdf0, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x0) at kernel/qobject.cpp:3120
#28 0x00007f2a4c7f4b87 in QAction::triggered (this=0x22aab60, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#29 0x00007f2a4c7f6000 in QAction::activate (this=0x231bdf0, event=<value optimized out>) at kernel/qaction.cpp:1160
#30 0x00007f2a4cba298a in QAbstractButtonPrivate::click (this=0x23f8960) at widgets/qabstractbutton.cpp:525
#31 0x00007f2a4cba2c25 in QAbstractButton::mouseReleaseEvent (this=0x23ef680, e=0x7fff29f15010) at widgets/qabstractbutton.cpp:1115
#32 0x00007f2a4cc7496a in QToolButton::mouseReleaseEvent (this=0x22aab60, e=0x281e140) at widgets/qtoolbutton.cpp:709
#33 0x00007f2a4c84bdef in QWidget::event (this=0x23ef680, event=0x7fff29f15010) at kernel/qwidget.cpp:7521
#34 0x00007f2a4c7fab9d in QApplicationPrivate::notify_helper (this=0x22aab60, receiver=0x23ef680, e=0x7fff29f15010) at kernel/qapplication.cpp:4057
#35 0x00007f2a4c80354a in QApplication::notify (this=<value optimized out>, receiver=0x23ef680, e=0x7fff29f15010) at kernel/qapplication.cpp:3759
#36 0x00007f2a4d6c363b in KApplication::notify (this=0x7fff29f16f50, receiver=0x23ef680, event=0x7fff29f15010) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#37 0x00007f2a4bc7ce8c in QCoreApplication::notifyInternal (this=0x7fff29f16f50, receiver=0x23ef680, event=0x7fff29f15010) at kernel/qcoreapplication.cpp:610
#38 0x00007f2a4c802798 in QApplicationPrivate::sendMouseEvent (receiver=0x23ef680, event=0x7fff29f15010, alienWidget=0x23ef680, nativeWidget=0x23b48c0, buttonDown=<value optimized out>,
    lastMouseReceiver=@0x7f2a4d25c010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#39 0x00007f2a4c86c789 in QETWidget::translateMouseEvent (this=0x23b48c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4448
#40 0x00007f2a4c86b7f5 in QApplication::x11ProcessEvent (this=0x7fff29f16f50, event=0x7fff29f16b90) at kernel/qapplication_x11.cpp:3566
#41 0x00007f2a4c893f84 in x11EventSourceDispatch (s=0x22ae900, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00007f2a47b4720a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0x00007f2a47b4a8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0x00007f2a47b4aa7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0x00007f2a4bca65bf in QEventDispatcherGlib::processEvents (this=0x2282b50, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#46 0x00007f2a4c89370f in QGuiEventDispatcherGlib::processEvents (this=0x22aab60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#47 0x00007f2a4bc7b732 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 703688320}) at kernel/qeventloop.cpp:149
#48 0x00007f2a4bc7bafd in QEventLoop::exec (this=0x7fff29f16ec0, flags={i = 703688400}) at kernel/qeventloop.cpp:200
#49 0x00007f2a4bc7ddc4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#50 0x000000000040cb6a in _start ()
Comment 5 Ben Cooksley 2009-07-19 11:36:20 UTC
Very interesting since this only happens with the Standard Keyboard Shortcuts module, and only when using the Icons View and the module hasn't been focused.
Comment 6 Ben Cooksley 2009-07-19 12:31:57 UTC
SVN commit 999137 by bcooksley:

Fix crash for Standard Keyboard Shortcuts with a workaround. Makes closing modules faster anyway.
CCBUG: 199830
CCBUG: 200665

 M  +2 -0      ModuleView.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=999137
Comment 7 Ben Cooksley 2009-07-19 12:34:33 UTC
SVN commit 999146 by bcooksley:

Fix crash for Standard Keyboard Shortcuts with a workaround. Makes closing modules faster anyway
CCBUG: 199830
CCBUG: 200665

 M  +2 -0      ModuleView.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=999146