mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4064] [Issue]: Backup download and profile export fail with Invalid string length #2192
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#2192
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 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4064
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On Marinara Engine 2.3.4, downloading a backup and exporting a profile fail for a large project/profile with a JavaScript RangeError: Invalid string length.
Expected behavior
Download Backup should create a usable backup archive, and Export Profile should create a usable profile export.
Actual behavior
Both operations fail instead of producing an export. The server throws RangeError: Invalid string length during JSON.stringify.
Steps to reproduce
Environment
Logs, screenshots, or video
Logs: {"level":50,"time":1784928904605,"pid":34020,"hostname":"DESKTOP-IP34AKF","err":{"type":"RangeError","message":"Invalid string length","stack":"RangeError: Invalid string length\n at JSON.stringify ()\n at Object. (file:///D:/MARINARA%20ENGINE/packages/server/dist/routes/backup.routes.js:1517:81)"},"msg":"[backup] Backup download failed"}
Logs: {"level":50,"time":1784928917250,"pid":34020,"hostname":"DESKTOP-IP34AKF","err":{"type":"RangeError","message":"Invalid string length","stack":"RangeError: Invalid string length\n at JSON.stringify ()\n at writeNativeProfileZip (file:///D:/MARINARA%20ENGINE/packages/server/dist/routes/backup.routes.js:786:39)\n at async sendNativeProfileZipExport (file:///D:/MARINARA%20ENGINE/packages/server/dist/routes/backup.routes.js:810:9)\n at async Object. (file:///D:/MARINARA%20ENGINE/packages/server/dist/routes/backup.routes.js:1604:24)"},"msg":"[backup] Profile export failed"}
Video: https://cdn.discordapp.com/attachments/1530329783039164496/1530329785480515714/Screen_Recording_2026-07-24_173520.mp4
Image: https://cdn.discordapp.com/attachments/1530329783039164496/1530329787736916209/image.png
Additional context
The user originally downloaded a release ZIP in the 1.4.x series and has updated automatically via start.bat. They suspect the failure is related to the size of their project/profile. A possible cause suggested by the user is that the export builds an extremely large profile manifest and buffers the ZIP in memory, but this has not been independently confirmed. The user currently uses a script to sync some folders to a phone installation, but it does not back up everything.
Discord thread: Invalid String Length error upon clicking both "Download Backup" and "Export Profile"
Discord thread link: https://discord.com/channels/1417099416812392641/1530329783039164496
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:
@SpicyMarinara commented on GitHub (Jul 25, 2026):
🔧 Ownership note: @SpicyMarinara is handling this in draft PR #4077 as part of the current open-issue sweep.