jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
2.87k stars 297 forks source link

Forcing External Web Client causes a black screen on start #714

Open reggermont opened 5 days ago

reggermont commented 5 days ago

Describe the bug

Starting Jellyfin Media Player with forceExternalWebclient=true or with jellyfin-media-player>v1.11.0 triggers an infinite black screen after showing the Jellyfin logo

The last logs are showing the following

[info] unknown @ 0 - JS: Setting server address to https://[REDACTED]
[info] unknown @ 0 - JS: resolving connectToServers with result.State: ServerSignIn
[info] unknown @ 0 - JS: [ApiProvider] Could not get current user undefined
[info] unknown @ 0 - JS: serviceWorker registered
[info] unknown @ 0 - JS: [ConnectionRequired] not logged in, redirecting to login page [object Object]
[info] unknown @ 0 - JS: [viewContainer] tryRestoreView [object Object]
[info] unknown @ 0 - JS: Uncaught (in promise) ChunkLoadError: Loading chunk 93649 failed.
(error: https://[REDACTED]/web/session-login.753f05edd723ee338fed.chunk.js)

but nothing else happens than the black screen

To Reproduce

Steps to reproduce the behavior:

  1. Run Jellyfin server version = 10.9.7 (dunno if error specific to this version)
  2. Start Jellyfin Media Player with forceExternalWebclient=true or with jellyfin-media-player>v1.11.0

Expected behavior

Jellyfin Media Player starting correctly

Desktop (please complete the following information):

Additional context

Jellyfin server exposed behind a Traefik on another computer

Logs are also showing the following lines

[debug] unknown @ 0 - Using web-client URL:  "file:////usr/share/jellyfinmediaplayer/web-client/desktop/index.html"
[debug] unknown @ 0 - "Using path for extension: /usr/share/jellyfinmediaplayer/web-client/extension/"

Trying to open the file shows this error in the console

find-webclient.js:81 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'settings')
    at find-webclient.js:81:40
    at find-webclient.js:87:3
solidsnake1298 commented 5 days ago

Also on 1.11.1, I am not able to navigate most of the UI since upgrading the server to 10.9.7. I can bring up the dashboard, but the dashboard home is not accessible (blank page), but most of the other dashboard panels will load. I can't view my libraries, but I can play anything that is in "next up" or "continue watching".

reggermont commented 5 days ago

Doesn't seem related as I can't even see the dashboard home. You should open an another issue

jeremyjohn commented 1 day ago

Also on 1.11.1, I am not able to navigate most of the UI since upgrading the server to 10.9.7. I can bring up the dashboard, but the dashboard home is not accessible (blank page), but most of the other dashboard panels will load. I can't view my libraries, but I can play anything that is in "next up" or "continue watching".

Can confirm, temporary solution to downgrade to v1.10.1.

solidsnake1298 commented 1 day ago

I was able to resolve this issue by going to Dashboard > Devices and deleting the session for JMP then logging back in on JMP.