[GH-ISSUE #4936] [Issue]: FATAL ERROR: JavaScript heap out of memory #2737

Closed
opened 2026-10-21 05:54:09 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @JustLukelay on GitHub (Aug 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4936

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Crash on Termux when navigating panels or sending messages. Did not happen on older versions.

Expected behavior

Not crashing.

Actual behavior

Well it crashes.

Steps to reproduce

  1. ./start-termux.sh
  2. navigate around like normal or send some messages
  3. crash

Environment

  • Marinara Engine version: 2.4.1
  • Install type: termux
  • OS + version: Xiaomi HyperOS 1.0.19.0UKWEUXM
  • Browser or app shell: Brave

Logs, screenshots, or video

~/Marinara-Engine $ ./start-termux.sh

╔══════════════════════════════════════════╗
║ Marinara Engine — Termux Launcher ║
╚══════════════════════════════════════════╝

[OK] Node.js v24.17.0 found
[..] Aligning pnpm to 10.34.5 via Corepack...
[OK] pnpm 10.34.5 ready
[..] Checking for updates...
[OK] Already up to date

[..] Installing dependencies...
This may take several minutes on mobile.

[..] Reclaiming dependency cache space from older releases...
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
. preinstall$ node ./scripts/clean-stale-client-artif…
└─ Done in 217ms
. postinstall$ node ./scripts/ensure-native-deps.mjs
│ [native-deps] Skipping onnxruntime-node check for u…
└─ Done in 206ms
Done in 2.1s using pnpm v10.34.5

══════════════════════════════════════════
Starting Marinara Engine on http://0.0.0.0:7860
Local browser URL: http://127.0.0.1:7860
LAN access: http://10.0.0.54:7860

Open the URL above in your mobile browser.
Press Ctrl+C to stop

══════════════════════════════════════════

<--- Last few GCs --->

[30084:0xb40000768f948000] 3807396 ms: Mark-Compact 877.3 (951.0) -> 871.1 (941.4) MB, pooled: 46 MB, 25.41 / 0.01 ms (+ 0.0 ms in 1 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 564 ms) (average mu = 1.000, current [30084:0xb40000768f948000] 3815799 ms: Mark-Compact (reduce) 1238.8 (1303.6) -> 1022.3 (1026.9) MB, pooled: 0 MB, 183.31 / 88.42 ms (+ 9.5 ms in 166 steps since start of marking, biggest step 1.6 ms, walltime since start of marking 295 ms) (average mu =
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

Aborted ./start-termux.sh

Additional context

=3c

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @JustLukelay on GitHub (Aug 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4936 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Crash on Termux when navigating panels or sending messages. Did not happen on older versions. ## Expected behavior Not crashing. ## Actual behavior Well it crashes. ## Steps to reproduce 1. ./start-termux.sh 2. navigate around like normal or send some messages 3. crash ## Environment - Marinara Engine version: 2.4.1 - Install type: termux - OS + version: Xiaomi HyperOS 1.0.19.0UKWEUXM - Browser or app shell: Brave ## Logs, screenshots, or video ~/Marinara-Engine $ ./start-termux.sh ╔══════════════════════════════════════════╗ ║ Marinara Engine — Termux Launcher ║ ╚══════════════════════════════════════════╝ [OK] Node.js v24.17.0 found [..] Aligning pnpm to 10.34.5 via Corepack... [OK] pnpm 10.34.5 ready [..] Checking for updates... [OK] Already up to date [..] Installing dependencies... This may take several minutes on mobile. [..] Reclaiming dependency cache space from older releases... Scope: all 4 workspace projects Lockfile is up to date, resolution step is skipped Already up to date . preinstall$ node ./scripts/clean-stale-client-artif… └─ Done in 217ms . postinstall$ node ./scripts/ensure-native-deps.mjs │ [native-deps] Skipping onnxruntime-node check for u… └─ Done in 206ms Done in 2.1s using pnpm v10.34.5 ══════════════════════════════════════════ Starting Marinara Engine on http://0.0.0.0:7860 Local browser URL: http://127.0.0.1:7860 LAN access: http://10.0.0.54:7860 Open the URL above in your mobile browser. Press Ctrl+C to stop ══════════════════════════════════════════ <--- Last few GCs ---> [30084:0xb40000768f948000] 3807396 ms: Mark-Compact 877.3 (951.0) -> 871.1 (941.4) MB, pooled: 46 MB, 25.41 / 0.01 ms (+ 0.0 ms in 1 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 564 ms) (average mu = 1.000, current [30084:0xb40000768f948000] 3815799 ms: Mark-Compact (reduce) 1238.8 (1303.6) -> 1022.3 (1026.9) MB, pooled: 0 MB, 183.31 / 88.42 ms (+ 9.5 ms in 166 steps since start of marking, biggest step 1.6 ms, walltime since start of marking 295 ms) (average mu = FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- Aborted ./start-termux.sh ## Additional context =3c ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:54:09 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Aug 12, 2026):

Closing as a duplicate of #4730, fixed on staging by #4736. The Termux launcher now applies a 2 GiB default Node heap only when NODE_OPTIONS does not already contain an explicit heap limit, so operator-provided limits remain authoritative. Marinara Engine v2.4.1 predates that staging fix.

<!-- gh-comment-id:5264258045 --> @SpicyMarinara commented on GitHub (Aug 12, 2026): Closing as a duplicate of #4730, fixed on `staging` by #4736. The Termux launcher now applies a 2 GiB default Node heap only when `NODE_OPTIONS` does not already contain an explicit heap limit, so operator-provided limits remain authoritative. Marinara Engine v2.4.1 predates that staging fix.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2737
No description provided.