Bug 479563 - Sometimes Icons-only task bar rearranges icons randomly when trying to manually arrange them
Summary: Sometimes Icons-only task bar rearranges icons randomly when trying to manual...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.91.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-09 05:59 UTC by Doug
Modified: 2024-01-26 22:18 UTC (History)
3 users (show)

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


Attachments
Video of icons rearranging themselves randomly (1010.25 KB, video/webm)
2024-01-09 05:59 UTC, Doug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug 2024-01-09 05:59:58 UTC
Created attachment 164769 [details]
Video of icons rearranging themselves randomly

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Set up Plasma with an Icons-Only Taskbar with several pinned apps
2. Make sure Icons-Only Taskbar sort mode is set to "Manual"
3. Try to arrange icons by dragging them to specific places on the taskbar

OBSERVED RESULT
icons randomly rearrange themselves when icons are dragged and dropped

EXPECTED RESULT
dragged and dropped icons should slot themselves into the IO taskbar without any other rearranging of icon order

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE Neon Unstable
(available in About System)
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-01-18 22:46:15 UTC
I can occasionally reproduce this, but not consistently. Seems to only happen immediately after I restart plasmashell, but only some of the time. What I see in this case is that the icons are visually mis-ordered until dragged once, and then they slot into their correct locations. Of course, while they're mis-ordered, dragging one to move it to its correct place actually drags a different and then *creates* a source of mis-ordering that you then need to go correct.

Is that what you're also seeing, or did I just describe a different bug that I should submit a new bug report for?
Comment 2 Doug 2024-01-19 06:24:44 UTC
(In reply to Nate Graham from comment #1)
> I can occasionally reproduce this, but not consistently. Seems to only
> happen immediately after I restart plasmashell, but only some of the time.
> What I see in this case is that the icons are visually mis-ordered until
> dragged once, and then they slot into their correct locations. Of course,
> while they're mis-ordered, dragging one to move it to its correct place
> actually drags a different and then *creates* a source of mis-ordering that
> you then need to go correct.
> 
> Is that what you're also seeing, or did I just describe a different bug that
> I should submit a new bug report for?

I think that is a separate issue, and seems to happen some of the times, like you are saying.  I've pinned down the one I'm seeing a bit more, and can describe it as this:

1. Start plasma and move an icon in the icons only task manager (iotm), any icon will do, though the problem may be clearer (as you'll see) if you pick an icon towards the right of the iotm and move it somewhere to a new position also on the right of the iotm.
     Result-  A specific number of icons on the left of the iotm move, we'll call the number of visible icon slots that rearrange themselves X, and the portion of the taskbar that is rearranging itself the "Carousel".

2. Move any icon not on the carousel into another position not on the carousel.  That icon should move into it's correct slot.  If it doesn't the first time, then I think that's where the bug you're noting comes in.  That bug has also happened inconsistently for me.
    Result-  All the icons in the Carousel move themselves one slot to the right.  The rightmost icon in the Carousel will disappear, and a new icon for a previously hidden app appears in the leftmost slot of the Carousel.  There appear to be X visible icon slots, for X+1 apps in the Carousel.  You can repeat step 2 many times and the results will be the same, although once I did get it to stop after many repeats.  But I haven't been able to replicate that.

3. Move an item that was not on the Carousel into the Carousel 
    Result- it will slot into the Carousel at the position it belongs at, including the movement of the Carousel, i.e.- one slot to the right of the slot you put it in.  The icon that was in position X originally is now off the Carousel at position X+1, and will not move anymore.  X has not changed.

4.  Move an item off of the carousel.
    Result- Icon will move to the proper slot off of the carousel.  The carousel stays X slots wide, and grabs the icon that was previously in slot X+1 and throws it into motion.

5. Move Carousel items around on the Carousel
   Result- Items move into the proper slot on the Carousel, accounting for the movement of the Carousel each time an icon is moved.

6. Log out and start over at step 1.
Result- X may change, though doesn't always.
Comment 3 Nate Graham 2024-01-19 18:05:06 UTC
Ok, yeah, something else. Unfortunately I can't reproduce your issue.
Comment 4 Doug 2024-01-19 18:17:10 UTC
(In reply to Nate Graham from comment #3)
> Ok, yeah, something else. Unfortunately I can't reproduce your issue.

Should I try deleting that whole panel and start over to see if the issue reappears?  If it doesn't, and nobody else is reporting the issue, maybe just chalk it up to "one of those things"?
Comment 5 Nate Graham 2024-01-23 19:00:55 UTC
Sure, that's always a good troubleshooting step!

Even if it's "one of those things", it's still clearly a bug somewhere that needs to be fixed!
Comment 6 Doug 2024-01-24 04:44:01 UTC
(In reply to Nate Graham from comment #5)
> Sure, that's always a good troubleshooting step!
> 
> Even if it's "one of those things", it's still clearly a bug somewhere that
> needs to be fixed!

Ok done, and the problem is still there.  One more piece to the puzzle- the Carousel is on the side of the iotm that is selected in Behavior > "New Tasks Appear".
Comment 7 Doug 2024-01-26 04:55:42 UTC
(In reply to Doug from comment #6)
> (In reply to Nate Graham from comment #5)
> > Sure, that's always a good troubleshooting step!
> > 
> > Even if it's "one of those things", it's still clearly a bug somewhere that
> > needs to be fixed!
> 
> Ok done, and the problem is still there.  One more piece to the puzzle- the
> Carousel is on the side of the iotm that is selected in Behavior > "New
> Tasks Appear".

I have reinstalled Neon, moving from Unstable to Testing (I wanted to be testing Plasma 6.0 RC1, not Plasma 6.0.80.  I am not having the issue on Plasma 6.0 RC1.
Comment 8 Nate Graham 2024-01-26 22:18:26 UTC
Ok great, thanks! If you can't reproduce it after updating, it's likely that something fixed it.