Bug 346656 - System Settings crash upon adding KMenuEdit hotkeys
Summary: System Settings crash upon adding KMenuEdit hotkeys
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: 5.2.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords: drkonqi
: 398594 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-04-25 17:35 UTC by Teunis
Modified: 2020-11-29 00:57 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.03 KB, patch)
2020-03-01 01:04 UTC, annunah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Teunis 2015-04-25 17:35:20 UTC
Application: systemsettings5 (5.2.2)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-15-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
Opening this section 'Created Shortcuts' is extremely slow.
After setting one up and clicking Apply there is another hughe wait and regularly a crash. Similar happens when trying to add such a hotkey through the Kicker menu editor, it is likely to crash. If no crash there is still a good chance the new keys are not retained. This is a fresh install of the new release.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Systeeminstellingen (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd04abc5780 (LWP 1968))]

Thread 2 (Thread 0x7fd0383cd700 (LWP 1969)):
#0  0x00007fd04732e8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fd045648b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fd04564a64f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fd03b186099 in QXcbEventReader::run (this=0x1454940) at qxcbconnection.cpp:1105
#4  0x00007fd0479afb0e in QThreadPrivate::start (arg=0x1454940) at thread/qthread_unix.cpp:337
#5  0x00007fd0445626aa in start_thread (arg=0x7fd0383cd700) at pthread_create.c:333
#6  0x00007fd047339eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fd04abc5780 (LWP 1968)):
[KCrash Handler]
#6  KHotKeys::ActionDataBase::parent (this=this@entry=0x18) at ../../libkhotkeysprivate/action_data/action_data_base.cpp:125
#7  0x00007fd029df04cf in KHotkeysModel::parent (this=0x1a2f3b0, index=...) at ../../kcm_hotkeys/hotkeys_model.cpp:576
#8  0x00007fd047b8e8f3 in parent (this=<optimized out>) at itemmodels/qabstractitemmodel.h:480
#9  QPersistentModelIndex::parent (this=this@entry=0x19e5b48) at itemmodels/qabstractitemmodel.cpp:365
#10 0x00007fd047ba86ad in QItemSelectionRange::isValid (this=0x19e5b40) at itemmodels/qitemselectionmodel.h:123
#11 0x00007fd047ba2e76 in QItemSelection::merge (this=this@entry=0x7ffffef19ec0, other=..., command=...) at itemmodels/qitemselectionmodel.cpp:505
#12 0x00007fd047ba5afa in QItemSelectionModel::select (this=0x19f0670, selection=..., command=...) at itemmodels/qitemselectionmodel.cpp:1227
#13 0x00007fd047ba02cc in QItemSelectionModel::select (this=this@entry=0x19f0670, index=..., command=command@entry=...) at itemmodels/qitemselectionmodel.cpp:1127
#14 0x00007fd047ba04db in QItemSelectionModel::setCurrentIndex (this=0x19f0670, index=..., command=...) at itemmodels/qitemselectionmodel.cpp:1323
#15 0x00007fd048c3b023 in QAbstractItemView::setCurrentIndex (this=0x1913af0, index=...) at itemviews/qabstractitemview.cpp:1060
#16 0x00007fd029de9571 in KCMHotkeys::showGlobalSettings (this=0x19c23e0) at ../../kcm_hotkeys/kcm_hotkeys.cpp:237
#17 0x00007fd047c1e9c9 in QMetaObject::activate (sender=sender@entry=0x1a2f3b0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=17, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#18 0x00007fd047c1f057 in QMetaObject::activate (sender=sender@entry=0x1a2f3b0, m=m@entry=0x7fd047e47a40 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=17, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#19 0x00007fd047c9c633 in QAbstractItemModel::modelAboutToBeReset (this=this@entry=0x1a2f3b0) at .moc/moc_qabstractitemmodel.cpp:476
#20 0x00007fd047b8f67b in QAbstractItemModel::beginResetModel (this=this@entry=0x1a2f3b0) at itemmodels/qabstractitemmodel.cpp:3125
#21 0x00007fd029defd5e in reset (this=0x1a2f3b0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:368
#22 KHotkeysModel::load (this=0x1a2f3b0) at ../../kcm_hotkeys/hotkeys_model.cpp:476
#23 0x00007fd029deadc2 in KCMHotkeysPrivate::save (this=0x19c2f90) at ../../kcm_hotkeys/kcm_hotkeys.cpp:360
#24 0x00007fd029deb4dd in KCMHotkeys::save (this=0x19c23e0) at ../../kcm_hotkeys/kcm_hotkeys.cpp:257
#25 0x00007fd04a742077 in KCModuleProxy::save (this=<optimized out>) at ../../src/kcmoduleproxy.cpp:272
#26 0x00007fd04a972c13 in ModuleView::moduleSave (this=<optimized out>, module=<optimized out>) at ../../core/ModuleView.cpp:295
#27 0x00007fd04a97392e in ModuleView::moduleSave (this=<optimized out>) at ../../core/ModuleView.cpp:286
#28 0x00007fd04a976585 in ModuleView::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffffef1a430) at moc_ModuleView.cpp:120
#29 0x00007fd047c1e9c9 in QMetaObject::activate (sender=sender@entry=0x17d9f20, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffffef1a430) at kernel/qobject.cpp:3716
#30 0x00007fd047c1f057 in QMetaObject::activate (sender=sender@entry=0x17d9f20, m=m@entry=0x7fd048f13a60 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffffef1a430) at kernel/qobject.cpp:3582
#31 0x00007fd048d88012 in QAbstractButton::clicked (this=this@entry=0x17d9f20, _t1=false) at .moc/moc_qabstractbutton.cpp:298
#32 0x00007fd048ad5675 in QAbstractButtonPrivate::emitClicked (this=0x17d9f60) at widgets/qabstractbutton.cpp:534
#33 0x00007fd048ad6299 in QAbstractButtonPrivate::click (this=0x17d9f60) at widgets/qabstractbutton.cpp:527
#34 0x00007fd048ad6454 in QAbstractButton::mouseReleaseEvent (this=0x17d9f20, e=0x7ffffef1a8f0) at widgets/qabstractbutton.cpp:1132
#35 0x00007fd048a1d1e8 in QWidget::event (this=0x17d9f20, event=0x7ffffef1a8f0) at kernel/qwidget.cpp:9022
#36 0x00007fd0489d9b2c in QApplicationPrivate::notify_helper (this=0x1426550, receiver=0x17d9f20, e=0x7ffffef1a8f0) at kernel/qapplication.cpp:3720
#37 0x00007fd0489df8eb in QApplication::notify (this=0x7ffffef1a630, receiver=0x7ffffef1a650, e=0x7ffffef1a8f0) at kernel/qapplication.cpp:3280
#38 0x00007fd047bedc2b in QCoreApplication::notifyInternal (this=0x7ffffef1b1c0, receiver=receiver@entry=0x17d9f20, event=event@entry=0x7ffffef1a8f0) at kernel/qcoreapplication.cpp:935
#39 0x00007fd0489de3da in sendSpontaneousEvent (event=0x7ffffef1a8f0, receiver=0x17d9f20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#40 QApplicationPrivate::sendMouseEvent (receiver=0x17d9f20, event=0x7ffffef1a8f0, alienWidget=0x17d9f20, nativeWidget=0x14bb460, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2751
#41 0x00007fd048a35cc0 in QWidgetWindow::handleMouseEvent (this=0x167dd60, event=0x7ffffef1ad00) at kernel/qwidgetwindow.cpp:543
#42 0x00007fd048a37e33 in QWidgetWindow::event (this=0x167dd60, event=0x7ffffef1ad00) at kernel/qwidgetwindow.cpp:210
#43 0x00007fd0489d9b2c in QApplicationPrivate::notify_helper (this=0x1426550, receiver=0x167dd60, e=0x7ffffef1ad00) at kernel/qapplication.cpp:3720
#44 0x00007fd0489df000 in QApplication::notify (this=0x7ffffef1b1c0, receiver=0x167dd60, e=0x7ffffef1ad00) at kernel/qapplication.cpp:3503
#45 0x00007fd047bedc2b in QCoreApplication::notifyInternal (this=0x7ffffef1b1c0, receiver=0x167dd60, event=0x7ffffef1ad00) at kernel/qcoreapplication.cpp:935
#46 0x00007fd04841cf82 in sendSpontaneousEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#47 QGuiApplicationPrivate::processMouseEvent (e=0x1a4f3c0) at kernel/qguiapplication.cpp:1774
#48 0x00007fd04841eb45 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x1a4f3c0) at kernel/qguiapplication.cpp:1576
#49 0x00007fd04840334f in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:572
#50 0x00007fd03b1b0590 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70
#51 0x00007fd044043c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007fd044043f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#53 0x00007fd044043fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007fd047c46c57 in QEventDispatcherGlib::processEvents (this=0x14aad30, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#55 0x00007fd047beb3e2 in QEventLoop::exec (this=this@entry=0x7ffffef1b0a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#56 0x00007fd047bf302c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#57 0x00007fd04841431c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#58 0x00007fd0489d57a5 in QApplication::exec () at kernel/qapplication.cpp:2956
#59 0x000000000040eebc in main (argc=1, argv=<optimized out>) at ../../app/main.cpp:54

