trakt-scrobbler stops working with mpv pipes after getting 'All pipe instances are busy.' error. I need to restart trakt-scrobbler to make it work again after this error.
Desktop (please complete the following information):
OS and Version: Windows 11 Pro
Python Version: Python 3.12.3
Player and Version: mpv v0.38.0-63-gb364e4a6
To Reproduce
Steps to reproduce the behavior:
Install latest mpv-git and syncplay
Configure mpv-git in syncplay
Configure trakt-scrobbler (allowed paths and socket)
Add --input-ipc-server=\\.\pipe\mpvSyncplaySocket to player arguments in syncplay
Join some room
Use syncplay
Sooner or later this error will appear, rendering trakt-scrobbler unable to use mpv sockets until restarted
Log file
Click to see log contents
```
2024-05-22 17:02:44,722 - DEBUG - syncplay@mpv - mpv - Pipe closed.
2024-05-22 17:02:44,824 - ERROR - syncplay@mpv - __init__ - Unhandled exception
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
self.run()
File "C:\Users\user\AppData\Local\pipx\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\player_monitors\mpv.py", line 80, in run
self.conn_loop()
File "C:\Users\user\AppData\Local\pipx\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\player_monitors\mpv.py", line 302, in conn_loop
self.file_handle = win32file.CreateFile(
^^^^^^^^^^^^^^^^^^^^^
pywintypes.error: (231, 'CreateFile', 'Âñå êîïèè êàíàëà çàíÿòû.')
```
Describe the bug
trakt-scrobbler stops working with mpv pipes after getting 'All pipe instances are busy.' error. I need to restart trakt-scrobbler to make it work again after this error.
Desktop (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
--input-ipc-server=\\.\pipe\mpvSyncplaySocket
to player arguments in syncplayLog file
Click to see log contents
``` 2024-05-22 17:02:44,722 - DEBUG - syncplay@mpv - mpv - Pipe closed. 2024-05-22 17:02:44,824 - ERROR - syncplay@mpv - __init__ - Unhandled exception Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner self.run() File "C:\Users\user\AppData\Local\pipx\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\player_monitors\mpv.py", line 80, in run self.conn_loop() File "C:\Users\user\AppData\Local\pipx\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\player_monitors\mpv.py", line 302, in conn_loop self.file_handle = win32file.CreateFile( ^^^^^^^^^^^^^^^^^^^^^ pywintypes.error: (231, 'CreateFile', 'Âñå êîïèè êàíàëà çàíÿòû.') ```