Open mixxxbot opened 2 years ago
Commented by: daschuer Date: 2017-12-03T20:20:48Z
The rejected PR for the cover hash might be related. https://github.com/mixxxdj/mixxx/pull/996
Commented by: uklotzde Date: 2017-12-04T07:27:44Z
Both issues are unrelated, although targeting overlapping parts of the code.
Commented by: uklotzde Date: 2017-12-07T23:45:27Z
I won't be able to complete this in time. It turned out that the caching and hashing needs to be changed to implement this properly. Maybe has more dependencies with https://github.com/mixxxdj/mixxx/pull/996 than expected.
Reported by: uklotzde Date: 2017-12-03T13:53:13Z Status: Triaged Importance: Medium Launchpad Issue: lp1735996
Cover art for the same track might be requested from UI components like widgets in the library, the cover art display on the deck and the spinnies almost concurrently. The cover art cache accepts multiple requests for the same track from different requestores if the cover is not cached already, although all requests reference the same file. Why? Because the requestId contains both the requestor and the cover hash.
As a consequence multiple subsequent read operations for the same cover art image are performed. For embedded cover art this becomes obvious from the logs, because a SoundSourceProxy is created and embedded cover art is parsed repeatedly from the audio file, e.g. when loading a track into a deck.
Pending requests for the same cover hash need to be combined instead of creating new requests.