Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JoshuaVandaele opened this issue Feb 15, 2024 · 7 comments
Open
Labels
bug Something isn't working

Comments

@JoshuaVandaele
Copy link

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.

@drfarmerdave
Copy link

drfarmerdave commented Mar 10, 2024

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.

@HamletDuFromage
Copy link

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

@ToadKing
Copy link

ToadKing commented Mar 12, 2024

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: #165 (comment)

@SupremeMortal
Copy link

SupremeMortal commented Apr 6, 2024

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.

@wold9168
Copy link

wold9168 commented Aug 18, 2024

same problem on debian 12
It seemed like a universal phenomenon. I noticed that some of the flatpak software packages would display a black screen if the 3D acceleration was enabled.
I haven't encountered similar issues when I use the AMD GPU. And I found that all problematic programs have processes in nvidia-smi. Maybe the NVIDIA proprietary driver has something to do with this.

btw, the problematic programs i mentioned above is referred to YesPlayMusic, an open-source music.
I saw others have similar problems: #365 net.cozic.joplin_desktop #10

@ageisen2000
Copy link

Getting this on bazzite with nvidia-stable. On flatseal i disabled the "wayland windowing system" and it fixes it.

image

Otherwise I was getting lots of errors like this:

[2:48:0913/115214.340097:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:48:0913/115214.340100:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:48:0913/115214.340216:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:48:0913/115214.340228:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:48:0913/115214.340232:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:48:0913/115214.340235:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:48:0913/115214.340373:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:48:0913/115214.340382:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:48:0913/115214.340386:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:48:0913/115214.340391:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:48:0913/115214.340494:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:48:0913/115214.340499:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:48:0913/115214.340503:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:48:0913/115214.340506:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:48:0913/115214.340652:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:48:0913/115214.340659:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:48:0913/115214.340662:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:48:0913/115214.340666:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[2:48:0913/115214.340790:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:48:0913/115214.340796:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:48:0913/115214.340799:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[2:48:0913/115214.340802:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
2024-09-13 11:52:14.412 [info] unknown @ 0 - SDL is closing.

@krzemyczek
Copy link

krzemyczek commented Dec 22, 2024

Getting this on bazzite with nvidia-stable. On flatseal i disabled the "wayland windowing system" and it fixes it.

image

Fixed on Fedora 41 with nvidia driver v550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

8 participants