-
-
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
Removing a track from history list set all play counters to 0 #12256
Comments
Sorry, I've crawled the bug reports before of course, but haven't found anything similar to my issue. But #12046 looks indeed like something related to mine. Glad that I could help you. |
The query |
I'll fix it. Looks like a closing brace in the SQL statement is misplaced. |
The bug only affects the code path for SQLite >= 3.33.0 that makes use of UPDATE-FROM. |
That would likely explain why the devs on ubuntu 20.04. did not experience this issue.
Thank hugely you for identifying and fixing the problem. Please ping me in your fix, I will review it ASAP. |
As a bonus I have added the SQL statement that restores the lost data: 0083a21 Could also be executed as part of a database migration or triggered on demand. |
Did a quick test and can confirm, that 0083a21 has fixed this issue (at least for me). 👍 The SQLite version that Gentoo 17.1 offers looks quite recent: I think all most recent distributions are using SQLite >3.33.0 for now (except Ubuntu Focal as mentioned above). |
fixed in 2.4. Thank you uklotzde for the fix and thank you marc for the detailed bug report. |
Bug Description
Yesterday I fell over a nasty bug in Mixxx 2.4.0 using e3e0f6e, but it also happened a few weeks ago. Unfortunately I didn't know what was the cause for it so I did some investigations today.
Track list looks like this ("Played" counter is set to 1 or more):

Then I go to the "History" crate and remove a track from the list:

After restarting Mixxx, all "Played" counters are now set to 0 (funny: the track I removed from the list seems to be OK and the counter has still 3 plays):

Luckily I had a backup of "mixxxdb.sqlite" file with me, so I could quickly restore all the settings again (keep this in mind if you try to reproduce this issue :-) )
Hope this helps for digging into it to confirm this issue.
Kind regards,
Marco
Version
2.4.0
OS
Gentoo Linux
The text was updated successfully, but these errors were encountered: