Skip to content

bug: graphics: video initialization fails on AMD Radeon RX 9060 XT Copy title #617

Closed

Description

@benmordecai

Location

Location
The error message originates in upstream OBS's video-initialization error handling, in frontend/widgets/OBSBasic.cpp. The relevant excerpt is:
#define UNKNOWN_ERROR
"Failed to initialize video. Your GPU may not be supported, "
"or your graphics drivers may need to be updated."

Class

Logic error / graphics initialization failure (root cause unknown) Copy

How it is reached

  1. Install OBS Studio Rust 0.1.0 from the published release using:

appman -e https://github.com/obs-rust/obs-studio/releases/ obs-studio-rust

  1. Launch the application in KDE Plasma on Wayland.
  2. The application fails to initialize video and displays:

Failed to initialize video. Your GPU may not be supported,
or your graphics drivers may need to be updated.

System configuration:

  • Arch Linux
  • KDE Plasma 6.7.5, Wayland
  • Kernel 7.2.9-arch1-1
  • AMD Radeon RX 9060 XT
  • AMD Ryzen 7 7700X with integrated graphics
  • 32 GiB RAM
  • OBS Studio Rust 0.1.0

The failure occurs during startup. It is not yet known whether the cause is GPU selection, graphics API initialization, a missing dependency, or an unsupported backend. No specific upstream OBS bug has been established as the cause.

Proposed fix and failing test

The root cause has not yet been determined. First, capture the application's startup logs and identify the graphics initialization function that fails.

RED: Add a regression test for the identified failure. If reproducing the problem requires a live GPU or graphics context, isolate the backend-selection or initialization-decision logic into a testable function, following the approach described in the repository's coordination guide.

GREEN: Fix the identified initialization or backend-selection problem, verify that the regression test passes, and confirm that the application starts successfully on the affected AMD configuration.

The exact fix and test assertions depend on the diagnostic results; no specific code defect has been confirmed yet.

(This issue submitted via ChatGPT)

