Skip to content

SyncPlay client crashing when prepending arguments #616

Closed
@ducreyna

Description

@ducreyna

Describe the bug
As described in your documentation about how to use SyncPlay in cli, I added arguments that supposed to be passed to mpv.
But I get a crash of the SyncPlay client on almost all my mpv arguments

To Reproduce
Here the SyncPlay cli command I'm executing:

syncplay --host 172.16.50.125:8999 --name test-A -r SFHQYUNIES --no-gui --player-path /usr/bin/mpv input.mp4 -- --hwdec=vaapi --volume=0 --geometry=1920x1080+0+0 --no-border

If I remove the argument --no-border then the client started as expected. When I added it it's crashing, same behavior with the argument --no-window-dragging etc

Expected behavior
Any argument should be passed to mpv.

Screenshots
Here is the crash log I get:

MPV failed with returncode 1.
MPV start failed.
Traceback (most recent call last):
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 460, in _start_mpv
    self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs)
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 216, in __init__
    self._start_process(ipc_socket, args, env=env)
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 237, in _start_process
    raise MPVError("MPV not started.")
syncplay.vendor.python_mpv_jsonipc.python_mpv_jsonipc.MPVError: MPV not started.
MPV failed with returncode 1.
MPV start failed.
Traceback (most recent call last):
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 460, in _start_mpv
    self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs)
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 216, in __init__
    self._start_process(ipc_socket, args, env=env)
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 237, in _start_process
    raise MPVError("MPV not started.")
syncplay.vendor.python_mpv_jsonipc.python_mpv_jsonipc.MPVError: MPV not started.
MPV failed with returncode 1.
MPV start failed.
Traceback (most recent call last):
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 460, in _start_mpv
    self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs)
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 216, in __init__
    self._start_process(ipc_socket, args, env=env)
  File "/usr/lib/syncplay/syncplay/vendor/python_mpv_jsonipc/python_mpv_jsonipc.py", line 237, in _start_process
    raise MPVError("MPV not started.")
syncplay.vendor.python_mpv_jsonipc.python_mpv_jsonipc.MPVError: MPV not started.
ERROR:	Could not load mpv: '__Listener' object has no attribute 'mpvpipe'
ERROR:	Media player error: "MPV process retry limit reached." The reason mpv cannot start may be due to the use of unsupported command line arguments or an unsupported version of mpv.
ERROR:	<class 'twisted.python.failure.Failure'>
ERROR:	[Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
ERROR:	Connection was closed cleanly.

Version and platform:

  • OS: Ubuntu 20.04
  • Syncplay version and build type: 1.7.0
  • Media player and version: mpv 0.32.0

Thanks for your feedback and advise !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions