Bug 484718 - Freeze at startup with high count library files
Summary: Freeze at startup with high count library files
Status: ASSIGNED
Alias: None
Product: Elisa
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.08.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-29 16:32 UTC by Nicola B
Modified: 2025-05-27 06:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola B 2024-03-29 16:32:24 UTC
SUMMARY
When launch at startup Elisa still freeze for long time, (if you are on powersave management profile, for very long time) so need to go in performance to "unlock" Elisa. My local library count is only 12k flac file indexed (of my over 70k total flac's) with "native" engine but same happen with "direct read" behavior.
My laptop with Crucial P5 nvme pci 4.0 drive, so  I'm sure isn't bandwidth transfer rate issue lol.

STEPS TO REPRODUCE
1. Get high performance hardware to ensure you are on good speed performance.
2. Set on Elisa library folder with high amount of flac's >12.000 files.
3.  After indexing, restart Elisa.

OBSERVED RESULT
Elisa GUI (buttons and other clickable objects still "hold" for a while, no playback, long or short times depends by your CPU power available.

EXPECTED RESULT
Elisa must start playing audio tracks immediately after launching, index checking behavior must be done in background and not impact on user interface or listen if your library high count files.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.7.10-gentoo-dist (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
My current compile USE flags:  media-sound/elisa-23.08.5:5::gentoo 
 USE="semantic-desktop -debug -handbook -mpris -test -vlc"

Elisa is a great piece of software, I love it, please keeping care!
Comment 1 Bug Janitor Service 2025-05-25 04:16:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/689
Comment 2 george fb 2025-05-27 06:20:05 UTC
Git commit 46cb212926cf14d42834f46307ebf86022bc80bb by George Florea Bănuș.
Committed on 27/05/2025 at 06:13.
Pushed by georgefb into branch 'master'.

MediaPlayListProxyModel: add timer to prevent excesive function/signal calls

remainingTracksDurationChanged and totalTracksDurationChanged are emitted more than 3K times
for a playlist with 1.6K items, this results in lots of calls to
totalTracksDuration and remainingTracksDuration, slowing down start up and other operations

M  +12   -6    src/mediaplaylistproxymodel.cpp

https://invent.kde.org/multimedia/elisa/-/commit/46cb212926cf14d42834f46307ebf86022bc80bb