mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5619] [Issue]: Profile backup restore fails on the seeder's own game-assets .native marker #3113
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#3113
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 @Romuromylus on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5619
Originally assigned to: @Romuromylus on GitHub.
Summary
Restoring a full profile backup on a fresh Termux install fails with
Import failed: Profile asset game-assets/sprites/.native is not a supported image file.The.nativefile is an empty directory marker that Marinara's own game-asset seeder writes into every bundled asset directory; profile export archives those directories verbatim, and the 2.4.4 import asset validation then rejects the marker as a bad image and aborts the entire restore.Expected behavior
A profile archive produced by Marinara's own export restores cleanly, including the
game-assets/directories the seeder manages.Actual behavior
Import stops at the first
.nativemarker under a validated image prefix (game-assets/sprites/,game-assets/backgrounds/behave the same way) and the whole restore fails. For a user who reset their device and only has the backup, this reads as data loss.Steps to reproduce
game-assets/sprites/.nativeexists), export a full profile archive.Profile asset game-assets/sprites/.native is not a supported image file.Environment
Logs, screenshots, or video
Client toast and Imports panel show:
Profile import failed — Profile asset game-assets/sprites/.native is not a supported image file.Server log during the same import also emits repeated[backup] Profile import hydration exceeded 512 MiB after table messages; heap=~455-471 MiBwarnings from the near-limit memory watchdog (warnings only; heap stayed at ~471/1120 MiB — not the failure cause).Additional context
Root cause pairing:
ensureNativeMarkersinpackages/server/src/db/seed-game-assets.tswrites an empty.nativemarker per bundled directory;packages/server/src/services/import/profile-import-assets.tsvalidates every staged file undergame-assets/sprites/andgame-assets/backgrounds/as an image and throws on the marker. The fix should tolerate exactly this marker on import (empty, dot-prefixed, never served as media) while keeping the image validation for everything else.Reported on Discord by TheMoochingHobo (thread: "profile backup import fails after Termux reset"), 2026-08-29.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Aug 29, 2026):
Fixed by PR #5587, squash-merged into staging as
04bf2d110. Profile import now tolerates exactly the game-asset seeder's empty.nativedirectory markers undergame-assets/while still rejecting any non-empty file using the marker name, so a stock profile export restores cleanly on a fresh install. Covered by new cases in the profile-import-asset-security regression. The reporter's backup should import on the next staging build.