disable repeated logging of missing coverart image#2805
Conversation
|
2.2.3 is also affected. Should I rebase? |
Yes, just in case we need another 2.2.x release. |
|
I was wrong, with 2.2 there's no log spam. Seems I already had 2.4 installed automatically from the ppa without noticing. So this is ready, except you know of other places where we should fix a similiar issue once I'm at it? |
|
To print the warning but not enter this infinite loop in the first place, can't we do something like loading a 1x1 px dummy image? Or would that replace the db cover art link? |
This could be an option. It should prevent the warning while the dummy image is cached. Maybe then we don't need to suppress the warning. |
|
Would you mind helping me get this done? Either way, if we reenable the warning we should print the location of the affected audio file so users have a chance to fix this. I searched for the image file mentioned in the warning but that path doesn't exist so I had no chance to fix this manually, and I don't want to mess around with the db. |
|
I changed my mind. Considering the upcoming changes in #2524 returning a fake image has unintended side-effects. The new hash would be calculated and stored based on this fake image instead of the actual image. |
|
Alright. Ready to merge then? |
|
LGTM |
fixes high CPU and xruns when a coverart image is missing in file system and the log warning is printed repeatedly.
https://bugs.launchpad.net/mixxx/+bug/1879160
Is the coverart requested repeatedly with every GUI tick?
The missing cover art is now only noticed by ..well, the missing the cover art in the tracks table and elsewhere.
I guess until anyone comes up with a better fix no one will seriously be harmed as users can re-assign the coverart manually if they miss it.
@uklotzde Any other places where this might happen come to mind?