Reported using DrKonqi
Comment 1 Teunis 2015-04-28 13:16:50 UTC
I can add it happens with nVidia drivers version 340 & 346, there is no problem using version 304 or Nouveau.
The problem manifests itself by no longer being able to use the previously while on Nouveau made Global shortcuts/hot keys, when logging in with the above mentioned nVidia drivers the shortcuts will work for about a minute and then fail. Subsequent editing of them often results in a crash of System Settings. Also, shutting down now becomes an exercise in patience, between clicking on the shut down or restart button and the system actually going down is a wait of some two minutes.
I have done a fresh install and the same happens.
Comment 2 Pham 2015-04-30 16:01:21 UTC
This bug affects me as well.  I am using Nvidia binary driver 346 b/c the Nouvea driver sux; it can not display an external monitor properly.  

I am using Kubutnu 15.04, and that I do not see the desktop panel once I've logged in to the desktop.  Here is the output of dmesg, and it shows that probably a kwin process was dying.

The error is:

[  777.740929] QXcbEventReader[3966]: segfault at 7f1ff1d68099 ip 00007f1ff1d68099 sp 00007f1fe4200e60 error 14
Comment 3 Christoph Feck 2018-10-01 14:39:31 UTC
*** Bug 398594 has been marked as a duplicate of this bug. ***
Comment 4 annunah 2020-03-01 01:04:54 UTC
Created attachment 126508 [details]
New crash information added by DrKonqi

gwenview (19.12.2) using Qt 5.12.4

- What I was doing when the application crashed:

Thread 1 (Thread 0x7fe92124ff80 (LWP 27698)):
[KCrash Handler]
#6  0x00007fe9281dbee6 in QListView::scrollTo(QModelIndex const&, QAbstractItemView::ScrollHint) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007fe9281a37e3 in QAbstractItemView::currentChanged(QModelIndex const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007fe9281e32a6 in QListView::currentChanged(QModelIndex const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007fe9281a2813 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fe9273253f8 in QMetaObject::activate(QObject*, int, int, void**) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

-- Backtrace (Reduced):
#6  0x00007fe9281dbee6 in QListView::scrollTo(QModelIndex const&, QAbstractItemView::ScrollHint) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007fe9281a37e3 in QAbstractItemView::currentChanged(QModelIndex const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007fe9281e32a6 in QListView::currentChanged(QModelIndex const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007fe9281a2813 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#11 0x00007fe9272b5127 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
Comment 5 Justin Zobel 2020-11-27 00:45:42 UTC
(In reply to annunah from comment #4)
> Created attachment 126508 [details]
> New crash information added by DrKonqi
> 
> gwenview (19.12.2) using Qt 5.12.4
> 
> - What I was doing when the application crashed:
> 
> Thread 1 (Thread 0x7fe92124ff80 (LWP 27698)):
> [KCrash Handler]
> #6  0x00007fe9281dbee6 in QListView::scrollTo(QModelIndex const&,
> QAbstractItemView::ScrollHint) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #7  0x00007fe9281a37e3 in QAbstractItemView::currentChanged(QModelIndex
> const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #8  0x00007fe9281e32a6 in QListView::currentChanged(QModelIndex const&,
> QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #9  0x00007fe9281a2813 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #10 0x00007fe9273253f8 in QMetaObject::activate(QObject*, int, int, void**)
> () at /lib/x86_64-linux-gnu/libQt5Core.so.5
> 
> -- Backtrace (Reduced):
> #6  0x00007fe9281dbee6 in QListView::scrollTo(QModelIndex const&,
> QAbstractItemView::ScrollHint) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #7  0x00007fe9281a37e3 in QAbstractItemView::currentChanged(QModelIndex
> const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #8  0x00007fe9281e32a6 in QListView::currentChanged(QModelIndex const&,
> QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #9  0x00007fe9281a2813 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> [...]
> #11 0x00007fe9272b5127 in QItemSelectionModel::currentChanged(QModelIndex
> const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

