Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrolling issue with coverart columns visible #13719

Open
wants to merge 14 commits into
base: 2.4
Choose a base branch
from

Conversation

daschuer
Copy link
Member

@daschuer daschuer commented Oct 4, 2024

This finally fixing a long standing and puzzling bug that momentary locks up Mixxx during scrolling the library with cover art enabled. #11128

The issue happens due to a priory inversion on the track cache mutex. During cover art reading the cache is locked to protect this incomplete track, which prevents the main thread checking for pending modifications on cached tracks. Scrolling continues when all covers are read even it is done in worker threads.

The solution implemented here is to allow to bypass the lock in case the current track populated, yet still incomplete track is not of interest. It is implemented by limiting that actual look for the track cache only for aching actions and use a wait condition in case a thread is waiting for completing an incomplete track.

Now scrolling is smooth all the time and together with removing unnecessary painting #13715 also quite fast.

This PR is on top of #13708 which should be merged first.

daschuer and others added 13 commits September 29, 2024 10:39
The ID is the unique ID which is always returned. When finding a track by canonical location, without an ID, verify that the location stored in the database which can contain symlinks is also matching. If not a different track referencing that same file is already cached and we need to return null to not introduce a data race.

This avoids the issue that wrong track can be returned when using drag and drop.
…() by a proper handling of GlobalTrackCacheLookupResult.
…eady a more significant warning about the dupicate situation.
Co-authored-by: ronso0 <[email protected]>
… shall not be stored in library and track file.
…adata. This fixes a priority inversion when scrolling the library mixxxdj#11128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant