openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

AppImage v0.54.0 fails on Fedora 43 with "Interpreter not found!" (sharun lib.path missing/wrong)

Open Sallenmoore opened this issue 6 months ago • 7 comments

AppImage v0.54.0 fails on Fedora 43 with "Interpreter not found!" (sharun lib.path missing/wrong)

TL;DR: the v0.54.0 AppImage cannot launch on Fedora 43 in any invocation path. The bundled sharun wrapper fails to set up the dynamic loader because shared/lib/lib.path is missing from the bundle, and sharun -g regenerates it with paths pointing at GitHub Actions runner cache dirs that don't exist on the user's machine. Even --appimage-extract-and-run (URUNTIME's intended fallback) hits the same wall.

Environment

  • OS: Fedora Linux 43 (Server kernel 6.17.x)
  • Architecture: x86_64
  • Installer: official scripts/install.sh (resolves v0.54.0 from latest.json)
  • AppImage SHA256: verified by installer (digest matched)
  • glibc: 2.40+, libstdc++: 14.x
  • DRI drivers: /usr/lib64/dri/ (Fedora layout, not Debian's /usr/lib/x86_64-linux-gnu/dri)

Symptom

$ openhuman
Interpreter not found!

$ openhuman --appimage-extract-and-run
[progress 0% → 100%]
Interpreter not found!

Exit code 0 in both cases (misleading).

Root cause investigation

After inspecting the bundle:

  1. Inner runtime is URUNTIME 0.5.7 (Universal RunImage and AppImage runtime with SquashFS and DwarFS supports v 0.5.7) wrapping a sharun-style layout.
  2. bin/OpenHuman is a hardlink to sharun — same inode + SHA1.
  3. The real binary is at shared/bin/OpenHuman — 89.6 MB, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2 (which Fedora has at the expected path).
  4. shared/lib/lib.path is missing from the bundle. sharun needs this file to assemble the LD_LIBRARY_PATH for the inner binary.
  5. Running ./sharun -g from the extracted tree generates a lib.path with content like:
    +
    +/pkcs11
    +/nss
    +/home/runner/work/openhuman/openhuman/app/src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage_deb/data/usr/lib
    +/home/runner/.cache/tauri-cef/146.0.9/cef_linux_x86_64
    +/gtk-3.0/3.0.0/immodules
    ...
    
    The /home/runner/... paths are CI build paths that only exist on the GitHub Actions runner where the AppImage was built. They're not portable to end-user systems.

Proof the inner binary works fine

Bypassing sharun entirely, the inner binary starts up cleanly:

$ SHARUN_LDNAME=ld-linux-x86-64.so.2 \
  LD_LIBRARY_PATH=/path/to/extracted/shared/lib \
  /path/to/extracted/shared/bin/OpenHuman --version
14:16:02:INF:log [startup] platform: arch=x86_64 os=linux
14:16:02:INF:log [cef-profile] configured CEF cache user=local path=...
14:16:02:INF:log [fake-camera] rasterizing mascot 640x480 -> ...
...

So OpenHuman itself is fine — the AppImage packaging is the bug.

Secondary issues found (not blockers, but worth noting)

When manually wired up (LD_LIBRARY_PATH workaround), two additional problems surfaced before the GUI could draw:

  1. Bundled Mesa is hardcoded to Debian DRI paths — /usr/lib/x86_64-linux-gnu/dri:/usr/lib/dri. On Fedora 43, DRI drivers live at /usr/lib64/dri/. Workaround: export LIBGL_DRIVERS_PATH=/usr/lib64/dri. Suggested fix: don't hardcode the path in the build; let Mesa probe the host.
  2. Bundled shared/lib/libstdc++.so.6 is older than Fedora 43's host libstdc++. When the host's Intel VA-API driver (/usr/lib64/dri/iHD_drv_video.so) is loaded through our LD_LIBRARY_PATH, it fails with version 'CXXABI_1.3.15' not found. Workaround: move the bundled libstdc++ aside so the host's wins. Suggested fix: either don't bundle libstdc++, or detect host libstdc++ and prefer it.

Even with both workarounds, the GUI cascaded into X Error: BadWindow and SSL handshake failures (those may be downstream symptoms of the libstdc++ swap; didn't pursue further).

Suggested upstream fixes

In order of leverage:

  1. Run lib4bin / sharun -g as part of the AppImage build pipeline so that shared/lib/lib.path is bundled and contains relative paths (not absolute /home/runner/... paths).
  2. Verify the AppImage actually launches on at least one non-Debian distro in CI (Fedora and Arch are the obvious candidates).
  3. (Lower priority) Don't hardcode Mesa search paths to Debian's layout — many distros use /usr/lib64/dri.
  4. (Lower priority) Don't bundle libstdc++ in a way that shadows the host's, or detect a newer host libstdc++ and prefer it.

Steps to reproduce

curl -fsSL https://raw.githubusercontent.com/tinyhumansai/openhuman/main/scripts/install.sh | bash
openhuman   # "Interpreter not found!" exit 0
openhuman --appimage-extract-and-run   # same

Happy to provide additional diagnostics (strace, full lib.path contents, etc.) if useful.

Sallenmoore avatar May 19 '26 19:05 Sallenmoore

Hi, I'm the the creator of quick-sharun

Upstream broke this totally with this commit

You cannot remove ld-linux! You decapitated sharun by doing that. You also cannot remove any of those libraries, removing libdl.so or librt.so will actually break using this with nvidia.

Just in case, do not use AI to debug this, you will get totally wrong information, AI it will use stuff like the exclude list from AppImageKit as reference for its suggestions.

I also noticed this project is bundling the entire /usr/share/swift directory, likely a false positive from the datadir deployment steps which check for strings in the deployed binaries: https://github.com/pkgforge-dev/Anylinux-AppImages/commit/ec72328e9f8f2998ae2c29cced566ef393edb013


Bundled Mesa is hardcoded to Debian DRI paths — /usr/lib/x86_64-linux-gnu/dri:/usr/lib/dri. On Fedora 43, DRI drivers live at /usr/lib64/dri/. Workaround: export LIBGL_DRIVERS_PATH=/usr/lib64/dri. Suggested fix: don't hardcode the path in the build; let Mesa probe the host.

Bundled shared/lib/libstdc++.so.6 is older than Fedora 43's host libstdc++. When the host's Intel VA-API driver (/usr/lib64/dri/iHD_drv_video.so) is loaded through our LD_LIBRARY_PATH, it fails with version 'CXXABI_1.3.15' not found. Workaround: move the bundled libstdc++ aside so the host's wins. Suggested fix: either don't bundle libstdc++, or detect host libstdc++ and prefer it.

That's impossible

If it is happening, it is likely due to the issue that the dynamic linker was never bundled.


Verify the AppImage actually launches on at least one non-Debian distro in CI (Fedora and Arch are the obvious candidates).

We actually require that the application must work in alpine linux (no glibc) to be added to the list here

I also do additional tests on ubuntu 14.04 to check compatibility with older kernels, +98% of the apps are able to work with such kernels.

Samueru-sama avatar May 19 '26 20:05 Samueru-sama

Same problem in Debian 13.

./OpenHuman_0.54.0_amd64_b6fdc311dd745df878faa78c953b9ece.AppImage
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
This doesn't look like a squashfs image.
ERROR: appimage_shall_not_be_integrated : sqfs_open_image error: /home/l/Applications/OpenHuman_0.54.0_amd64_b6fdc311dd745df878faa78c953b9ece.AppImage
AppImageLauncher error: appimage_shall_not_be_integrated() failed (returned -1)
This doesn't look like a squashfs image.
ERROR: appimage_is_terminal_app : sqfs_open_image error: /home/l/Applications/OpenHuman_0.54.0_amd64_b6fdc311dd745df878faa78c953b9ece.AppImage
AppImageLauncher error: appimage_is_terminal_app() failed (returned -1)
Interpreter not found!

liuxiawei avatar May 20 '26 03:05 liuxiawei

So if I download the older versions,does it works?

yjlc-pc avatar May 20 '26 05:05 yjlc-pc

I will give it a shot and to package this properly later.

I had to do this already with OpenCode due to similar nonsense.

Samueru-sama avatar May 20 '26 05:05 Samueru-sama

did anyone find a fix yet? new commit broken?

TechnoSmack avatar May 21 '26 06:05 TechnoSmack

I will give it a shot and to package this properly later.

I had to do this already with OpenCode due to similar nonsense.

https://github.com/pkgforge-dev/OpenHuman-AppImage-Enhanced/releases

Samueru-sama avatar May 21 '26 11:05 Samueru-sama

Root cause is fixed on main. The v0.54.0 AppImage shipped without a bundled dynamic loader and with a non-portable shared/lib/lib.path (the /home/runner/... CI paths you correctly identified). Three merged PRs address this:

  • #2097 — bumps the tauri-cef submodule (e22ec71 → 4cabccf) so ld-linux is no longer stripped from shared/lib/, and makes the exclude sweep recursive.
  • #2307 — release post-processing now detects the Interpreter not found! marker and copies the dynamic loader into the bundle.
  • #2385 — the release now hard-fails if shared/lib/lib.path is missing or still contains /home/runner/ / /__w/ paths, so a broken bundle can no longer ship.

All three landed after the v0.54.0 tag, so they are not in v0.54.0 — they'll be in the next release. Closing as resolved on main; please reopen if it still reproduces on a build that includes these commits (especially on Fedora, since CI verification so far was on Ubuntu).

sanil-23 avatar May 25 '26 14:05 sanil-23