That's a gwenview crashlog, this bug is for systemsettings.

Teunis, I've tried this but am unable to reproduce this crash.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 6 Teunis 2020-11-27 12:02:52 UTC
Op 27-11-2020 om 01:45 schreef Justin Zobel:
> https://bugs.kde.org/show_bug.cgi?id=346656
>
> Justin Zobel <justin.zobel@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>                   CC|                            |justin.zobel@gmail.com
>               Status|REPORTED                    |NEEDSINFO
>
> --- Comment #5 from Justin Zobel <justin.zobel@gmail.com> ---
> (In reply to annunah from comment #4)
>> Created attachment 126508 [details]
>> New crash information added by DrKonqi
>>
>> gwenview (19.12.2) using Qt 5.12.4
>>
>> - What I was doing when the application crashed:
>>
>> Thread 1 (Thread 0x7fe92124ff80 (LWP 27698)):
>> [KCrash Handler]
>> #6  0x00007fe9281dbee6 in QListView::scrollTo(QModelIndex const&,
>> QAbstractItemView::ScrollHint) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #7  0x00007fe9281a37e3 in QAbstractItemView::currentChanged(QModelIndex
>> const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #8  0x00007fe9281e32a6 in QListView::currentChanged(QModelIndex const&,
>> QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #9  0x00007fe9281a2813 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #10 0x00007fe9273253f8 in QMetaObject::activate(QObject*, int, int, void**)
>> () at /lib/x86_64-linux-gnu/libQt5Core.so.5
>>
>> -- Backtrace (Reduced):
>> #6  0x00007fe9281dbee6 in QListView::scrollTo(QModelIndex const&,
>> QAbstractItemView::ScrollHint) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #7  0x00007fe9281a37e3 in QAbstractItemView::currentChanged(QModelIndex
>> const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #8  0x00007fe9281e32a6 in QListView::currentChanged(QModelIndex const&,
>> QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> #9  0x00007fe9281a2813 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
>> [...]
>> #11 0x00007fe9272b5127 in QItemSelectionModel::currentChanged(QModelIndex
>> const&, QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
> That's a gwenview crashlog, this bug is for systemsettings.
>
> Teunis, I've tried this but am unable to reproduce this crash.
>
> Can you please test and confirm if this issue is still occurring or if this bug
> report can be marked as resolved. I've set the bug status to "needsinfo"
> pending your response, please change back to "reported" or "resolved" when you
> respond, thanks.
>

Thanks Justin.
I am not sure what date this persistent crash happened and was reported 
but presently (QT 5.12.8, Gwenview 19.12.3) there is no problem.

At the time the remedy was to purge Gwenview and reinstall.