Summary: | kwin crash when clicking kickoff widget ("K menu") | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Jan Binder <wheel> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.11 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-workspace/909efd0ae2d0019b886ddc6e56cbaf8c69496e7e | Version Fixed In: | 4.11 |
Sentry Crash Report: | |||
Attachments: | Possible patch |
Description
Jan Binder
2013-03-01 12:15:30 UTC
Ok, this can happen Ok, this happens once per freshly added kickoff widget. When I click the widget, the plasma-style kickoff menu is shown for a second or two and then kwin crashes. After that, the widget does not work any more, as in "the menu does not show when clicking". Sorry for the bug report editing spam. chain.last() without checking whether the chain is empty. Yeah not surprising that assert. I assume you can easily try a patch? Created attachment 77665 [details]
Possible patch
Please give that one a try
The attached patch fixes the crash for me. Git commit 909efd0ae2d0019b886ddc6e56cbaf8c69496e7e by Michael Jansen. Committed on 02/03/2013 at 12:10. Pushed by mjansen into branch 'master'. Don't crash if the focus chain is empty() M +1 -1 kwin/focuschain.cpp http://commits.kde.org/kde-workspace/909efd0ae2d0019b886ddc6e56cbaf8c69496e7e diff --git a/kwin/focuschain.cpp b/kwin/focuschain.cpp index 73ab467..1687ec8 100644 --- a/kwin/focuschain.cpp +++ b/kwin/focuschain.cpp @@ -149,7 +149,7 @@ void FocusChain::insertClientIntoChain(Client *client, QList< Client * >& chain) return; } if (m_activeClient && m_activeClient != client && - chain.last() == m_activeClient) { + !chain.empty() && chain.last() == m_activeClient) { // Add it after the active client chain.insert(chain.size() - 1, client); } else { |