Lots of irrelevant thumbnail requests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Music App |
New
|
Undecided
|
Unassigned | ||
thumbnailer (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I have a bunch of songs in the Music directory, some without embedded art, some with. I leave the music app in the song list and kill it. Then:
thumbnailer-admin clear
tail -f ~phablet/
Now I start the music app. I've attached the dbus.log.
Looking through the requests that are issue to the thumbnailer, I would expect to see only thumbnail and album requests, depending on whether a song contains embedded cover art or not. However, there are artist requests interspersed with all the other requests, even though no artist is shown in the current view.
Doing this is not great because the remote server is slow, and the useless artist requests just delay the album requests that need to be shown. In other words, it makes for a worse user experience.
Would it be possible to restrict requests to only what is actually needed for the current view? Things would move considerably faster that way.
This sounds like a duplicate of bug 1544825. Which is where because of all the tabs being loaded, the request for the images on the non-visible tabs are sent to the thumbnailer. I'm not sure where abouts in the stack this should be prevented as the Image object is not visible, should the Image.visible=false be enough to stop the call? Should the image provider (thumbnailer) itself stop it when the image is not visible?
However it should be noted our Image are async, so this won't block the UI while it is waiting for the response.