Repository navigation
Node 23 - heap out of memory #55418
Description
Activity
Same issue here 😢 (also using Windows 10)
Thanks for reporting!
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
Reacted by Aviv KellerFor my part, I managed to locate the source of my error: it comes from the
execapackage when thepreferLocaloption is enabled.import {execa} from "execa"; // Installed: v9.4.1 const $ = execa({preferLocal: true, stdio: "inherit"}); await $`node --version`; // Error... but OK when `preferLocal` is `false`.
I guess I'll just have to open a ticket on the
execarepository.
(Done => sindresorhus/execa#1161)In my case I'm afraid it will be almost impossible to locate the source of the error. We have a massive back-end with plenty of packages and I even don't know where to start looking for the root cause. But I have an idea that issue might be related to that one bug: #55414
- addedinvalidIssues and PRs that are invalid.Issues and PRs that are invalid.and removed
on Oct 17, 2024 This can be reproduced with @CedX's snippet on Windows.
The issue on this is
path.resolve('D:\\', '..')returnsD:, rather thanD:\\on Windows. This causes indefinite loop on https://github.com/sindresorhus/unicorn-magic/blob/main/node.js#L16-L29.Reacted by Cédric Belin and Yahor Siarheyenka- addedpathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.and removedinvalidIssues and PRs that are invalid.Issues and PRs that are invalid.
on Oct 17, 2024 - addedwindowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Oct 17, 2024 - removedwindowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Oct 17, 2024 The issue was fixed in the new version of Node 23.1.0 🩹
Reacted by Cédric BelinAlso OK on my side with v23.1.0 👍
Version
v23.0.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Source code cannot be provided
How often does it reproduce? Is there a required condition?
Reproduced all the time
What is the expected behavior? Why is that the expected behavior?
Application have to run
What do you see instead?
Additional information
Using
--max-old-space-size=8192in NODE_OPTIONS didn't help 😣