Bug 451973 - kwin gets stuck in an infinite loop after using Walk Through Desktops shortcut
Summary: kwin gets stuck in an infinite loop after using Walk Through Desktops shortcut
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (other bugs)
Version First Reported In: 5.24.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-27 22:55 UTC by dlh
Modified: 2024-06-28 03:47 UTC (History)
0 users

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


Attachments
kwin gdb backtrace (5.66 KB, text/plain)
2022-03-27 22:55 UTC, dlh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dlh 2022-03-27 22:55:22 UTC
Created attachment 147777 [details]
kwin gdb backtrace

SUMMARY

Using the "Walk Through Desktops" shortcut after deleting a virtual desktop causes kwin to get stuck in an infinite loop.

STEPS TO REPRODUCE

1. Assign a keyboard shortcut for KWin's "Walk Through Desktops" shortcut.
1. The current virtual desktop is "Desktop start".
2. Add a new virtual desktop ("Desktop new"). The current virtual desktop changes to "Desktop new".
3. Remove the "Desktop new" virtual desktop. The current virtual desktop switches back to "Desktop start".
4. Use the "Walk Through Desktops" keyboard shortcut. Sometimes I must use the shortcut a few times before kwin hangs.

OBSERVED RESULT

The system becomes unresponsive. The memory usage of kwin starts to grow, and doesn't stop. kwin seems to get stuck in the do/while loop of KWin::TabBox::ClientModel::createClientList(int, bool).

EXPECTED RESULT

The last recently used virtual desktop should become active.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Graphics Platform: X11

ADDITIONAL INFORMATION

I've attached a backtrace with debug symbols. In the backtrace I started with 3 virtual desktops, and then added and deleted a 4th.
Comment 1 David Edmundson 2024-05-29 10:32:20 UTC
This bug is a crash report that is over a year old without any activity, as our software is always changing, the information in this ticket is unlikely to still be useful.

If this issue is still reproducible in a newer version of kwin (5.27.5 or 6.0) please reopen this ticket with a bumped version number or it will be closed in 30 days.
Comment 2 Bug Janitor Service 2024-06-13 03:46:55 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 3 Bug Janitor Service 2024-06-28 03:47:50 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!