MusicBrainz fallback may cause tight loop/appearance of crash
aw-was-here opened this issue · 1 comments
aw-was-here commented
- TrackPoll requests for next track.
- Source input provides answer.
- Request for more metadata from the metadata processor
- Metadata processor calls MusicBrainz fallback
- Musicbrainz fallback doesn't get a qualifying answer and throws KeyError exception
- TrackPoll catches the exception, throws out the data, assuming it is incomplete/all bad.
- TrackPoll restarts loop to wait for the next track
From a user perspective, it appears the app has crashed because it doesn't think it has the next track. It hasn't, but it is definitely hard to break out of it until the next track is played.
Multiple fixes involved here, I think.
- MB fallback shouldn't throw the KeyError exception.
- The metadata processor should probably be the first line of defense if an exception is thrown.
- TrackPoll shouldn't just toss out the entire result if an exception is caught there; instead it should just continue on
aw-was-here commented
4.0.5