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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
mpv not starting on arm/raspberrypi #265
Comments
I'm not too familiar with the codebase but differentiating these two error messages here would help follow the "stack trace" a bit further: Lines 367 to 370 in 6c8f6b3
Still, reading the error further it is clear the culprit (on the go side of things) is here: Line 76 in 6c8f6b3
Because it reaches past the timeout of 5s for the open of the Line 362 in 6c8f6b3
and it never gets deleted. Therefore the os.Stat in the startup check will always report true. It may work on your machine because of its speed but it appears to fail on a Pi.
Now, if this is the case (even if it's not the thing causing the issue, I believe the current implementation is not doing what it's supposed to) the quickest fix would be to just delete the file after we obtain a path. The more elegant solution would be to find a function which only generates the path without creating the actual file, but with my limited search in the standard library I couldn't find anything suitable. |
I've done some local testing (not on a Pi) and it seems to be as I had thought. If the tmp file is not deleted it the checker assumes a socket has been opened (because it only does a stat to check) and tries to connect. Of course another plausible change could be to actually attempt to connect to it in the socket, but my PR is going to leave most of the code as is and just delete the temporary file, which I believe is what the original implementation was meant to be. |
Previously, a temporary path was not only being generated but also touched, therefore the os.Stat check to verify mpv had started was really doing nothing and just succeeding at the first attempt. Closes sentriz#265
Fix confirmed working on my Pi4 |
from #211 (comment)
@marlop352 馃憢
The text was updated successfully, but these errors were encountered: