Bug 504992

Summary: Range selection acts unpredictably when underlying data is being re-sorted in real-time
Product: [Applications] plasma-systemmonitor Reporter: Alexander Potashev <aspotashev>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: CONFIRMED ---    
Severity: normal CC: ahiemstra, nate, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Potashev 2025-05-29 23:20:24 UTC
SUMMARY
Processes tab: ~25% chance for range selection works by dragging.

STEPS TO REPRODUCE
1. Click LMB on a process in list, hold LMB
2. Drag up/down
3. 

OBSERVED RESULT
At 25% chance, a new range selection starts where under LMB click and extends to the current mouse pointe location.

At 75% chance, the process under LMB click becomes the only process selected; when dragging, selection doesn't change, only a subtle highlight follows the mouse pointer as if I was mouse-hovering without involving LMB.

EXPECTED RESULT
Consistent behavior, no randomness.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.2
Kernel Version: 6.13.11-200.fc41.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.4 ГиБ of RAM
Graphics Processor 1: Intel® HD Graphics 530
Graphics Processor 2: NVIDIA GeForce GTX 960M

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-05-30 18:15:08 UTC
Can reproduce; this is because of the table sorting changing while the selection rectangle is being dragged. If you sort the table by a column whose data doesn't update rapidly (e.g. "Name") you won't see this issue. But you will see it when sorting by CPU, memory usage, or other rapidly-updating sort modes.