Videos App Won't Work (OpenGL Error)

Hello Fedora community,

I am experiencing an issue when trying to open the Videos app on Fedora 41, where I receive the error: “Could not initialize OpenGL.”

System Details:

  • GPU: NVIDIA RTX 3070

  • Driver Version: NVIDIA 560 (Non-Free) from RPM Fusion

  • Display Server: Wayland

  • Fedora Version: Fedora 41

Question: Is there a known solution or workaround for this OpenGL initialization error on Fedora 41 when using NVIDIA drivers with Wayland?

Any help or guidance would be appreciated. Thank you!

I believe that f41 was released with the 565 driver for nvidia. Could you update f41 overall plus the latest nvidia driver then try to see of the problem is solved.

I have an RTX 3050 and have installed all the multimedia codecs. I am using f41 with wayland and the 565 driver. Video works for me.

1 Like

Hi! Thank you for your response. The 565 driver is still in testing. Keeping that in mind, should I still use that version for this to be fixed? Thanks in advance!

They do not appear to be in testing.

dnf list *nvidia*
Updating and loading repositories:
Repositories loaded.
Installed packages
akmod-nvidia.x86_64                                 3:565.57.01-1.fc41  rpmfusion-nonfree-updates
kmod-nvidia-6.11.6-300.fc41.x86_64.x86_64           3:565.57.01-1.fc41  @commandline
kmod-nvidia-6.11.7-300.fc41.x86_64.x86_64           3:565.57.01-1.fc41  @commandline
kmod-nvidia-6.11.8-300.fc41.x86_64.x86_64           3:565.57.01-1.fc41  @commandline
nvidia-gpu-firmware.noarch                          20241110-1.fc41     updates
nvidia-modprobe.x86_64                              3:565.57.01-1.fc41  rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                          3:565.57.01-1.fc41  rpmfusion-nonfree-updates
nvidia-settings.x86_64                              3:565.57.01-1.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                          3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64                     3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.i686                  3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                  3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686                       3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                     3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                    3:565.57.01-3.fc41  rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-xorg-libs.x86_64                3:565.57.01-3.fc41  rpmfusion-nonfree-updates

It may be you do not have all the necessary codecs installed.

1 Like

Hi @computersavvy ,

Thank you for letting me know about the newer version of the NVIDIA driver! I’ve followed the steps to check the available versions in the rpmfusion-nonfree repository using the dnf commands, but I only see version 560.35.03 available. Here’s the output from my system for reference:

Linux fedora 6.11.8-300.fc41.x86_64 x86_64
21:17:17 up  4:45,  2 users,  load average: 0.80, 0.60, 0.35

~  sudo dnf list --showduplicates akmod-nvidia

Installed packages:
akmod-nvidia.x86_64 3:560.35.03-1.fc41 rpmfusion-nonfree-nvidia-driver

Available packages:
akmod-nvidia.x86_64 3:560.35.03-1.fc41 rpmfusion-nonfree-nvidia-driver

I also tried running sudo dnf update -y to refresh the repositories, but it reported that there was “nothing to do,” and the system seems to think I’m already on the latest version.

Could you please let me know if there’s something I might be missing or doing wrong? For example, do I need to enable a specific repository, check a beta channel, or download the package manually? Your guidance would be greatly appreciated.

Thanks again for your help!

Best regards,
vladimirzb

If you look at the repo with the list I posted you see that mine comes from rpmfusion-nonfree-updates, yours is rpmfusion-nonfree-nvidia-driver.
The other repo is available following the instructions here.
https://rpmfusion.org/Configuration

Same here. but I have latest 565 driver:

