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
randomize on a directory occasionally duplicates since 2.0 #2057
Comments
Let's find out where it might come from... Do you see any duplicates when you run this?
|
So I have a log file of the history, showing repeats, and a log file of the directory contents. The only curious thing is a metadata directory that my NAS (synology) creates, with a subfolder as the sane name as the file @eadir\Myfilename.flac\some stuff. so for example: /music/@eaDir/Rod Stewart - Maggie May.flac/01APIC_03.jpg I have the full directory and history file if you want to see more. |
Directory contents: https://controlc.com/782db975 PW: your project name, all lower-case Example duplicate: 2021/11/24 03:09:36 Brody Dalle - Rat Race There are loads of others. |
Thanks this indeed seems to be the culprit, your ls contains 1823 files and the output of |
Ok so I am testing with the following script
Do you seen a difference in the numbers when you run the following?
I tried on several directories here and always got the same number. By any chance, do you happen to have symbolic links in your |
Numbers are the same: Directory /music/ |
I noticed that too. Also noticed that random repeats songs at the same time after reloading. Something is wrong. |
I can now reproduce with 10 files with this example with 10 files it is already quite bad:
stay tuned... |
Ok, so I have just pushed a few fixes which handle bad corner-cases of playlists. I cannot anymore reproduce playlist duplicates with my above script. Can you confirm that this is ok for you too now? |
Running build from docker main: Liquidsoap 2.1.0+git@e275bb8 Will report back in the morning, once it's done a few hundred or so tracks. |
So, how is it going? |
270 tracks in, and no duplicates. It's looking like it's resolved. I would have seen quite a few by now. |
Yes! :) Closing for now, feel free to reopen if you encounter some duplicates. |
Bad news, it had quite a few duplicates since I last checked. (17 duplicates) |
I'm testing Sam's script on |
It feels like the changes made so far have improved things, but there are
still issues. My logs suggest not as many duplicates as before,. Bit it's
still not going through all the available track before repeating.
…On Sat, 25 Dec 2021, 19:11 Romain Beauxis, ***@***.***> wrote:
I'm testing Sam's script on v2.0.2-preview with 270 tracks and haven't
seen any issue yet.
—
Reply to this email directly, view it on GitHub
<#2057 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOVZNJFA3YIJTVQ42E7N5CLUSYJMVANCNFSM5H76XD4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Can I assume the fixes made so far for this issue have made it into 2.0.2 release? If so I will switch to that release and report back (I am currently on Liquidsoap 2.1.0+git@e275bb8 but would prefer to stay "on-piste"). Gut feeling is the initial fixes indeed improve the problem, I didn't see any issues initially, but on very large playlists I did eventually see issues. If 2.0.2 has all the fixes so far, I will clear my logs and repeat the tests. If there is any additional logging to enable, please let me know. |
OK, so running 2.0.2 for a few days, and I can already see some tracks duplicating already. Thinking about this some more, i could be possible that I am getting file loading issues, so I don't actually have the sized pool of songs I believe I have. Unfortunately, I can't easily spot that due to this @eadir metadata folder that also being loaded (see early post in the thread), my logs contain many file load errors, and I would be hunting for a needle in a haystack to spot genuine errors, not bogus errors. Is there a way to filter out this @eadir subfolder from my playlist script above? this would allow me to spot file load errors easier. |
Trying to prevent access via Linux directory permissions is a no-go, Liquidsoap just bails out. Error -1: Exception raised: (Sys_error "/music/@eadir: Permission denied") |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ok, I think I found the issue. We were using
which is using OCaml's |
Keen to try this out. I use docker, how would be the best way to get this? (I'm still mighty confused by branching model used). |
On |
Previously, an entire directory of files was played, in random order, without duplicates. It feels there is a regression in this area, as I am seeing occasional duplicate files being played in close order to each other.
My directory has about 2200 songs, and in my log file, even after 300 or so tracks have been streamed, I am seeing several duplicates.
My script:
The text was updated successfully, but these errors were encountered: