Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #37150

Closed
Fizayy opened this issue Jan 30, 2021 · 9 comments
Labels
memory Issues and PRs related to the memory management or memory footprint.

Comments

@Fizayy
Copy link

Fizayy commented Jan 30, 2021

Hello, i have this problem but my node version is : 14.15.4
This problem should not normally occur

<--- Last few GCs --->
[23457:0x568bf10]   127523 ms: Mark-sweep (reduce) 4090.3 (4101.2) -> 4088.2 (4102.0) MB, 2275.2 / 0.0 ms  (average mu = 0.158, current mu = 0.096) allocation failure scavenge might not succeed
[23457:0x568bf10]   129893 ms: Mark-sweep (reduce) 4089.3 (4101.0) -> 4088.2 (4102.0) MB, 2364.1 / 0.0 ms  (average mu = 0.085, current mu = 0.002) allocation failure scavenge might not succeed
| <--- JS stacktrace --->
| FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
|  1: 0xa04200 node::Abort() [/usr/bin/node]
|  2: 0x94e4e9 node::FatalError(char const*, char const*) [/usr/bin/node]
|  3: 0xb797be v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
|  4: 0xb79b37 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
|  5: 0xd343c5  [/usr/bin/node]
|  6: 0xd34f4f  [/usr/bin/node]
|  7: 0xd42fdb v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
|  8: 0xd46b9c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
|  9: 0xd1527b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
| 10: 0x105b21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
| 11: 0x14011f9  [/usr/bin/node]
@targos targos added the memory Issues and PRs related to the memory management or memory footprint. label Jan 31, 2021
@targos
Copy link
Member

targos commented Jan 31, 2021

This error means that the V8 engine ran out of memory. It can happen because of a memory leak or too many allocations in your code, or because of a bug in V8 or Node.js.
Please give us a way to reproduce, otherwise we won't be able to help.

@kerosan
Copy link

kerosan commented Feb 17, 2021

same problem

failed when create-react-app recompile by webpack-dev-server

@parthibd
Copy link

I am unable to resolve this problem whatever I do . I am stuck !

@mhdawson
Copy link
Member

As @targos mentioned unless there is a way to reproduce we won't be able to help.

@parthibd
Copy link

Vue cli was using the preetier plugin which was causing exponential growth in terms of memory. Disabled that bugger and it fixed my problem. Nodejs tracing helped! 😁

@LoganMcnulty
Copy link

I am having the exact same issue on Heroku after implementing front-end updates. One of the updates required me to upgrade npm, so i began specifying npm and node for heroku to use.

At first the app would try to run and crash with a memory spike issue, now it is crashing with the above error.

I have rolled back all updates, everything runs perfectly smooth locally, and I have confirmed in dev tools that there are no memory leaks whatsoever.

It's difficult to tell how to reproduce without installing our apps.

@kenorb
Copy link

kenorb commented Sep 10, 2022

Same error with Next.js, see: vercel/next.js#40216

@bnoordhuis
Copy link
Member

^ that's simply exhausting memory, not a node bug.

I'm going to close this, there isn't anything actionable for us.

@bnoordhuis bnoordhuis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2022
@thaisrdev
Copy link

Vue cli was using the preetier plugin which was causing exponential growth in terms of memory. Disabled that bugger and it fixed my problem. Nodejs tracing helped! grin

THANK YOU!!! THAT FIXED MY PROBLEM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory Issues and PRs related to the memory management or memory footprint.
Projects
None yet
Development

No branches or pull requests

9 participants