Activity

  1. added
    bug
    on Oct 13, 2026
  2. zackees commented on Oct 13, 2026

    @zackees
    Member

    Thanks for the report. To narrow it down, could you share:

    1. Which file appman installed: the AppImage (OBS_Studio-*-x86_64.AppImage, from the continuous or a dated release) or something else? Its exact filename helps.
    2. The OBS log from that launch: ~/.config/obs-studio/logs/, the newest file. The lines around Initializing OpenGL... / EGL / Failed to initialize video are what matter.
    3. The same launch with driver debug output, from a terminal:
      EGL_LOG_LEVEL=debug LIBGL_DEBUG=verbose ./OBS_Studio-*.AppImage 2>&1 | tee obs-debug.txt
      

    Background: on Linux the AppImage carries some of its own system libraries, and your GPU driver (Mesa radeonsi for the RX 9060 XT) is loaded from the host next to them. A mismatch there would fail exactly at video init. #426 notes a related host-driver problem (EGLImage/DMA-BUF) on another Arch machine, so the debug output above would tell us whether this is the same thing.

  3. benmordecai commented on Oct 13, 2026

    @benmordecai
    Author

    https://github.com/obs-rust/obs-studio/releases/download/obs-studio-rust-v0.1.0-beta.20261013/OBS-Studio-Rust-0.1.0-beta.20261013-linux-x86_64.AppImage is the version reported by Appman. For some reason the AppImage itself is not present in the folder with this installation method.

    2026-10-13 16-21-57.txt

    Ran with ./obs-studio-rust because it is the way that appman installed it.
    obs-debug.txt

  4. zackees commented on Oct 13, 2026

    @zackees
    Member

    Thanks, that helps a lot. Both logs fail at the very first EGL call (eglGetDisplay failed), and there's no Mesa/EGL debug output even with EGL_LOG_LEVEL=debug. So the host's Mesa EGL driver most likely never loaded at all.

    Leading theory: the AppImage runs OBS under its own bundled glibc (ld-linux-x86-64.so.2 inside the image, since #499), while the GPU driver (libEGL_mesa.so, radeonsi) is loaded from your Arch install. If Arch's Mesa was built against a newer glibc than the one in the AppImage, the driver can't load into that process (GLIBC_2.xx not found), libglvnd finds no EGL vendor, and eglGetDisplay fails silently, which matches your logs.

    Could you run these two and paste the output?

    pacman -Q glibc mesa libglvnd
    objdump -T /usr/lib/libEGL_mesa.so.0 | grep -o 'GLIBC_2\.[0-9]*' | sort -uV | tail -1
    

    And optionally, to see the loader error directly:

    LD_DEBUG=libs ./obs-studio-rust 2>&1 | grep -iE 'EGL_mesa|GLIBC_|cannot open|not found' | head -40
    

    If that confirms it, the fix is on our side (the AppImage's glibc handling), not your setup.

  5. zackees commented on Oct 13, 2026

    @zackees
    Member

    Reproduced in an archlinux:latest container. The AppImage runs on its bundled glibc 2.43, but Arch's Mesa loads /usr/lib/libLLVM.so.23.1, which needs GLIBC_2.44:

    libm.so.6: version `GLIBC_2.44' not found (required by /usr/lib/libLLVM.so.23.1) (fatal)
    

    libglvnd then quietly drops the Mesa vendor library, so the log shows eglGetDisplay failed and nothing else. This isn't specific to your GPU or appman; it should affect any up-to-date Arch install. The fix is tracked in #621 (part of #635). Your version info is no longer needed. Thanks for the report.

  6. benmordecai commented on Oct 13, 2026

    @benmordecai
    Author
    ben@solomon obs-studio-rust$ pacman -Q glibc mesa libglvnd
    objdump -T /usr/lib/libEGL_mesa.so.0 | grep -o 'GLIBC_2\.[0-9]*' | sort -uV | tail -1
    glibc 2.44+r50+g1848099f063e-1
    mesa 1:26.2.4-1
    libglvnd 1.7.0-3
    GLIBC_2.38
    ben@solomon obs-studio-rust$ LD_DEBUG=libs ./obs-studio-rust 2>&1 | grep -iE 'EGL_mesa|GLIBC_|cannot open|not found' | head -40
         53773:     find library=libEGL_mesa.so.0 [0]; searching
         53773:       trying file=/tmp/.mount_obs-stCEIoGD/usr/bin/../lib/libEGL_mesa.so.0
         53773:       trying file=/tmp/.mount_obs-stCEIoGD/usr/bin/../lib/libEGL_mesa.so.0
         53773:       trying file=/tmp/.mount_obs-stCEIoGD/usr/bin/../lib/libEGL_mesa.so.0
         53773:       trying file=/usr/lib/libEGL_mesa.so.0
         53773:     /tmp/.mount_obs-stCEIoGD/usr/bin/../lib/libm.so.6: error: version lookup error: version `GLIBC_2.44' not found (required by /usr/lib/libLLVM.so.23.1) (fatal)
    ben@solomon obs-studio-rust$
    
  7. benmordecai commented on Oct 13, 2026

    @benmordecai
    Author

    Awesome, thank you

  8. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    Could you try the current release when you get a chance? The glibc problem zackees found above (the AppImage's bundled glibc 2.43 couldn't load Arch's Mesa, which needs 2.44) was fixed by #650. That fix is in 0.1.0-beta.20261014, so the AppImage now uses your system glibc when it is newer.

    https://github.com/obs-rust/obs-studio/releases (OBS-Studio-Rust-0.1.0-beta.20261014-linux-x86_64.AppImage; with appman, updating obs-studio-rust should pick it up)

    If it starts, this can be closed. If you still get "Failed to initialize video", the log from that launch would help (~/.config/obs-studio/logs/, newest file).

  9. zackees commented on Oct 16, 2026

    @zackees
    Member

    @benmordecai no reply yet to the request to try the current release, so this stays open until you can say whether it starts. Since that request, a further AppImage change merged: it builds on a glibc 2.28 base and stops bundling glibc (#927, #1047). Neither is in a release yet (the newest, 0.1.0-beta.20261014, has #650 only). The next release will carry both. If you try it and still see "Failed to initialize video", the newest log in ~/.config/obs-studio/logs/ would help.

  10. benmordecai commented on Oct 16, 2026

    @benmordecai
    Author

    I'm out of state for the next week or so and away from my Arch box. I may be able to run some headless tests over ssh (but I have another long running process that will likely take about 6 hours). I'll try to whip up a remote test later but I don't want to be the cause of the holdup if you're locked in.

  11. rdoupe commented on Oct 16, 2026

    @rdoupe
    Collaborator

    No rush at all, you're not holding anything up. A headless run over ssh wouldn't tell us much here anyway, since "Failed to initialize video" depends on your GPU and display. It's better to try it when you're back at the Arch box. By then the next release should be out with the AppImage changes zackees mentioned, so that's the one worth testing. The issue can stay open until then.

  12. benmordecai commented on Oct 23, 2026

    @benmordecai
    Author

    OBS Studio
    OBS-Studio-Rust 0.1.0-beta.20261023 (based on OBS 33.0.0-beta6-1902-g582a4c3ed) (64 bit)

    Starts with no problem.

  13. rdoupe commented on Oct 24, 2026

    @rdoupe
    Collaborator

    Thanks for testing it! Good to hear 0.1.0-beta.20261023 starts on the RX 9060 XT. The AppImage changes since the release you first tried (#650, #927, #1047) are what fixed it, so I'm closing this. If "Failed to initialize video" ever comes back, reopen this issue or file a new one with the newest log from ~/.config/obs-studio/logs/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions