jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.01k stars 304 forks source link

Blank screen when allowing access to all devices in flatpak sandbox #365

Open s1m-e0n opened 1 year ago

s1m-e0n commented 1 year ago

Describe the bug When using the Flatpak version (1.7.1, but I also experienced this on earlier versions) with default flatpak permissions I get a completely blank (black) screen. The error that gets displayed in the cli output is the following:

[2:51:0204/182834.571547:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:51:0204/182834.571551:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:51:0204/182834.571761:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT

This happens every time I open the app. When I revoke the flatpak permission to access all devices (I use FlatSeal for this) the app works as expected. I perused the logs and it seems that perhaps my XBox controller driver is causing issues? I'm using xpadneo in case that's relevant.

To Reproduce Steps to reproduce the behavior:

  1. Download the flatpak version of the app
  2. Run in CLI with flatpak run com.github.iwalton3.jellyfin-media-player
  3. Observe a blank window
  4. Revoke access to all devices (e.g. via FlatSeal)
  5. Try again, window contents are displayed

Expected behavior The app displays the window contents correctly.

Screenshots Screenshot from 2023-02-04 18-34-23 Screenshot from 2023-02-04 18-34-51

Desktop:

Additional context jellyfinmediaplayer.log

FooSensei commented 1 year ago

What drivers do you use? Can you try disabling Wayland socket in Flatseal?

s1m-e0n commented 1 year ago

Disabling the Wayland socket fixed the issue, thank you. I was using version 530 NVidia drivers for my GTX 970.

gabeclarke commented 10 months ago

Thanks Foo, disabling wayland socket fixed it for me as well. I had the same issue.

OS: Nobara 38 (Fedora) Installation: Flatpak

dabohda commented 1 month ago

Thanks! Same here. Disable Wayland socket fixed it for me as well.

Fedora 40 Nvidia 550.90.07 gnome 46 Wayland