Skip to content

bug: AppImage: on a host without libwayland-egl.so.1, OBS shows only "Failed to initialize video: Graphics module not found" (the host-library preflight doesn't check it) #2298

Closed

Description

@rdoupe

Refs #2227

Severity: Low. Every desktop install checked pulls in libwayland-egl1 (GTK 3 and GTK 4 depend on it, and ubuntu-desktop-minimal, xubuntu-core and even i3 + xorg + xinit without recommends bring it in). So this hits only stripped-down hosts: containers, distrobox or toolbox images, server installs with a bare X session. When it does hit, the message is useless. The preflight exists for exactly this case, and it stays silent.

What happens

AppImage 0.1.0-beta.20261023 with --appimage-extract-and-run, under Xvfb. The host has Mesa, libegl1, libopengl0, libgbm1, libdrm2 and libwayland-client0, but no libwayland-egl1:

  • Ubuntu 22.04, Ubuntu 24.04, Debian 12, Debian 13, Fedora 41: an "Error" dialog that says "Failed to initialize video: Graphics module not found", and no main window. The log shows:
    error: os_dlopen(libobs-opengl.so.30->libobs-opengl.so.30): libwayland-egl.so.1: cannot open shared object file: No such file or directory
    error: Failed to initialize video:  Graphics module not found
    
  • After installing only libwayland-egl1 (Debian/Ubuntu) or libwayland-egl (Fedora): the main window and the first-run wizard appear on all five.
  • Arch Linux: OK. mesa pulls in wayland, which contains libwayland-egl.so.1.

A static ldd sweep of every ELF file in the AppImage payload on the same hosts finds exactly one unresolved library, libwayland-egl.so.1. It is needed by usr/lib/obs-studio-rust/libobs-opengl.so.30 and usr/lib/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so.

When libEGL/libOpenGL/libgbm/libdrm/libwayland-client are missing, the preflight works well: "OBS-Studio-Rust needs these libraries from your system, and they were not found: … install libwayland-client0".

Root cause

Fix plan

Add a required entry to host-libs.json, after wayland-client:

{
  "name": "wayland-egl",
  "kind": "required",
  "feature": "OpenGL rendering (libobs-opengl links it, also under X11)",
  "sonames": ["libwayland-egl.so.1"],
  "symbols": ["wl_egl_window_create", "wl_egl_window_destroy"],
  "install": {"debian": "libwayland-egl1", "fedora": "libwayland-egl", "arch": "wayland", "suse": "libwayland-egl1", "nixos": "run through appimage-run or nix-ld (programs.nix-ld.libraries = [ pkgs.wayland ])"}
}

hostlib/build.py builds obs-hostlib-check from the required entries, so nothing else needs to change.

RED/GREEN test (CI-runnable)

  1. Static (ci/test_appimage_host_stack.py, new case): for every soname that assemble-appdir.sh's EXCLUDE keeps out and that some bundled ELF file in the built AppDir has as DT_NEEDED, there must be a host-libs.json entry (required or optional) or an explicit allowlist entry (the libGL/GLX/vendor family, which libOpenGL/libEGL cover). RED today: libwayland-egl.so.1 is NEEDED by libobs-opengl.so.30 and isn't listed. A cheaper variant without a build: compare against the DT_NEEDED list of libobs-opengl recorded by the build.
  2. Runtime (test-appimage.sh, new missing-host-lib scenario on one Debian image): install the driver stand-in without libwayland-egl1, run the AppImage, and expect exit 127 with libwayland-egl.so.1 and install libwayland-egl1 in stderr. RED today: OBS starts and shows the "Graphics module not found" dialog instead.

Activity

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

    @zackees
    Member

    /ready

    Meets the definition of Ready: reproduced on five hosts with the exact log line, root cause (host-libs.json has no wayland-egl entry, so obs-hostlib-check stays silent), fix scope (add libwayland-egl.so.1 as required with the per-distro package hint). Acceptance: the preflight names libwayland-egl1 on a host without it. AGENTS.md packaging rule applies: extend build-aux/appimage/test-appimage.sh (or the hostlib check's own test) and show it failing first. P3 (only stripped hosts), size:S.

  3. added
    ready
    P3
    size:S
    on Oct 25, 2026
  4. rdoupe commented on Oct 25, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2298.

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

Metadata

Metadata

Assignees

Labels

P3bugreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions