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: Reached heap limit Allocation failed - JavaScript heap out of memory #127

Open
mosol1 opened this issue Nov 11, 2024 · 3 comments

Comments

@mosol1
Copy link

mosol1 commented Nov 11, 2024

No description provided.

@BenBaryoPX
Copy link
Collaborator

@mosol1 please run with -v and post the log here, as well as the node version you're running with and the amount of ram on the machine

@StylianosBairamis
Copy link

Same problem with @mosol1, i have 32GB ram. Error: <--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0x7f51b4a16cb8 node::Abort() [/lib/x86_64-linux-gnu/libnode.so.108]
2: 0x7f51b490806e [/lib/x86_64-linux-gnu/libnode.so.108]
3: 0x7f51b4de0e20 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.108]
4: 0x7f51b4de11dc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.108]
5: 0x7f51b4fb33f5 [/lib/x86_64-linux-gnu/libnode.so.108]
6: 0x7f51b4fc67d9 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.108]
7: 0x7f51b4fa4492 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.108]
8: 0x7f51b4fa5825 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.108]
9: 0x7f51b4f85b0c v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.108]
10: 0x7f51b4f7c1bc v8::internal::FactoryBasev8::internal::Factory::NewFixedArrayWithMap(v8::internal::Handlev8::internal::Map, int, v8::internal::AllocationType) [/lib/x86_64-linux-gnu/libnode.so.108]
11: 0x7f51b52349a1 v8::internal::Handlev8::internal::NameDictionary v8::internal::HashTable<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::NewInternalv8::internal::Isolate(v8::internal::Isolate*, int, v8::internal::AllocationType) [/lib/x86_64-linux-gnu/libnode.so.108]
12: 0x7f51b5234a65 v8::internal::Handlev8::internal::NameDictionary v8::internal::BaseNameDictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::Newv8::internal::Isolate(v8::internal::Isolate*, int, v8::internal::AllocationType, v8::internal::MinimumCapacity) [/lib/x86_64-linux-gnu/libnode.so.108]
13: 0x7f51b51bf5a2 v8::internal::JSObject::MigrateToMap(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSObject, v8::internal::Handlev8::internal::Map, int) [/lib/x86_64-linux-gnu/libnode.so.108]
14: 0x7f51b51f97b0 v8::internal::LookupIterator::TransitionToAccessorProperty(v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes) [/lib/x86_64-linux-gnu/libnode.so.108]
15: 0x7f51b51b8dc6 v8::internal::JSObject::DefineAccessor(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes) [/lib/x86_64-linux-gnu/libnode.so.108]
16: 0x7f51b51b990c v8::internal::JSReceiver::ValidateAndApplyPropertyDescriptor(v8::internal::Isolate*, v8::internal::LookupIterator*, bool, v8::internal::PropertyDescriptor*, v8::internal::PropertyDescriptor*, v8::Maybev8::internal::ShouldThrow, v8::internal::Handlev8::internal::Name) [/lib/x86_64-linux-gnu/libnode.so.108]
17: 0x7f51b51b9a37 v8::internal::JSReceiver::OrdinaryDefineOwnProperty(v8::internal::LookupIterator*, v8::internal::PropertyDescriptor*, v8::Maybev8::internal::ShouldThrow) [/lib/x86_64-linux-gnu/libnode.so.108]
18: 0x7f51b51b9be6 v8::internal::JSReceiver::OrdinaryDefineOwnProperty(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSObject, v8::internal::PropertyKey const&, v8::internal::PropertyDescriptor*, v8::Maybev8::internal::ShouldThrow) [/lib/x86_64-linux-gnu/libnode.so.108]
19: 0x7f51b51b9d3c v8::internal::JSReceiver::OrdinaryDefineOwnProperty(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSObject, v8::internal::Handlev8::internal::Object, v8::internal::PropertyDescriptor*, v8::Maybev8::internal::ShouldThrow) [/lib/x86_64-linux-gnu/libnode.so.108]
20: 0x7f51b51ba057 v8::internal::JSReceiver::DefineProperty(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object) [/lib/x86_64-linux-gnu/libnode.so.108]
21: 0x7f51b4e688ff v8::internal::Builtin_ObjectDefineProperty(int, unsigned long*, v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.108]
22: 0x7f51b4cf1f79 [/lib/x86_64-linux-gnu/libnode.so.108]
Aborted

@BenBaryoPX
Copy link
Collaborator

I see. To continue and find a fix I'll need the obfuscated script that generated this error.
@StylianosBairamis @mosol1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants