[GH-ISSUE #8126] [Issue]: Client build fails with JavaScript heap out of memory #7572

Closed
opened 2026-10-24 04:04:22 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8126

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Repeated installation attempts fail while building the client. Node runs out of JavaScript heap memory at around 1.95 GB, and pnpm exits with status 134.

Expected behavior

The installation and client build should complete successfully.

Actual behavior

The client build fails with FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory, followed by ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL and exit status 134.

Steps to reproduce

  1. Attempt to install Marinara Engine; the exact installation method and steps were not provided.
  2. The @marinara-engine/client@2.5.1 build runs node ./scripts/build.mjs and fails with the reported heap out-of-memory error.

Environment

  • Marinara Engine version: Not provided (client package reports version 2.5.1)
  • Install type: Not provided
  • OS + version: Windows (version/build not provided)
  • Browser or app shell: Not provided

Logs, screenshots, or video

Log excerpt shows V8 Mark-Compact at approximately 1.95 GB followed by FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory. The failing package is C:\Users\fishl\AppData\Local\MarinaraEngine\packages\client; pnpm reports ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL and exit status 134.

Additional context

The user reports encountering the error across multiple installation attempts. The available log confirms a Node.js heap-limit failure during the client build but does not establish its underlying cause or indicate that physical RAM is insufficient. Windows version, system specifications, Node and pnpm versions, installation method, and full logs were not provided.

Discord thread: Exit Status 134 \ ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL
Discord thread link: https://discord.com/channels/1417099416812392641/1562947901498335332
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (5 messages)
[2026-10-22T21:56:57.885Z] Bion_Sawyer: Trying multiple times to install ME and have repeatedly gotten this error. Was told to post here, and will post more specs and answer questions inside.

` ` `
packages/client build: [12128:000001F0F1117000]   827763 ms: Mark-Compact 1948.2 (1958.4) -> 1944.4 (1958.6) MB, pooled: 2 MB, 4242.86 / 0.00 ms  (average mu = 0.135, current mu = 0.035) allocation failure; scavenge might not succeed
packages/client build: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
packages/client build: ----- Native stack trace -----
packages/client build:  1: 00007FF6CCD4403F node::OnFatalError+1343
packages/client build:  2: 00007FF6CD98FAA7 v8::Function::NewInstance+423
packages/client build:  3: 00007FF6CD7904D7 v8::base::AddressSpaceReservation::AddressSpaceReservation+322071
packages/client build:  4: 00007FF6CD7941E4 v8::base::AddressSpaceReservation::AddressSpaceReservation+337700
packages/client build:  5: 00007FF6CD7A313C v8::internal::StrongRootAllocatorBase::deallocate_impl+16604
packages/client build:  6: 00007FF6CD7A297B v8::internal::StrongRootAllocatorBase::deallocate_impl+14619
packages/client build:  7: 00007FF6CEC2A2AD v8::base::UnsignedDivisionByConstant<unsigned __int64>+2794653
packages/client build:  8: 00007FF6CD78DFA0 v8::base::AddressSpaceReservation::AddressSpaceReservation+312544
packages/client build:  9: 00007FF6CD7A87EA X509_STORE_set_cleanup+5098
packages/client build: 10: 00007FF6CD7B4C86 uv_timer_set_repeat+20694
packages/client build: 11: 00007FF6CD3869C7 v8::String::Utf8Value::~Utf8Value+144199
packages/client build: 12: 00007FF6CEADB33A v8::base::UnsignedDivisionByConstant<unsigned __int64>+1422634
packages/client build: 13: 000001F090732ACB
packages/client build: Failed
C:\Users\fishl\AppData\Local\MarinaraEngine\packages\client:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @marinara-engine/client@2.5.1 build: `node ./scripts/build.mjs`
Exit status 134
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562947901498335332]

[2026-10-22T21:56:58.595Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562947904476422249]

[2026-10-22T22:00:54.460Z] Bion_Sawyer: Hi Prof, quick query; how the heck do I get a 'support diagnostic' when my issue is with installing the Marinara Engine to begin with? I can't access any tabs inside of the engine when it refuses to install. 

Also, 'ylliselmanii' told me the more specs I offered about my setup the better- what should I mark down in particular about my PC? I don't want to give 'filler information' if I can help it, but I'd still want to give viable information if possible for diagnostic.
[Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562948893766062281]

[2026-10-22T22:02:39.117Z] Professor Mari [bot]: You’re right: you can’t fetch an in-app diagnostic if ME won’t start. In the current checkout, **Support Diagnostics** is under **Settings → Advanced** and copies version/build, platform, GPU, and active-model details (`packages/client/src/components/panels/SettingsPanel.tsx`, `packages/client/src/lib/support-diagnostics.ts`). No need to chase that button while the app is blocked.

Your log is already useful: it shows the client build running `node ./scripts/build.mjs` and Node’s JavaScript heap running out around 1.95 GB. That confirms a heap-limit failure during the build; it **doesn’t by itself prove your PC is low on physical RAM**.

For a useful report, add:
- ME release/version and how you’re installing it (packaged installer or building from source), plus whether it’s a fresh install or update.
- Windows version/build (`winver`) and system type, exact CPU model, installed RAM, and free space on the install drive.
- Approximate available RAM during the attempt.
- If you ran the build yourself: `node -v` and `pnpm -v`; otherwise, say which installer you used.
- Full log from the start, exact steps, and whether each attempt fails the same way. Browser used to download it is useful only if relevant.

The excerpt doesn’t establish why the heap limit was reached, so please put those details in a support thread here: https://discord.com/channels/1417099416812392641/1472566848104042496

I can make mistakes—I’m still an LLM, so don’t trust my diagnosis too blindly.
[Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562949332729204787]

[2026-10-22T22:08:07.530Z] ylliselmanii: Oh, i totally brainfarted with the diagnostics suggestion
[Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562950710193168426]

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 @SpicyMarinara on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8126 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Repeated installation attempts fail while building the client. Node runs out of JavaScript heap memory at around 1.95 GB, and pnpm exits with status 134. ## Expected behavior The installation and client build should complete successfully. ## Actual behavior The client build fails with `FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory`, followed by `ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL` and exit status 134. ## Steps to reproduce 1. Attempt to install Marinara Engine; the exact installation method and steps were not provided. 2. The `@marinara-engine/client@2.5.1` build runs `node ./scripts/build.mjs` and fails with the reported heap out-of-memory error. ## Environment - Marinara Engine version: Not provided (client package reports version 2.5.1) - Install type: Not provided - OS + version: Windows (version/build not provided) - Browser or app shell: Not provided ## Logs, screenshots, or video Log excerpt shows V8 Mark-Compact at approximately 1.95 GB followed by `FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory`. The failing package is `C:\Users\fishl\AppData\Local\MarinaraEngine\packages\client`; pnpm reports `ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL` and exit status 134. ## Additional context The user reports encountering the error across multiple installation attempts. The available log confirms a Node.js heap-limit failure during the client build but does not establish its underlying cause or indicate that physical RAM is insufficient. Windows version, system specifications, Node and pnpm versions, installation method, and full logs were not provided. Discord thread: Exit Status 134 \ ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL Discord thread link: https://discord.com/channels/1417099416812392641/1562947901498335332 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-10-22T21:56:57.885Z] Bion_Sawyer: Trying multiple times to install ME and have repeatedly gotten this error. Was told to post here, and will post more specs and answer questions inside. ` ` ` packages/client build: [12128:000001F0F1117000] 827763 ms: Mark-Compact 1948.2 (1958.4) -> 1944.4 (1958.6) MB, pooled: 2 MB, 4242.86 / 0.00 ms (average mu = 0.135, current mu = 0.035) allocation failure; scavenge might not succeed packages/client build: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory packages/client build: ----- Native stack trace ----- packages/client build: 1: 00007FF6CCD4403F node::OnFatalError+1343 packages/client build: 2: 00007FF6CD98FAA7 v8::Function::NewInstance+423 packages/client build: 3: 00007FF6CD7904D7 v8::base::AddressSpaceReservation::AddressSpaceReservation+322071 packages/client build: 4: 00007FF6CD7941E4 v8::base::AddressSpaceReservation::AddressSpaceReservation+337700 packages/client build: 5: 00007FF6CD7A313C v8::internal::StrongRootAllocatorBase::deallocate_impl+16604 packages/client build: 6: 00007FF6CD7A297B v8::internal::StrongRootAllocatorBase::deallocate_impl+14619 packages/client build: 7: 00007FF6CEC2A2AD v8::base::UnsignedDivisionByConstant<unsigned __int64>+2794653 packages/client build: 8: 00007FF6CD78DFA0 v8::base::AddressSpaceReservation::AddressSpaceReservation+312544 packages/client build: 9: 00007FF6CD7A87EA X509_STORE_set_cleanup+5098 packages/client build: 10: 00007FF6CD7B4C86 uv_timer_set_repeat+20694 packages/client build: 11: 00007FF6CD3869C7 v8::String::Utf8Value::~Utf8Value+144199 packages/client build: 12: 00007FF6CEADB33A v8::base::UnsignedDivisionByConstant<unsigned __int64>+1422634 packages/client build: 13: 000001F090732ACB packages/client build: Failed C:\Users\fishl\AppData\Local\MarinaraEngine\packages\client:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @marinara-engine/client@2.5.1 build: `node ./scripts/build.mjs` Exit status 134 ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562947901498335332] [2026-10-22T21:56:58.595Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562947904476422249] [2026-10-22T22:00:54.460Z] Bion_Sawyer: Hi Prof, quick query; how the heck do I get a 'support diagnostic' when my issue is with installing the Marinara Engine to begin with? I can't access any tabs inside of the engine when it refuses to install. Also, 'ylliselmanii' told me the more specs I offered about my setup the better- what should I mark down in particular about my PC? I don't want to give 'filler information' if I can help it, but I'd still want to give viable information if possible for diagnostic. [Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562948893766062281] [2026-10-22T22:02:39.117Z] Professor Mari [bot]: You’re right: you can’t fetch an in-app diagnostic if ME won’t start. In the current checkout, **Support Diagnostics** is under **Settings → Advanced** and copies version/build, platform, GPU, and active-model details (`packages/client/src/components/panels/SettingsPanel.tsx`, `packages/client/src/lib/support-diagnostics.ts`). No need to chase that button while the app is blocked. Your log is already useful: it shows the client build running `node ./scripts/build.mjs` and Node’s JavaScript heap running out around 1.95 GB. That confirms a heap-limit failure during the build; it **doesn’t by itself prove your PC is low on physical RAM**. For a useful report, add: - ME release/version and how you’re installing it (packaged installer or building from source), plus whether it’s a fresh install or update. - Windows version/build (`winver`) and system type, exact CPU model, installed RAM, and free space on the install drive. - Approximate available RAM during the attempt. - If you ran the build yourself: `node -v` and `pnpm -v`; otherwise, say which installer you used. - Full log from the start, exact steps, and whether each attempt fails the same way. Browser used to download it is useful only if relevant. The excerpt doesn’t establish why the heap limit was reached, so please put those details in a support thread here: https://discord.com/channels/1417099416812392641/1472566848104042496 I can make mistakes—I’m still an LLM, so don’t trust my diagnosis too blindly. [Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562949332729204787] [2026-10-22T22:08:07.530Z] ylliselmanii: Oh, i totally brainfarted with the diagnostics suggestion [Discord message: https://discord.com/channels/1417099416812392641/1562947901498335332/1562950710193168426] ``` </details> ## 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-24 04:04:22 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

I checked current staging (957cb117bae645e029dbeb00157b4df248053ece) against this report. The desktop build already detects a small default heap and raises only the build children to up to 3072 MiB when the machine/container memory budget permits (merged in #7786). An explicit NODE_OPTIONS heap is intentionally preserved; #7838 added the diagnostic explaining a too-small override. The existing real build-wrapper regression passes, including 2 GiB desktop defaults, explicit absolute/percentage overrides and container limits.

The supplied excerpt proves a heap exhaustion, but does not identify whether this is the TypeScript step, a later bundler step, a retained explicit override, or a machine whose memory budget prevents the automatic increase. I am leaving this report open rather than applying an unverified heap increase.

For the affected Windows install, please provide the full output from the start of installation (especially any [build] Client build heap limit: line), the installer/release used, Windows version, CPU/RAM, available RAM during the attempt, node -v, pnpm -v, and the value of NODE_OPTIONS if set. These can be collected in a terminal; the app does not need to launch. Please redact credentials or private paths from the full log.

The existing recovery advice is in Troubleshooting: desktop heap errors. Do not delete the profile or chats to repair a build failure.

<!-- gh-comment-id:6354521458 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): I checked current staging (`957cb117bae645e029dbeb00157b4df248053ece`) against this report. The desktop build already detects a small default heap and raises only the build children to up to 3072 MiB when the machine/container memory budget permits (merged in #7786). An explicit `NODE_OPTIONS` heap is intentionally preserved; #7838 added the diagnostic explaining a too-small override. The existing real build-wrapper regression passes, including 2 GiB desktop defaults, explicit absolute/percentage overrides and container limits. The supplied excerpt proves a heap exhaustion, but does not identify whether this is the TypeScript step, a later bundler step, a retained explicit override, or a machine whose memory budget prevents the automatic increase. I am leaving this report open rather than applying an unverified heap increase. For the affected Windows install, please provide the full output from the start of installation (especially any `[build] Client build heap limit:` line), the installer/release used, Windows version, CPU/RAM, available RAM during the attempt, `node -v`, `pnpm -v`, and the value of `NODE_OPTIONS` if set. These can be collected in a terminal; the app does not need to launch. Please redact credentials or private paths from the full log. The existing recovery advice is in [Troubleshooting: desktop heap errors](https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/docs/TROUBLESHOOTING.md#desktop-javascript-heap-out-of-memory-while-type-checking-the-client). Do not delete the profile or chats to repair a build failure.
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#7572
No description provided.