You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sd.cpp prebuilt installer flattens archive symlinks, breaking sd-cli on Linux (lib*.so: file too short) #9268
After studio/install_sd_cpp_prebuilt.py extracts the sd.cpp release zip, every shared-library symlink in build/bin/ becomes a tiny regular file containing the link-target text. sd-cli/sd-server then can't start, so MiniMax-H3 reports video.load_failed: stable-diffusion.cpp could not be installed or started for MiniMax-H3.
ldd ~/.unsloth/stable-diffusion.cpp/build/bin/sd-cli
error while loading shared libraries: .../libwebpmux.so.3: file too short
Root cause
_safe_extractall() calls zipfile.extractall(). CPython's zipfile does not restore symlinks — it writes each symlink member's data (the target path) as a regular file. Upstream release zips ship libggml*.so, libggml.so*, libwebp*.so, libwebpmux*.so, libsharpyuv*.so as symlinks, so after extraction e.g. libwebpmux.so.3 is a 19-byte file containing libwebpmux.so.3.1.2.
Fix suggestion
Recreate symlink members after extraction, with the same containment guard used for member paths:
Activity
Restore symlink members when extracting the sd.cpp prebuilt
Restore symlink members when extracting the sd.cpp prebuilt (unslotha…