-
Notifications
You must be signed in to change notification settings - Fork 67
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
Guard against some race conditions. Update osc to upstream. #54
Conversation
…seems to happen when a worker is assigned a job and between this assignment and the worker starting to do the job the video ends.
It's possible that this is just treating the symptoms and there's a better solution to the race conditions out there. I believe it still improves the situation. |
I dunno, I've been running with this PR for a while and haven't had any issues even when skipping tracks / seeking quickly. If there's still a race condition, this vastly improves it over my previous attempt to fix it. EDIT: Literally one minute after posting that, I did get a "thumbnailing failed" error that caused the OSC to disappear. Couldn't get the stdout/stderr dump, unfortunately. |
I think the previous error happened when I moved a file to another directory while it was being thumbnailed in the background. |
Thanks for trying it out! It looks like the error in my first screenshot could still happen: The error occurred when duration became nil in between the check in I've added a commit to fix that for now 6c88e7c. I think we need to try to reduce our calls to retrieve mpv properties (through some sort of caching like what you were doing in your pull) and make sure every property retrieval is checked for nil. I'll try to look into it more later this weekend. |
I created #54 with what I think is a more complete fix for these issues. I haven't had a ton of time to test yet. Hope to do so later in the weekend, but I'm out of time for now. |
I can drop whatever commits you don't want and/or create a separate pull request for the osc update if you want me to.
I was investigating @Jerrk's comment on #47 and while working on that decided to fix the other similar issues I came across.
They all occurred occasionally while fast-forwarding through many short videos.
b82d752:
75c9f65:
66f87ac:
1b67e22:
ccdddb7:
cc:
#46
#19
#47 (comment)