v2.1.4 FATAL ERROR: Reached heap limit Allocation failed
See original GitHub issueHello again. Thanks for the 2.1.2 version fix.
Unfortunately, upgrading to 2.1.4 and running tsc presented an error on a whole different level:
<--- Last few GCs --->
[2053:0x5bd9060] 88488 ms: Scavenge 2027.0 (2073.3) -> 2023.9 (2074.5) MB, 19.1 / 0.0 ms (average mu = 0.355, current mu = 0.179) allocation failure
[2053:0x5bd9060] 88515 ms: Scavenge 2028.2 (2074.5) -> 2025.9 (2077.8) MB, 11.2 / 0.0 ms (average mu = 0.355, current mu = 0.179) allocation failure
[2053:0x5bd9060] 88542 ms: Scavenge 2031.4 (2077.8) -> 2028.8 (2096.0) MB, 10.2 / 0.0 ms (average mu = 0.355, current mu = 0.179) allocation failure
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xb00e10 node::Abort() [/usr/local/bin/node]
2: 0xa1823b node::FatalError(char const*, char const*) [/usr/local/bin/node]
3: 0xcee09e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
4: 0xcee417 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
5: 0xea65d5 [/usr/local/bin/node]
6: 0xeb5cad v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
7: 0xeb89ae v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
8: 0xe79b12 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/local/bin/node]
9: 0xe74[43](https://github.com/foroscom/foros-fe/runs/5145598143?check_suite_focus=true#step:5:43)c v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawArray(int, v8::internal::AllocationType) [/usr/local/bin/node]
10: 0xe7[45](https://github.com/foroscom/foros-fe/runs/5145598143?check_suite_focus=true#step:5:45)15 v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller(v8::internal::Handle<v8::internal::Map>, int, v8::internal::Handle<v8::internal::Oddball>, v8::internal::AllocationType) [/usr/local/bin/node]
11: 0x10dd41e v8::internal::MaybeHandle<v8::internal::OrderedHashMap> v8::internal::OrderedHashTable<v8::internal::OrderedHashMap, 2>::Allocate<v8::internal::Isolate>(v8::internal::Isolate*, int, v8::internal::AllocationType) [/usr/local/bin/node]
12: 0x10dd4d3 v8::internal::MaybeHandle<v8::internal::OrderedHashMap> v8::internal::OrderedHashTable<v8::internal::OrderedHashMap, 2>::Rehash<v8::internal::Isolate>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::OrderedHashMap>, int) [/usr/local/bin/node]
13: 0x11e9805 v8::internal::Runtime_MapGrow(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
14: 0x15e7cf9 [/usr/local/bin/node]
Aborted (core dumped)
error Command failed with exit code 134.
Not really sure where to begin debugging, since no other output is present. The JS itself works as expected, but tsc runs forever and then OOMs.
Do you have any idea what might have caused it?
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
FATAL ERROR: Reached heap limit Allocation failed ... - GitHub
I just upgraded to 12.0.8 hoping this was solved but I am still having the FATAL ERROR: Reached heap limit Allocation failed -...
Read more >node.js - JavaScript heap out of memory" error - Stack Overflow
How to fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error.
Read more >JavaScript heap out of memory - Snyk Support
This generally occurs on larger projects where the default amount of memory allocated by Node (1.5gb) is insufficient to complete the command successfully....
Read more >Memory Diagnostics - Using GC Trace - Node.js
Run the program until you hit the out of memory. The produced log shows the failing context. If it hits OOM, increment the...
Read more >Hello, completely new to the CNCjs world - Facebook
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at ... FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@MathiasGilson It would be lovely if we could get a fix of the typing issue without the types being removed all together ❤️
Hello @rayzr522! I would love to get some help on that as I’m not the best when in comes to nested typing on typescript.
You can see on this commit that I removed a lot of typing for the tests to pass.
I’m afraid that I didn’t understand which one was failing exactly but I tried to removed as few as possible with trial and errors.
Would appreciate if you would find some time to give it a look 😉