-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
library.timesplayed occasionally get completely reset #10617
Comments
Commented by: ywwg (specifically, this is the library.timesplayed value) |
Commented by: ronso0 It gets reset after you played a track, or do you notice zero plays for tracks you definitely played before (like they're in some history playlist)? Btw, maybe related, I recently noticed tracks with 'Played' checked directly after starting a session. I did reset those tracks manually in the database and didn't notice it again afterwards. |
Commented by: uklotzde The values of timesplayed can be restored in a similar manner like last_played_at, see the migration to version 36:
|
Commented by: uklotzde It looks like last_played_at gets lost, too. No idea why and I won't work on it. |
Commented by: ywwg My entire database of 12 years occasionally gets zeroed out. Luckily I have backups so I was able to restore the values. If the "played" box is checked on startup, it means mixxx crashed and didn't have a chance to reset those values. That SQLITE statement is a partial solution, older versions of mixxx didn't save history playlists. Here's how I restored the values from my backup:
|
Commented by: ywwg I suspect this has to do with crashes, but I'm not sure how. It's possible there's some bad sqlite with something like a "update library set timesplayed=0 where [empty whereclause]". |
Commented by: ywwg Oh I think it might be this change: 0c555663035#diff-1778803df6a6852a1b029d65cfee5c4971c163812cea4838859a31fd335f6d0dR2272 The timing of this PR roughly coincides with when I started getting problems with this. |
Commented by: ywwg If Uwe is not going to work on this my suggestion would be to remove this updateNotPlayed clause since it's highly suspect and I don't understand why it is needed. |
Commented by: ywwg Based on the call stack, removing a history playlist or removing a track from a history playlist could trigger this bug. |
Commented by: uklotzde Probably some special case handling for empty track lists is missing? |
Issue closed with status Fix Committed. |
Reported by: ywwg
Date: 2021-12-17T15:27:22Z
Status: Fix Committed
Importance: High
Launchpad Issue: lp1955159
I have had a problem recently (main branch) where occasionally the play counts get totally reset. I am not sure if this is related to mixxx crashing or some other bug, but this is a significant data-loss situation for me because I use the play counts when picking what to play.
The text was updated successfully, but these errors were encountered: