The invalid array length Allocation failed error that was requiring us to have the nodejs-lts-jod dependency was fixed in nodejs v24.5. Arch's nodejs package is now on v25 so we can swap back to it.
Search Criteria
Package Details: heroic-games-launcher-git 2.19.1.r11.g27e43eac1-2
Package Actions
| Git Clone URL: | https://aur.archlinux.org/heroic-games-launcher-git.git (read-only, click to copy) |
|---|---|
| Package Base: | heroic-games-launcher-git |
| Description: | Native GOG, Epic Games and Amazon games launcher for Linux |
| Upstream URL: | https://heroicgameslauncher.com/ |
| Licenses: | GPL-3.0-only |
| Conflicts: | heroic-games-launcher |
| Provides: | heroic-games-launcher |
| Submitter: | FabioLolix |
| Maintainer: | FabioLolix |
| Last Packager: | FabioLolix |
| Votes: | 7 |
| Popularity: | 0.54 |
| First Submitted: | 2022-07-18 20:21 (UTC) |
| Last Updated: | 2026-02-17 21:55 (UTC) |
Dependencies (11)
- electron39 (electron39-binAUR, electron39-v3-binAUR)
- glibc (glibc-gitAUR, glibc-eacAUR, glibc-git-native-pgoAUR)
- libgcc (libgcc-snapshotAUR)
- which (which-gitAUR)
- zlib (zlib-gitAUR, zlib-ng-compat-gitAUR, zlib-ng-compat)
- desktop-file-utils (desktop-file-utils-gitAUR) (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- nodejs-lts-jod (make)
- npm (python-nodejs-wheelAUR, npm-corepackAUR) (make)
- pnpm (pnpm-corepackAUR, pnpm-binAUR) (make)
- python (make)
Required by (4)
- cartridges-git (requires heroic-games-launcher) (optional)
- dwproton-bin (requires heroic-games-launcher) (optional)
- dwproton-signed-bin (requires heroic-games-launcher) (optional)
- noon-gaming (requires heroic-games-launcher)
Sources (1)
lysergia commented on 2026-01-17 02:25 (UTC)
FabioLolix commented on 2025-07-28 22:38 (UTC)
Currently fails to build for me
[1121909:0x7f813c002000] 22779 ms: Scavenge 593.8 (723.3) -> 593.8 (723.3) MB, pooled: 0 MB, 88.05 / 0.00 ms (average mu = 0.989, current mu = 0.752) allocation failure;
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
FabioLolix commented on 2025-07-28 22:33 (UTC)
-
The pkgbuild is hosted at https://github.com/FabioLolix/PKGBUILD-AUR_fix
-
Upstream isn't interested with problems with
heroic-games-launcherorheroic-games-launcher-gitso don't report them right away; retry withheroic-games-launcher-bin
italoghost commented on 2025-03-25 01:59 (UTC)
Hi! This package has a problem when you use the option to "Create Steam shortcut". Because you are using a shell script to call electron to execute the app.asar, it will add electron as the executable to the shortcut on Steam.
I have created a package based on yours, with the system electron, that does not have this problem, as I symlink the actual binary from linux-unpacked. I think you could do something similar.
FabioLolix commented on 2024-07-26 21:50 (UTC)
Thanks for reporting!
italoghost commented on 2024-07-23 02:28 (UTC)
Hi! Since this commit, it is necessary to add pnpm download-helper-binaries to the build instructions:
build() {
cd HeroicGamesLauncher
pnpm install
pnpm download-helper-binaries
pnpm dist:linux tar.xz
}
FabioLolix commented on 2024-06-02 20:53 (UTC)
btw my network error reported some days ago seems instead that upstream (the Electron vendor) have deleted that tag
FabioLolix commented on 2024-05-22 08:13 (UTC)
Thanks for the pnpm tip
About the makedepends you can find out with devtools
About the depends that 3 are mandatory for every electron program
italoghost commented on 2024-05-22 03:16 (UTC)
Hi, @FabioLolix! As the project is using pnpm on its building instructions, I tried to change the PKGBUILD and it worked. I am not experienced on this and I do not know if any of the packages that I removed from the depends and makedepends would cause any problems, but I supposed that they would be satisfied when I added the command pnpm install, as stated on the building instructions.
Could you tell if what I did make sense? Because it has build just fine!
Here is what I changed:
diff --unified --recursive --text "/home/ghost/repos/heroic-games-launcher-git (2)/PKGBUILD" "/home/ghost/repos/heroic-games-launcher-git (3)/PKGBUILD"
--- "/home/ghost/repos/heroic-games-launcher-git (2)/PKGBUILD" 2023-11-04 12:27:10.000000000 -0300
+++ "/home/ghost/repos/heroic-games-launcher-git (3)/PKGBUILD" 2024-05-21 23:52:52.238193331 -0300
@@ -1,14 +1,13 @@
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
pkgname=heroic-games-launcher-git
-pkgver=2.10.0.r1.gc19bc525d
+pkgver=2.14.1.r24.g969c8ae08
pkgrel=1
pkgdesc="Native GOG, Epic Games and Amazon games launcher for Linux"
arch=(x86_64)
url="https://heroicgameslauncher.com/"
license=(GPL3)
-depends=(alsa-lib gtk3 nss)
-makedepends=(git yarn node-gyp openssh)
+makedepends=(git pnpm)
provides=(heroic-games-launcher)
conflicts=(heroic-games-launcher)
source=("git+https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher.git")
@@ -21,8 +20,8 @@
build() {
cd HeroicGamesLauncher
- yarn
- yarn dist:linux tar.xz
+ pnpm install
+ pnpm dist:linux tar.xz
}
package() {
diff --unified --recursive --text "/home/ghost/repos/heroic-games-launcher-git (2)/.SRCINFO" "/home/ghost/repos/heroic-games-launcher-git (3)/.SRCINFO"
--- "/home/ghost/repos/heroic-games-launcher-git (2)/.SRCINFO" 2023-11-04 12:27:10.000000000 -0300
+++ "/home/ghost/repos/heroic-games-launcher-git (3)/.SRCINFO" 2024-05-21 23:50:17.105884572 -0300
@@ -6,12 +6,7 @@
arch = x86_64
license = GPL3
makedepends = git
- makedepends = yarn
- makedepends = node-gyp
- makedepends = openssh
- depends = alsa-lib
- depends = gtk3
- depends = nss
+ makedepends = pnpm
provides = heroic-games-launcher
conflicts = heroic-games-launcher
source = git+https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher.git
FabioLolix commented on 2024-05-21 15:30 (UTC)
I have a different failure; network related
error Error: https://github.com/castlabs/electron-releases: socket hang up
==> Updated version: heroic-games-launcher-git 2.14.1.r24.g969c8ae08-1
==> Starting build()...
yarn install v1.22.22
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
(node:1816) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
warning @testing-library/jest-dom > css > source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
error Error: https://github.com/castlabs/electron-releases: socket hang up
at TLSSocket.socketOnEnd (node:_http_client:526:23)
at TLSSocket.emit (node:events:532:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
While the stable version give
==> Starting build()...
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "ts-morph@17.0.1" is incompatible with requested version "ts-morph@^13.0.1"
[3/5] Fetching packages...
(node:1786) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[4/5] Linking dependencies...
warning " > recharts@2.4.3" has unmet peer dependency "prop-types@^15.6.0".
warning "recharts > react-smooth@2.0.5" has unmet peer dependency "prop-types@^15.6.0".
warning " > @vitejs/plugin-react-swc@3.2.0" has incorrect peer dependency "vite@^4".
warning "electron-builder > app-builder-lib@24.13.3" has unmet peer dependency "electron-builder-squirrel-windows@24.13.3".
[5/5] Building fresh packages...
error /build/heroic-games-launcher/src/HeroicGamesLauncher/node_modules/@fortawesome/fontawesome-common-types: Command failed.
Exit code: 126
Command: node attribution.js
Arguments:
Directory: /build/heroic-games-launcher/src/HeroicGamesLauncher/node_modules/@fortawesome/fontawesome-common-types
Output:
/bin/sh: /tmp/yarn--1716305333779-0.3006642665045314/node: /bin/sh: bad interpreter: Text file busy
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
warning Error running install script for optional dependency: "/build/heroic-games-launcher/src/HeroicGamesLauncher/node_modules/register-scheme: Command failed.
Exit code: 126
Command: node-gyp rebuild
Arguments:
Directory: /build/heroic-games-launcher/src/HeroicGamesLauncher/node_modules/register-scheme
Output:
/usr/bin/env: ‘node’: Text file busy"
info This module is OPTIONAL, you can safely ignore this error
==> ERROR: A failure occurred in build().
Pinned Comments
FabioLolix commented on 2025-07-28 22:33 (UTC)
The pkgbuild is hosted at https://github.com/FabioLolix/PKGBUILD-AUR_fix
Upstream isn't interested with problems with
heroic-games-launcherorheroic-games-launcher-gitso don't report them right away; retry withheroic-games-launcher-binFabioLolix commented on 2024-05-21 12:28 (UTC)
You are using an AUR helper see https://aur.archlinux.org/packages/heroic-games-launcher#comment-950957 for starting