mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3975] [Issue]: Precise Reference fails on Termux due to sharp native module #2149
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3975
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Since v2.3.3, illustration and sprite generation fails on Termux when the character card image is sent as a Precise Reference. The optional sharp dependency cannot load or build for the android-arm64 runtime.
Expected behavior
Illustrations and sprites should generate successfully when the character card image is used as a reference, as they did before v2.3.3.
Actual behavior
Generation fails when the character card image is sent as a reference. Marinara reports that NovelAI Precise Reference Images require server image preprocessing, but sharp is unavailable.
Steps to reproduce
Environment
Logs, screenshots, or video
Runtime error: "NovelAI precise reference images require server image preprocessing, but the optional sharp dependency is unavailable." Initial sharp error: "Could not load the "sharp" module using the android-arm64 runtime". After installing sharp@0.34.5, libvips v8.18.4-2, clang, make, python, node-gyp, and node-addon-api, rebuilding sharp starts a source build but fails with: "gyp: Undefined variable android_ndk_path in binding.gyp". Build output identifies node-gyp 13.0.1, Node.js 24.17.0, Android, arm64, and globally installed libvips.
Additional context
The repository was up to date with main matching origin/main. The issue reportedly occurs with NovelAI and image providers through OpenRouter or NanoGPT, but only when sending the character card image as a reference; generation without that reference works. The same workflow worked before v2.3.3. sharp has no prebuilt binary for android-arm64 and its source build expects an Android NDK environment that is not available or configured in Termux.
Discord thread: [Bug] NovelAI Precise Reference unavailable on Termux Android due to sharp native module failure
Discord thread link: https://discord.com/channels/1417099416812392641/1529786223143551017
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: