jellyfin-media-player icon indicating copy to clipboard operation
jellyfin-media-player copied to clipboard

Flatpak fails to start on Fedora, and displays a black screen.

Open JoshuaVandaele opened this issue 5 months ago • 4 comments

Describe the bug Upon starting the flatpak, I am met with a black window and a lot of errors in console.

To Reproduce Steps to reproduce the behavior:

  1. flatpak run com.github.iwalton3.jellyfin-media-player
  2. The behavior occurs

Expected behavior Jellyfin to start

Screenshots image

Alongside the terminal output:

libpng warning: iCCP: known incorrect sRGB profile
Listening to socket: "/tmp/jmp_pmpUniqueApplication_folfy.sock"
Signal handlers installed successfully.
Logging to  /home/folfy/.var/app/com.github.iwalton3.jellyfin-media-player/data/jellyfinmediaplayer/logs/jellyfinmediaplayer.log
[2:48:0215/172031.673235:ERROR:address_tracker_linux.cc(214)] Could not bind NETLINK socket: Address already in use (98)
[2:53:0215/172031.691570:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:53:0215/172031.691588:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:53:0215/172031.691593:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:53:0215/172031.691600:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:53:0215/172031.698675:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:53:0215/172031.698691:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[...]
[2:54:0215/172619.866903:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:54:0215/172619.866910:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
^C
2024-02-15 17:26:19.931 [info] unknown @ 0 - SDL is closing.

Desktop (please complete the following information):

  • OS: Fedora Linux
  • Version: 39
  • Installation Method: Flatpak

Additional context Logs: jellyfinmediaplayer.log I can use --disable-gpu which seems to fix the issue, however, I would like to use HW acceleration. I'm happy to assist if more information is required.

JoshuaVandaele avatar Feb 15 '24 16:02 JoshuaVandaele

Seems to be the same behaviour on Arch Linux currently

[2:53:0310/161408.124331:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:53:0310/161408.124338:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:53:0310/161408.124341:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:53:0310/161408.124344:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:53:0310/161408.124462:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:53:0310/161408.124469:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:53:0310/161408.124472:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:53:0310/161408.124475:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:53:0310/161408.124592:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:53:0310/161408.124599:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:53:0310/161408.124602:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:53:0310/161408.124606:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub

Version: com.github.iwalton3.jellyfin-media-player 1.9.1

For my system, this only occurs using Wayland. If using X11 it works fine.

drfarmerdave avatar Mar 10 '24 05:03 drfarmerdave

I concur, same issue on Arch (the AUR bin package)

HamletDuFromage avatar Mar 11 '24 11:03 HamletDuFromage

Also getting it on Arch. Happens on KDE 6.0 in Wayland. Not sure if it's related but I have an Nvidia GeForce RTX 2070 with 550.54.14 drivers.

EDIT: Nvm, my problem looks like #165. The command in this comment made it work for me: https://github.com/jellyfin/jellyfin-media-player/issues/165#issuecomment-1575518323

ToadKing avatar Mar 12 '24 06:03 ToadKing

Having the same issue on Fedora Silverblue with an Nvidia GPU. Was able to workaround the issue by following the solution in #365 and disabling the Wayland socket with FlatSeal.

SupremeMortal avatar Apr 06 '24 16:04 SupremeMortal