Skip to content

Agent Linux AppImage cannot load newer Mesa/LLVM driver requiring GLIBC_2.44 #1166

Closed

Description

@AnthonyRonning

The current Linux Dev AppImage cannot create a window when using a newer host Mesa/LLVM software Vulkan driver: the driver requires GLIBC_2.44, which the AppImage's bundled libm.so.6 does not provide.

Package: maple-agent-dev-0.1.0-883ac72-linux-x86_64.AppImage, source 883ac7247a4a1d6ef0a615a7683e2598be78248e, from master build 38958567021. GitHub provenance, metadata/checksums and the extracted AppRun --build-info / --version checks passed.

Environment: Ubuntu-based x86_64 VM, Xfce/X11, Nix-provided Mesa 26.2.4 / LLVM 21.1.8 / Lavapipe. The existing streamed desktop works with that software driver.

Reproduction:

  1. Extract the verified AppImage with --appimage-extract.
  2. Use fresh XDG config/data roots and the existing desktop environment, including its DISPLAY, Xauthority and VK_DRIVER_FILES pointing to lvp_icd.x86_64.json.
  3. Start squashfs-root/AppRun host serve, then squashfs-root/AppRun with the same environment/profile. The explicit host is a workaround for a separate observed self-spawn issue; this gets the test to backend/GPUI readiness.
  4. Window creation fails and the GUI exits 101 before a login screen.

Sanitized diagnostics:

startup: backend ready at 0 ms
startup: gpui app ready at 8 ms
[Vulkan Loader] ERROR: .../squashfs-root/usr/lib/libm.so.6: version `GLIBC_2.44' not found (required by .../llvm-21.1.8-lib/lib/libLLVM.so.21.1)
[Vulkan Loader] ERROR | DRIVER: loader_icd_scan: Failed loading library associated with ICD JSON .../mesa-26.2.4/lib/libvulkan_lvp.so. Ignoring this JSON
[Vulkan Loader] ERROR | DRIVER: vkCreateInstance: Found no drivers!
failed to open main window: Failed to create surface: Failed to create surface for any enabled backend: {}

AppRun deliberately invokes the bundled loader and library path while loading graphics drivers from the host. Adding another glibc package to the host PATH does not change that library selection. We should revisit that runtime/driver contract, either supporting a coherent combination or reporting the incompatibility clearly. A Nix-native package aligned with the host graphics closure is another option to evaluate.

The bounded experiment stopped here; no library replacements or source changes were attempted. Headless startup with an explicit host reaches ACP's expected sign-in-required guard without display/Vulkan settings. Authenticated ACP, login and inference have not been validated.

Activity

  1. katla50 commented on Oct 30, 2026

    @katla50

    Confirming this on the production bundle (not just the Dev AppImage), on real hardware rather than a software driver, plus a workaround that keeps the app's own launch-chain validation happy.

    Reproduction

    Launch from the desktop entry (Exec=~/.local/bin/maple-agent %U) or ~/.local/bin/maple-agent directly, in the normal Wayland session. No window; exit code 101.

    ~/.local/share/maple-agent-prod/store-v1/logs/maple-agent.log:

    [ERROR maple_agent] panic: panicked at app/src/desktop.rs:3375:18:
      failed to open main window: Failed to create surface:
      Failed to create surface for any enabled backend: {}
    

    Before the panic (RUST_LOG=debug / VK_LOADER_DEBUG=error,warn,driver):

    wgpu_hal::vulkan::instance] Unable to find extension: VK_KHR_surface
    wgpu_core::instance] Instance::new: failed to create Vulkan backend:
      InstanceError { message: "Entry::create_instance() failed", source: Some(ERROR_INCOMPATIBLE_DRIVER) }
    wgpu_hal::gles::egl] Client extensions: []
    wgpu_hal::gles::egl] No (or unknown) windowing system ... and EGL_MESA_platform_surfaceless
      not available. Using default platform
    wgpu_core::instance] Instance::new: failed to create Gl backend:
      InstanceError { message: "Failed to get default display" }
    
    [Vulkan Loader] DRIVER: Found ICD manifest file /usr/share/vulkan/icd.d/radeon_icd.json, version 1.0.1
    [Vulkan Loader] DEBUG | DRIVER: Searching for ICD drivers named libvulkan_radeon.so
    [Vulkan Loader] ERROR: /home/<user>/.local/maple-agent.app/usr/lib/libm.so.6:
      version `GLIBC_2.44' not found (required by /lib64/libLLVM.so.23.1)
    [Vulkan Loader] ERROR | DRIVER: loader_icd_scan: Failed loading library associated
      with ICD JSON libvulkan_radeon.so. Ignoring this JSON
    

    Notes

    • Same root cause as reported here: AppRun forces $appdir/usr/lib/ld-linux-x86-64.so.2 --inhibit-cache --library-path "$appdir/usr/lib:…", and the bundle's glibc is 2.42 (<bundle>/usr/lib/libc.so.6 | head -1). The host driver that gets dlopen()ed into that process needs GLIBC_2.44.
    • So this is not AppImage- or lavapipe-specific: it hits the packaged Linux bundle with the real Mesa RADV driver too, i.e. the default path for an Arch/current-glibc user.
    • Both backends die for the same reason (libEGL_mesa → libgallium → libLLVM), so switching to X11 does not help.
    • The panic message gives no hint that the GPU stack failed to load. for any enabled backend: {} (empty set) is the only symptom, and the Vulkan-loader line only appears with VK_LOADER_DEBUG set. A clear "no GPU backend could be initialised — driver needs a newer glibc" message would go a long way.

    Workaround that works (and that the app accepts)

    Putting the host glibc files at the bundle's own paths fixes it:

    lib=~/.local/maple-agent.app/usr/lib
    mkdir -p "$lib/.orig-glibc"
    for f in ld-linux-x86-64.so.2 libc.so.6 libm.so.6 libmvec.so.1 libpthread.so.0 \
             librt.so.1 libdl.so.2 libresolv.so.2 libutil.so.1 libanl.so.1 \
             libnss_compat.so.2 libnss_db.so.2 libnss_dns.so.2 libnss_files.so.2 \
             libnss_hesiod.so.2; do
        [ -e "$lib/$f" ] || continue
        cp -a "$lib/$f" "$lib/.orig-glibc/$f"
        cp -Lf "/usr/lib/$f" "$lib/$f"
    done
    rm -rf "$lib/gconv" && cp -a /usr/lib/gconv "$lib/gconv"

    Result: window opens, sign-in screen renders.

    Selected GPU (passed configuration test): AMD Radeon RX 6700 XT (RADV NAVI22) (Vulkan)
    startup: first render at 407 ms
    startup: window open at 412 ms
    

    One caveat worth recording: repointing AppRun at /usr/lib/ld-linux-x86-64.so.2 does not work — it gets past the GPU error and then the app rejects its own launch chain:

    Maple could not start
    Cannot relaunch this Linux bundle: invalid APPDIR, loader or payload.
    Launch the intact installed maple-agent.app/AppRun, or run the original legacy .AppImage.
    

    So the launch-chain validation (APPDIR / loader / payload) has to be satisfied by keeping the original AppRun and swapping file contents in place. Worth knowing before designing the fix: any solution that changes the loader path is rejected by the app itself.

    The swap has to be re-applied after every reinstall or self-update, since the updater replaces the whole maple-agent.app tree — so this is a workaround, not a fix. A bundle built against a recent glibc (or not bundling glibc/ld-linux at all and using the host one) would resolve it properly.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions