Skip to content

[REGRESSION] JavaScript heap out of memory with nodejs 24.4.1 when building Heroic Games Launcher #59175

Closed as duplicate

Description

@ms178

Version

24.4.1

Platform

❯ uname -a
Linux n5z690 6.15.7-3.1-cachymod-615-bore-lto #1 SMP PREEMPT Sun, 20 Jul 2025 13:53:11 +0000 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Trying to build the Heroic Games Launcher (Git but should also reproduce with 2.17.2) with nodejs 24.4.1 will lead to the attached stack trace early on.

Downgrading to 24.3.0 solves the issue for me. To reproduce on CachyOS (or any Arch-derivative), use nodejs 24.4.1 (which the distro ships by default) and build from this PKGBUILD via makepkg -si: PKGBUILD

The build needs GCC to succeed, but also reproduces the issue with Clang-22git (which fails for different reasons later in the build process).

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior? Why is that the expected behavior?

A successful build.

What do you see instead?

FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0x55be4b368d9b node::OOMErrorHandler(char const, v8::OOMDetails const&) [/usr/bin/../lib/libnode.so.137]
 2: 0x55be4bf2dc4d v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const*, v8::OOMDetails const&) [/usr/bin/../lib/libnode.so.137]
 3: 0x55be4c34ce77  [/usr/bin/../lib/libnode.so.137]
 4: 0x55be4cb9571d  [/usr/bin/../lib/libnode.so.137]

Additional information

During the build only 6GB of RAM are used out of 32 GB RAM total, monitored via btop.

Activity

  1. Renegade334 commented on Jul 23, 2025

    @Renegade334
    Member

    Duplicate of #59057.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions