Bug 493427

Summary: Inconsistent behavior (and crash on Wayland) trying to reorder windows in application group in icon-only task manager, with two screens
Product: [Plasma] plasmashell Reporter: ariasuni <aria>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: akselmo, nate, qydwhotmail
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: `coredumpctl info` of the latest plasmashell crash

Description ariasuni 2024-09-21 11:18:57 UTC
Created attachment 173930 [details]
`coredumpctl info` of the latest plasmashell crash

SUMMARY
I have an icon-only task manager set to group by program name. If I have more than one window of a program open at a time and that I try to reorder them, first it works very badly (the window isn’t dragged at the correct place, or isn’t moved at all), and secondly it tends to crash plasmashell under obscure conditions but guaranteed to happen after trying a few reorders (< 10) or when closing the window list afterwards.

Since I tend to like to have my two or three Firefox windows in the same order and that Plasma doesn’t remember them, I try to reorder them everyday before starting to use my computer and very frequently hit this bug.

STEPS TO REPRODUCE
1. Set up a panel with an icon-only task manager
2. Open several windows of the same application
3. Click on the application icon in the task manager, and try to reorder the windows until it crashes

OBSERVED RESULT
Reordering of windows behaves weirdly, doesn’t work every time and often crash Plasma.

EXPECTED RESULT
Reordering of windows behaves correctly, consistently and doesn’t crash Plasma.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I don’t remember when it started but it started somewhere around the beginning of Plasma 6 or when I switched to Wayland.

I have coredumps but they’re too large to upload here (~20M).
Comment 1 ariasuni 2024-09-21 11:32:37 UTC
I just tested it on X11 and the inconsistent, weird reordering behavior is there but it doesn’t crash plasmashell, so it’s very well possible that it’s two different bugs.
Comment 2 Nate Graham 2024-09-23 15:53:10 UTC
Kinda looks like Bug 488713, but that's about KWin, not Plasma.

You don't need to upload the whole coredump, just a backtrace of the crashing thread, See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
Comment 3 ariasuni 2024-09-24 09:00:09 UTC
I think there are totally different bugs.

My backtrace is different (I posted it as attachment but maybe you prefer if it was posted inline?).

Also, I noticed it only happens when I’m using a second screen, otherwise the reordering is perfectly smooth and behaving 100% as expected and without crashes it seems.

So to summarize:
- Working perfectly well with one screen
- Weird reordering behavior with two screens on both X11 and Wayland
- Crashes with two screen on Wayland
Comment 4 Akseli Lahtinen 2024-09-24 09:39:10 UTC Comment hidden (spam)
Comment 5 Akseli Lahtinen 2024-09-24 09:39:41 UTC
Oh I am stupid, I misread your message, disregard the comment.
Comment 6 ariasuni 2024-10-31 18:05:17 UTC
At least part of my problem will be fixed by https://bugreports.qt.io/browse/QTBUG-127821
Comment 7 ariasuni 2024-12-04 13:44:28 UTC
Hum, doesn’t seem to change anything with Qt 6.8.1…

Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 8 Nate Graham 2025-04-16 18:59:32 UTC
I'm not able to reproduce this on current git master with Qt 6.8.2. Can you reproduce it in Plasma 6.3.5 or later, with Qt 6.8.2 or later?
Comment 9 Bug Janitor Service 2025-05-01 03:47:35 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2025-05-16 03:46:59 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.