mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #758] [MERGED] Fix Termux startup when sharp cannot load #4763
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#4763
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/758
Author: @Xelvanis
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @Xelvanis
Base:
main← Head:fix/termux-sharp-startup📝 Commits (2)
0f0765eFix Termux startup when sharp cannot load7bba143Address game asset sharp review feedback📊 Changes
1 file changed (+42 additions, -8 deletions)
View changed files
📝
packages/server/src/routes/game-assets.routes.ts(+42 -8)📄 Description
Linked issue
Related: #746
Related: #752
Why this change
Termux users can reach the startup banner and then the server exits while loading
sharpwith the Android ARM64 runtime. Game asset image metadata is nice-to-have enrichment, but it should not block the entire app from booting on platforms wheresharpcannot load.What changed
sharpinside the Game Assets route instead of importing it during server startup.sharpis unavailable, while still returning basic file info.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated/local proof performed:
packages/server/dist/routes/game-assets.routes.jswith a Node ESM loader that makessharpthrow during module evaluation. Before the fix, this exited withIMPORT_FAILED.IMPORT_OK.GET /api/game-assets/file-info/backgrounds/fantasy/mock.pngwithsharpforced unavailable. The endpoint returned200with basic file info and omitted optional image metadata fields.pnpm check; it passed locally.Still needs human/device verification:
./start-termux.shon an Android/Termux install that previously crashed with thesharpandroid-arm64 runtime error.nah, gl guys
Docs and release impact
UI evidence (if applicable)
Not applicable; this is a server startup/runtime fallback fix.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.