openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

OpenHuman 0.53.43 AppImage crashes on Fedora KDE Wayland: CEF GPU init fails, then NSS version mismatch aborts startup

Open mwdearing opened this issue 6 months ago • 3 comments

OpenHuman AppImage crashes on Fedora KDE Wayland during startup

Summary

The 0.53.43 AppImage crashes shortly after launch on Fedora KDE Wayland. The app reaches GTK/ready state, then the embedded CEF/Chromium stack fails GPU context creation and aborts with an NSS library version mismatch.

Problem

On Fedora Linux with KDE Plasma 6 on Wayland, launching the OpenHuman 0.53.43 AppImage causes the app to crash instead of opening normally. This prevents the desktop app from being usable on this environment.

Expected:

  • The AppImage launches and remains usable.

Actual:

  • The app starts, initializes, and then crashes with a coredump (SIGTRAP).
  • Logs show repeated EGL/CEF GPU context creation failures followed by a fatal NSS initialization error:
    • eglCreateContext ... failed with error EGL_BAD_ATTRIBUTE
    • Failed to create shared context for virtualization
    • libnssutil3.so: version 'NSSUTIL_3.108' not found (required by /usr/lib64/libsoftokn3.so)

Version / platform:

  • App version: 0.53.43
  • Package format: AppImage
  • OS: Fedora Linux
  • Desktop: KDE Plasma 6
  • Session: Wayland
  • Architecture: x86_64
  • GPU stack: Mesa radeonsi

Steps to reproduce:

  1. On Fedora KDE Plasma Wayland, download or install the OpenHuman 0.53.43 AppImage.
  2. Launch the app normally.
  3. Wait for startup to complete.
  4. Observe the app crash shortly after launch.

Solution (optional)

Suspected cause:

  • The AppImage appears to bundle an older NSS userspace library set, and CEF ends up mixing bundled libnssutil3.so with host NSS components such as /usr/lib64/libsoftokn3.so.
  • There also appears to be a separate Wayland/EGL GPU initialization failure before the fatal NSS abort.

Possible fix directions:

  • Ship a fully consistent NSS stack inside the AppImage, including matching NSS dependencies.
  • Prevent mixing bundled NSS libraries with host NSS libraries at runtime.
  • Investigate a safer fallback when CEF GPU/EGL context creation fails on Wayland.
  • As a workaround, test software-rendering or X11 launch paths, for example:
    • --disable-gpu
    • --disable-gpu-compositing
    • --use-gl=swiftshader
    • --ozone-platform=x11

Acceptance criteria

  • [ ] Repro gone — Bug no longer reproduces on Fedora Linux + KDE Plasma 6 + Wayland with the 0.53.43 packaging line or its successor.
  • [ ] Regression safety — Unit, integration, or packaging validation coverage added or updated so AppImage runtime library mismatches are caught before release.
  • [ ] Diff coverage ≥ 80% — the fix PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml).
  • [ ] Wayland startup verified — CEF startup no longer fails with repeated eglCreateContext ... EGL_BAD_ATTRIBUTE errors on the stated environment, or the fallback path is documented and intentional.
  • [ ] NSS runtime verified — startup no longer aborts with NSSUTIL_3.108 not found when using the AppImage on current Fedora systems.

Related

  • Coredump timestamp: Fri 2026-05-15 18:55:45 CDT
  • Local app log: ~/.openhuman/logs/openhuman.2026-05-15.log
  • Local CEF log: ~/.openhuman/users/local/cef/chrome_debug.log
  • Relevant fatal log lines:
    • Error initializing NSS ... libnssutil3.so: version 'NSSUTIL_3.108' not found
    • FATAL:crypto/nss_util.cc:146 nss_error=-5925
  • Coredump signal: SIGTRAP

openhuman.2026-05-15.log chrome_debug.log

mwdearing avatar May 16 '26 00:05 mwdearing

I can reproduce what looks like the same issue on openSUSE Tumbleweed as well.

Environment

  • OpenHuman version: 0.53.43
  • Package format: AppImage / openhuman launcher
  • OS: openSUSE Tumbleweed
  • CPE: cpe:2.3:o:opensuse:tumbleweed:20260514:*:*:*:*:*:*:*
  • Kernel: Linux 7.0.3-1-default
  • Architecture: x86_64

Behaviour

Launching normally originally produced a large number of CEF/Chromium GPU/EGL errors, including:

vkCreateInstance() failed: -9
Failed to create and initialize Vulkan implementation
eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE
ContextResult::kFatalFailure: Failed to create shared context for virtualization

After launching with the suggested GPU workaround:

openhuman --disable-gpu --disable-gpu-compositing

the GPU/EGL error spam disappears, but the app still aborts during startup with the same NSS mismatch described in this issue:

Error initializing NSS with a persistent database (sql:/home/dan/.pki/nssdb): /tmp/.mount_openhremp8270100765463228128/shared/lib/libnssutil3.so: version `NSSUTIL_3.108' not found (required by /usr/lib64/libsoftokn3.so)
Error initializing NSS without a persistent database: NSS error code: -5925
FATAL:crypto/nss_util.cc:146] nss_error=-5925, os_error=0

I also ran zypper dup and retested afterwards. The failure mode did not change.

I tried forcing system NSS libraries with LD_PRELOAD:

LD_PRELOAD="/usr/lib64/libnssutil3.so /usr/lib64/libnss3.so /usr/lib64/libsmime3.so /usr/lib64/libplc4.so /usr/lib64/libplds4.so /usr/lib64/libnspr4.so" \
openhuman --disable-gpu --disable-gpu-compositing

but the app still resolved the bundled AppImage library:

/tmp/.mount_openhremp8270100765463228128/shared/lib/libnssutil3.so

and crashed with the same NSSUTIL_3.108 error.

This seems to support the suspected AppImage packaging issue: the runtime is mixing the bundled libnssutil3.so with the host /usr/lib64/libsoftokn3.so, and the versions are incompatible.

danstis avatar May 16 '26 10:05 danstis

This is the same NSS + sharun/lib4bin packaging issue on Linux. Detailed root cause and analysis here: https://github.com/tinyhumansai/openhuman/issues/2001#issuecomment-4472667853

aliasocracy avatar May 17 '26 22:05 aliasocracy

Status update — most of this is already addressed in flight:

  • Item #1: NSS NSSUTIL_3.108 crash — fixed by #2032 (merged in 8cfc27bf, scheduled for the next release). After updating you should no longer see libnssutil3.so: version 'NSSUTIL_3.108' not found on Fedora / openSUSE / Arch / Ubuntu 24.04+.
  • Item #2: X Error: BadWindow on _NET_WM_STATE_KEEP_ABOVE (Wayland/XWayland mascot crash) — tracked in #2096 (silent XSetErrorHandler) and #2097 (submodule bump to pull tinyhumansai/tauri-cef#16, which also keeps ld-linux and recurses the NSS exclude sweep so sharun can still bootstrap).
  • Item #3: EGL/VAAPI on Wayland — already gated by --disable-gpu per #1697; not in scope here.

Once #2096 and #2097 land alongside the next release that contains #2032, the AppImage launches end-to-end on Fedora KDE Wayland (and the other rolling distros reported in #2001 / #1823). Leaving this open until those two PRs merge and the combined fix ships, then it can be closed.

CodeGhost21 avatar May 18 '26 13:05 CodeGhost21