[matteo@fedora-5 ~]$ rpm -qa  |grep -i nvidia
kmod-nvidia-6.11.4-201.fc40.x86_64-560.35.03-1.fc40.x86_64
xorg-x11-drv-nvidia-kmodsrc-565.57.01-3.fc41.x86_64
nvidia-modprobe-565.57.01-1.fc41.x86_64
xorg-x11-drv-nvidia-cuda-libs-565.57.01-3.fc41.x86_64
xorg-x11-drv-nvidia-libs-565.57.01-3.fc41.x86_64
akmod-nvidia-565.57.01-1.fc41.x86_64
xorg-x11-drv-nvidia-xorg-libs-565.57.01-3.fc41.x86_64
xorg-x11-drv-nvidia-565.57.01-3.fc41.x86_64
nvidia-settings-565.57.01-1.fc41.x86_64
nvidia-persistenced-565.57.01-1.fc41.x86_64
xorg-x11-drv-nvidia-cuda-565.57.01-3.fc41.x86_64
xorg-x11-drv-nvidia-power-565.57.01-3.fc41.x86_64
nvidia-gpu-firmware-20241017-2.fc41.noarch
kmod-nvidia-6.11.6-200.fc40.x86_64-565.57.01-1.fc41.x86_64

about codecs, my F41 has been migrated from F40, so all codecs should be here. In addition I’m just trying to play a screencast created with gnome screen recorder.

1 Like

If can be of some help, here’s some debug infos from gst:

[matteo@fedora-5 Screencasts]$ totem  --gst-debug-level=3 Screencast\ From\ 2024-11-21\ 09-45-44.mp4 
0:00:00.410555353 961119 0x5629b98c8a40 WARN               glcontext gstglcontext.c:1326:gst_gl_context_create_thread:<glcontextegl0> Failed to create context
0:00:00.410634093 961119 0x5629b97001f0 WARN          gtkgstglwidget gtkgstglwidget.c:644:gtk_gst_gl_widget_init_winsys: Could not create OpenGL context: Failed to create a OpenGL context: EGL_BAD_CONTEXT
0:00:00.410645060 961119 0x5629b97001f0 WARN               gtkglsink gstgtkglsink.c:270:gst_gtk_gl_sink_start:<sink> error: Failed to initialize OpenGL with Gtk
0:00:00.410660105 961119 0x5629b97001f0 WARN                basesink gstbasesink.c:5906:gst_base_sink_change_state:<sink> error: Failed to start
0:00:00.410706198 961119 0x5629b97001f0 ERROR                playbin gstplaybin2.c:5554:activate_group:<play> failed to activate sinks
0:00:00.415968072 961119 0x5629b97001f0 ERROR                default totem-gst-helpers.c:61:totem_gst_message_print: message = Failed to initialize OpenGL with Gtk
0:00:00.416004940 961119 0x5629b97001f0 ERROR                default totem-gst-helpers.c:62:totem_gst_message_print: domain  = 4745 (gst-resource-error-quark)
0:00:00.416008703 961119 0x5629b97001f0 ERROR                default totem-gst-helpers.c:64:totem_gst_message_print: code    = 3
0:00:00.416012792 961119 0x5629b97001f0 ERROR                default totem-gst-helpers.c:65:totem_gst_message_print: debug   = ../ext/gtk/gstgtkglsink.c(270): gst_gtk_gl_sink_start (): /GstGLSinkBin:glsinkbin/GstGtkGLSink:sink
0:00:00.416064630 961119 0x5629b97001f0 ERROR                default totem-gst-helpers.c:66:totem_gst_message_print: source  = <sink>
0:00:00.416073260 961119 0x5629b97001f0 ERROR                default totem-gst-helpers.c:67:totem_gst_message_print: uri     = (NULL)
1 Like

side note, with ffplay all works

1 Like

Hi @mbrancaleoni ! Thank you for contributing to this thread. I have FFplay installed as well, but I keep encountering the following error: “Could not initialize OpenGL.”

Here is my version information:
ffplay version 7.0.2 Copyright (c) 2003-2024 the FFmpeg developers

Do you have any idea why I keep getting this error? Should I consider submitting a bug report? Thanks in advance!