Bug 480572 - Elisa causes high CPU usage and higher-than-usual RAM usage while (choppily) scrolling through huge libraries.
Summary: Elisa causes high CPU usage and higher-than-usual RAM usage while (choppily) ...
Status: RESOLVED DUPLICATE of bug 456317
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 24.01.90
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-30 22:58 UTC by Ali
Modified: 2024-11-04 21:03 UTC (History)
0 users

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


Attachments
Generated backtrace of Elisa after it crashes while attempting to close it while it uses system resources. (39.93 KB, text/plain)
2024-01-30 22:58 UTC, Ali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ali 2024-01-30 22:58:16 UTC
Created attachment 165378 [details]
Generated backtrace of Elisa after it crashes while attempting to close it while it uses system resources.

SUMMARY
Elisa causes high CPU usage while quickly scrolling through big libraries through any view, this goes away after scrolling stops in a few seconds.
Elisa also uses more RAM than usual when you quickly scroll through a big library, but this amount doesn't decrease even after you stop scrolling until you exit and reopen Elisa.

STEPS TO REPRODUCE
1. Import a big music library (in my case, it's 7800+ unique files) 
2. Scroll quickly via either a scroll bar or scroll REALLY fast using a mouse wheel in any category that displays your local files (Albums/Artists/Tracks/Genres).
3. Use any resource monitoring tool to check how much resources Elisa is using.

OBSERVED RESULT
Elisa choppily scrolls through the big library, incurring temporarily high CPU usage (up to 85%! possibly higher?) and higher than usual ram usage (I've got it from 400MBs-1GB!~ of RAM now, but it may get higher with a bigger library/the more you quickly scroll.)

EXPECTED RESULT
Elisa handles scrolling through said library smoothly with minimal impact on system resources. (staying around 100MBs~, which is what I usually see before doing this)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40 KDE Plasma (Rawhide)
(available in About System)
KDE Plasma Version: 5.92.0 (Plasma 6.0 RC1)
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
The music library is stored on a USB 3.1 Gen 1 flash drive with up to 150MB/s in read speeds plugged into a USB 3.1 Gen 2 USB C port, I'm not sure if this would be the prime cause of the issue but I unfortunately can not test this as I do not have the storage required to have all these files on my SSD.
 
Below are my hardware specs for reference:
Processors: 4 × Intel® Core™ i5-6267U CPU @ 2.90GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Graphics 550

P.S My current daily Linux Desktop is a Debian 12 Stable KDE install where I often use Elisa, and I have been able to reproduce this bug on the natively packaged version of Elisa (22.12.3) with worse results involving straight crashes when using the scroll bar to scroll quickly.
Comment 1 Ksenia Turek 2024-11-04 21:03:30 UTC
I'm experiencing the exact same issue, also it seems to be a duplicate of bug 456317.

*** This bug has been marked as a duplicate of bug 456317 ***