Hey, I have this error. It happens when I am in the middle of repeating words, I press a key to move forward and then Anki hangs and begins to think. I need to force close it manually, terminate the app.
When I restart it, I have a constant mpv timed out error.
Is this mpv even needed? How to get rid off it? It makes only issues leaving it be?
The problem occurs in the latest beta and the last stable version before beta
But the error was still present so I downloaded mpv separately (the newest one possible and a one dll file from github), replaced both files but the problem still persisted.
So my workaround was to remove all audio from any deck and to kill mpv.exe process in the task manager.
I looked at BlackBeansā advised thread but it is way too much hassle with it. No common user should be forced for tricks like advised in the thread
Have you tried the first, easy workaround proposed in that thread, that is, download mplayer, go in the Anki directory, drop mplayer.exe there are remove the existing mpv.exe?
This is likely happens because Anki is waiting for mpv process to be terminated after it got suspended/unresponsive for some unknown reason (to make another attempt to play the audio file after restarting mpv).
And as you said, to avoid āmpv timed out, restartingā after opening Anki again, mpv.exe process will need to be closed in the task manager after force closing Anki.
It will take some time and might go nowhere, but to better understand whatās going on, I think, itāll be necessary to run Anki from Python. Itās similar to the one before and will look something like this.
Just in case (or to be aware of it), it might be better to uncheck āQuick Edit Modeā.
Edit or replace C:\anki-venv\Lib\site-packages\aqt\mpv.py (for example, with Visual Studio Code) to enable ādebugā mode for mpv and add a few print statements if ERROR_BROKEN_PIPE.
Run Anki from Python and review a card with sound.
If everything goes well, Anki will tell mpv to play the audio file by sending >>> {"command": ["loadfile" ... and will receive <<< {"data":{"playlist_entry_id":1},"request_id":0,"error":"success"}.
These suggestions are not a solution, they are so we can figure out what is going wrong. The issue does not happen on developer machines, so we need a user who is experiencing the problem to try various things for us.
I am back, was busy with other things. Thank you for solutions but for me as the end user the best and shortest is just to kill mvp process in the process manager. That what I do if it hangs.
Sorry I have rly no time for some extensive debugging