Open maaldheefee opened 1 year ago
Client doesn't seem to get connected. It does not show in Cast to Device menu.
It looks like this has succumb to code rot and needs a lot of attention. The underlying pywebview renderer used to use Microsoft Edge but this is not available reliably anymore in Windows. I'm not willing to bundle chromium with this application for a feature that is not commonly used, so I will need to find a new solution later to offer this.
The pywebview integration does still work, so you can install python manually and pip install the application to use other webview backends. The most reliable one seems to be cef
.
This also happens on flatpak/Linux:
[pywebview] QT cannot be loaded
Traceback (most recent call last):
File "/app/lib/python3.10/site-packages/webview/guilib.py", line 29, in import_qt
import webview.platforms.qt as guilib
File "/app/lib/python3.10/site-packages/webview/platforms/qt.py", line 34, in <module>
from qtpy import QtCore
ModuleNotFoundError: No module named 'qtpy'
then it also tries and fails with GTK, and eventually
Exception in thread Thread-14 (load_idle):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/app/lib/python3.10/site-packages/jellyfin_mpv_shim/display_mirror/__init__.py", line 137, in load_idle
mirror.display_window.load_html(html)
File "/app/lib/python3.10/site-packages/webview/window.py", line 31, in wrapper
raise WebViewException('Main window failed to start')
webview.util.WebViewException: Main window failed to start
Perhaps an interim improvement could be to try/catch the whole display_mirror
initialisation so at least the client can start (albeit without display mirroring enabled).
Describe the bug When
display_mirroring
is set totrue
, the application crashes with the following error.To Reproduce Steps to reproduce the behavior:
display_mirroring
totrue
via config menu or editing the file.Desktop (please complete the following information):
Error Messages log.txt