Skip to content

appimage: Bundled GL/GBM/DRM/VA/Wayland libraries override the host driver stack #625

Closed

Description

@zackees

Problem

assemble-appdir.sh EXCLUDE covers only libGLX_*, libEGL_*, libgallium, libvulkan_* and libdrm_*. The image bundles all of these, and the relative RPATH makes them win over the host's:

  • libEGL.so.1, libGLX.so.0, libGLdispatch, libOpenGL
  • libgbm.so.1
  • libdrm.so.2
  • libva*
  • libvulkan.so.1
  • libwayland-*

Consequences (suspected, from inspecting the image, not from failing runs):

The AppImage excludelist says to leave all of these out.

Fix

  • Exclude these libraries.
  • Set host driver search paths in AppRun, as quick-sharun does.
  • Extend test-appimage.sh to cover GBM/DMA-BUF and VAAPI on a non-Debian host (archlinux, fedora containers).

Also, test-appimage.sh:280 whitelists libgbm, libdrm and libvulkan as host-allowed, which contradicts what the build bundles.

Activity

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

    @zackees
    MemberAuthor

    Claiming (release-gate blockers from #635).

  3. added 2 commits that reference this issue on Oct 13, 2026
    ed08613
    019bae1
  4. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Completion audit for #635: #650 validates software-EGL startup and saved PipeWire/camera/microphone profiles on Arch/Fedora, but test-appimage.sh contains no GBM/DMA-BUF or VAAPI exercise required by this issue. libva also remains bundled (documented in the PR because the packaged FFmpeg needs a newer libva on Ubuntu 22.04). Reopening to validate the host VA/GBM driver interaction explicitly and resolve the remaining libva override while keeping older-host startup working. Hardware render nodes are available locally for concrete packaged-artifact validation.

  5. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Hardware preparation for the remaining packaged-driver coverage: both local render nodes (/dev/dri/renderD128 and renderD129) successfully initialize the host NVIDIA NVDEC VAAPI direct backend with libva 2.23.0. Their advertised entry points are decode-only (VLD), not VAAPI encode.

    An actual host FFmpeg probe forced VAAPI surface decoding and hwdownload for a synthetic 12-frame 128x72 H.264 stream on both nodes. Each decoded 12 frames with zero errors and produced 165888 bytes of YUV420P. Both output files exactly match the software decoder (SHA256 66abff4789c0e7eac85453c3f3e5bc8990511bb185cd5627d8eb1c2cbd39a789). The logs explicitly show pix_fmt vaapi and the NVDEC driver; this is frame decoding, not just a capability query.

    This is a native host baseline only. It does not validate the AppImage, non-Debian packaged loader paths, GBM/DMA-BUF, or exclusion of bundled libva; those requirements remain open. The OBS media decoder tries CUDA before VAAPI, so a successful default hardware-decode media source would not by itself prove the VAAPI path on these GPUs. Packaged validation must explicitly exercise VAAPI alongside the required real frontend saved-profile test.

  6. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Claiming the remaining #625 requirements after the completion audit, now that #624 is merged. One AppImage driver-runtime PR; first draft after real RED/GREEN and packaged hardware validation.

    1. Reconcile the actual packaged library closure and host driver lookup with the issue's exclusion list, including the remaining bundled libva. Preserve Ubuntu 22.04 startup and the packaged FFmpeg's features; investigate its newer libva symbol dependency using the real source/API.
    2. Add failing package/runtime checks for the remaining VA/GBM/DMA-BUF requirements, then prove GREEN with the actual packaged runtime on non-Debian hosts and the available native render nodes. Retain the real saved screen/camera/microphone profile test and recording validation.
    3. Run required lint/unit/attestation, focused review and fresh exact-head AppImage/full release verification before merge. Decode-only NVIDIA capability is not VAAPI encode proof; the host-only NVDEC baseline already recorded is preparation, not package completion.
  7. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Progress on #625: the new source-build tool completed successfully against Ubuntu 26.04's exact FFmpeg 7:8.0.1-3ubuntu2 recipe. It verifies the pinned source archives, applies the optional host VA mapping change with zero patch fuzz, preserves the original configure options, and audits the result. The rebuilt libavutil preserves all 621 exported ABI symbols (including data layouts), version 3934308, and the same seven actually registered hardware backends: vdpau, cuda, vaapi, qsv, drm, opencl, vulkan.

    Genuine RED precedes the integration: 6661f0509 fails five checks (three libva-family exclusions, assembly input validation, and workflow wiring); 3121e4276 makes those checks pass and supplies the audited library to assembly. Earlier actual Ubuntu 22.04 AppRun validation failed with the original libavutil and host libva (undefined symbol: vaMapBuffer2) and passed with the source-built candidate.

    This remains incomplete: a newly assembled production AppImage and physical GPU GBM/DMA-BUF and VAAPI frame validation on a non-Debian distribution are still required. ABI/backend registration and startup compatibility are not being counted as physical hardware proof. No #625 PR is merged or claimed complete.

  8. Samueru-sama commented on Oct 14, 2026

    @Samueru-sama

    @zackees why not use quick-sharun directly? There is a lot of duplicated work here by doing everything manually.

    Just see how we package OBS-Studio, simple and short. And these builds include the browser source feature.

  9. 4 remaining items

  10. removed
    claimed
    on Oct 14, 2026
  11. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Completed by merged #722 at 2fd806d. Exact-head production run 38557088890 passed all four distribution profiles/recording checks. That exact AppImage and matching helper/media passed the unchanged physical GPU harness in Arch on RTX3060: twelve GBM/EGL frames and twelve hardware VAAPI frames, byte-for-byte reference comparison, host-driver/package-FFmpeg map assertions, no diagnostic logging and no software fallback. AppImage SHA256 14d9117d74b7f4c5b03001188a063445d46f9186be98d40105f763701184efc2; YUV SHA256 f5aeba2b8dbef9d8dc4d7887d22ad2b6ad5c070576962e8ecab6b9840da0b013. Merge-result CI 38559770358 passed. The source build preserves 621 ABI symbols and seven registered backends, with optional modern VA mapping and legacy fallback. Prior SRT/metadata/device-forwarding failures remain documented. Primary rebased to the merge. Continuing #627 and the newly observed Intel Mac system-icon wait under #635.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions