mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8917] [Issue]: native-export-memory regression flakes: its export peaks at the 128 MB heap limit #8551
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#8551
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 (Nov 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8917
Originally assigned to: @SpicyMarinara on GitHub.
Summary
scripts/regressions/native-export-memory.regression.tssometimes fails with the export server running out of memory:Details
The test starts its export server with
HEAP_LIMIT_MB = 128. On current staging (ad6977f8a5), three local runs reported "baseline heap 88 MB" with a peak of 128, 121 and 128 MB. The peak reaches the limit itself, so whether a run passes depends on when garbage collection runs. It failed once in CI on #8914'snode-regressions 1/3and once locally, with the same baseline heap as staging.Raising the limit doesn't work, because the test's own control check, the buffered export that must run out of memory, then fits (it failed at 192 MB).
Expected behavior
The streamed export has real headroom under the test's limit, and the buffered control still runs out of memory. For example, the streamed path could free each image before reading the next one, or the limit and control could be sized apart.
@SpicyMarinara commented on GitHub (Nov 7, 2026):
Fixed in #8943 (merged into staging): the export streams images as base64 slices, so its old-generation peak sits ~25 MB under the test's 128 MB limit while the buffered control still runs out.