Bug 304339

Summary: Kwin crashes when trying to assign window shortcut
Product: [Unmaintained] kdelibs Reporter: Aleh <aleh>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: 1lukas1, kwin-bugs-null, travneff
Priority: NOR    
Version First Reported In: 4.8.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Aleh 2012-07-31 15:02:12 UTC
Application: kwin (4.8.4 (4.8.4) "release 513")
KDE Platform Version: 4.8.4 (4.8.4) "release 513"
Qt Version: 4.8.2
Operating System: Linux 3.5.0-35-desktop i686
Distribution: "openSUSE 12.1 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:
Kwin always crashes when i press "caps lock" during assignment window shortcut. I wasn't going to use "caps lock", that was miss. Reproduced every time. Also i have "caps lock" as keyboard layot switcher.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb779f710 (LWP 13579))]

Thread 2 (Thread 0xab7c5b70 (LWP 13597)):
#0  0x41dcb782 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x41d015cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0x460b1269 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x461b14a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#3  0x460b12af in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x461b14a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#4  0x41dc7a7d in start_thread () from /lib/libpthread.so.0
#5  0x41cf3abe in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb779f710 (LWP 13579)):
[KCrash Handler]
#6  QAbstractButton::setDown (this=0x8ba7d48, down=false) at widgets/qabstractbutton.cpp:789
#7  0x418b9e6e in KKeySequenceWidgetPrivate::doneRecording (this=0x8af14c8, validate=true) at /usr/src/debug/kdelibs-4.8.4/kdeui/widgets/kkeysequencewidget.cpp:460
#8  0x418ba189 in cancelRecording (this=0x8af14c8) at /usr/src/debug/kdelibs-4.8.4/kdeui/widgets/kkeysequencewidget.cpp:111
#9  KKeySequenceButton::keyPressEvent (this=0x8ba7d48, e=0xbf94eb84) at /usr/src/debug/kdelibs-4.8.4/kdeui/widgets/kkeysequencewidget.cpp:711
#10 0x427c4f27 in QWidget::event (this=0x8ba7d48, event=0xbf94eb84) at kernel/qwidget.cpp:8406
#11 0x42b960f9 in QAbstractButton::event (this=0x8ba7d48, e=0xbf94eb84) at widgets/qabstractbutton.cpp:1082
#12 0x42c3a558 in QPushButton::event (this=0x8ba7d48, e=0xbf94eb84) at widgets/qpushbutton.cpp:683
#13 0x418b707a in KKeySequenceButton::event (this=0x8ba7d48, e=0xbf94eb84) at /usr/src/debug/kdelibs-4.8.4/kdeui/widgets/kkeysequencewidget.cpp:697
#14 0x4276ac64 in notify_helper (e=0xbf94eb84, receiver=0x8ba7d48, this=0x87ae610) at kernel/qapplication.cpp:4551
#15 QApplicationPrivate::notify_helper (this=0x87ae610, receiver=0x8ba7d48, e=0xbf94eb84) at kernel/qapplication.cpp:4523
#16 0x42770821 in QApplication::notify (this=0xbf94ea14, receiver=0x8ba7d48, e=0xbf94eb84) at kernel/qapplication.cpp:3992
#17 0x417eefb1 in KApplication::notify (this=0xbf94f408, receiver=0x8ba7d48, event=0xbf94eb84) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kapplication.cpp:311
#18 0x4426207f in notify (e=0xbf94eb84, o=0x8ba7d48, this=0xbf94f408) at /usr/src/debug/kde-workspace-4.8.4/kwin/main.cpp:368
#19 KWin::Application::notify (this=0xbf94f408, o=0x8ba7d48, e=0xbf94eb84) at /usr/src/debug/kde-workspace-4.8.4/kwin/main.cpp:364
#20 0x4ff613ce in QCoreApplication::notifyInternal (this=0xbf94f408, receiver=0x8ba7d48, event=0xbf94eb84) at kernel/qcoreapplication.cpp:915
#21 0x42768d7d in sendSpontaneousEvent (event=0xbf94eb84, receiver=0x8ba7d48) at ../../src/corelib/kernel/qcoreapplication.h:234
#22 qt_sendSpontaneousEvent (receiver=0x8ba7d48, event=0xbf94eb84) at kernel/qapplication.cpp:5549
#23 0x4281a610 in QKeyMapper::sendKeyEvent (keyWidget=0x8ba7d48, grab=false, type=QEvent::KeyPress, code=-1, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=145691868, nativeVirtualKey=145691868, nativeModifiers=145691868) at kernel/qkeymapper_x11.cpp:1866
#24 0x4281aaad in QKeyMapperPrivate::translateKeyEvent (this=0x87d4020, keyWidget=0x8ba7d48, event=0xbf94f1bc, grab=false) at kernel/qkeymapper_x11.cpp:1836
#25 0x427f3555 in QApplication::x11ProcessEvent (this=0xbf94f408, event=0xbf94f1bc) at kernel/qapplication_x11.cpp:3529
#26 0x4281fc58 in QEventDispatcherX11::processEvents (this=0x876e388, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#27 0x4ff5fc4d in QEventLoop::processEvents (this=0xbf94f344, flags=...) at kernel/qeventloop.cpp:149
#28 0x4ff5fee9 in QEventLoop::exec (this=0xbf94f344, flags=...) at kernel/qeventloop.cpp:204
#29 0x4ff6542a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#30 0x42768b04 in QApplication::exec () at kernel/qapplication.cpp:3812
#31 0x44265045 in kdemain (argc=3, argv=0xbf94f6b4) at /usr/src/debug/kde-workspace-4.8.4/kwin/main.cpp:541
#32 0x0804852b in main (argc=3, argv=0xbf94f6b4) at /usr/src/debug/kde-workspace-4.8.4/build/kwin/kwin_dummy.cpp:3

This bug may be a duplicate of or related to bug 250191.

Possible duplicates by query: bug 250191.

Reported using DrKonqi
Comment 1 Martin Flöser 2012-07-31 15:08:58 UTC
looks like a bug in the widget -> reassign to kdelibs
Comment 2 Thomas Lübking 2012-07-31 15:21:40 UTC
This is a dupe of bug #250191 and i'm pretty sure the issue is that "shift" is used to alter the keyboard layout and that withdraws (and deletes) the popup type input window and with it the button while the button is doing a sync exec (ie. it's quite similar to the QDialog::exec()) issue.

-> Solution: guard the button with a Q*Pointer around the recording.
Comment 3 Thomas Lübking 2012-07-31 15:21:57 UTC
*** Bug 250191 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Lübking 2013-03-29 13:53:56 UTC
*** Bug 317537 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Crouthamel 2018-10-29 22:33:21 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2018-11-13 14:39:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2018-11-29 09:41:32 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!