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

node src/main_executor... error: JavaScript heap out of memory #253

Open
Jasun0925 opened this issue Feb 12, 2024 · 0 comments
Open

node src/main_executor... error: JavaScript heap out of memory #253

Jasun0925 opened this issue Feb 12, 2024 · 0 comments

Comments

@Jasun0925
Copy link

command:
➜ zkevm-proverjs git:(f5922cc) ✗ node --max-old-space-size=30720 src/main_executor tools/build-genesis/input_executor.json -r build/proof/rom.json -o tmp/commit.bin
compile PIL /Users/jasun/Software/codes/blockchain/zkp/zkevm-proverjs/pil/main.pil

error info:
<--- Last few GCs --->

[75979:0x7f8e98040000] 126658 ms: Scavenge 30646.4 (30656.9) -> 30646.4 (30660.9) MB, 7.9 / 0.0 ms (average mu = 0.065, current mu = 0.027) allocation failure;

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x1092dfc45 node::Abort() (.cold.1) [/usr/local/bin/node]
2: 0x107d3a7b9 node::Abort() [/usr/local/bin/node]
3: 0x107d3a98e node::OOMErrorHandler(char const*, bool) [/usr/local/bin/node]
4: 0x107ec7f43 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
5: 0x108090bf5 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]
6: 0x1080950c0 v8::internal::Heap::CollectSharedGarbage(v8::internal::GarbageCollectionReason) [/usr/local/bin/node]
7: 0x10809190f v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [/usr/local/bin/node]
8: 0x10808e9e8 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
9: 0x10808190a v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
10: 0x108082285 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
11: 0x108063eca v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/local/bin/node]
12: 0x10805b8f4 v8::internal::FactoryBasev8::internal::Factory::NewFixedArrayWithFiller(v8::internal::Handlev8::internal::Map, int, v8::internal::Handlev8::internal::Oddball, v8::internal::AllocationType) [/usr/local/bin/node]
13: 0x108237009 v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastHoleySmiElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)1> >::ConvertElementsWithCapacity(v8::internal::Handlev8::internal::JSObject, v8::internal::Handlev8::internal::FixedArrayBase, v8::internal::ElementsKind, unsigned int, unsigned int, unsigned int) [/usr/local/bin/node]
14: 0x108236e8a v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastHoleySmiElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)1> >::GrowCapacityAndConvertImpl(v8::internal::Handlev8::internal::JSObject, unsigned int) [/usr/local/bin/node]
15: 0x108236a71 v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastHoleySmiElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)1> >::SetLengthImpl(v8::internal::Isolate*, v8::internal::Handlev8::internal::JSArray, unsigned int, v8::internal::Handlev8::internal::FixedArrayBase) [/usr/local/bin/node]
16: 0x10837e1b3 v8::internal::JSArray::SetLength(v8::internal::Handlev8::internal::JSArray, unsigned int) [/usr/local/bin/node]
17: 0x1081f40d5 v8::internal::ArrayConstructInitializeElements(v8::internal::Handlev8::internal::JSArray, v8::internal::Arguments<(v8::internal::ArgumentsType)1>) [/usr/local/bin/node]
18: 0x10848d19c v8::internal::Runtime_NewArray(int, unsigned long
, v8::internal::Isolate*) [/usr/local/bin/node]
19: 0x10888fe79 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]
20: 0x10d82a191
[1] 75979 abort node --max-old-space-size=30720 src/main_executor -r build/proof/rom.json -o

assign 30G, info:
image

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

1 participant