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

Javascript heap out of memory #1365

Open
shrugs opened this issue Dec 20, 2024 · 0 comments
Open

Javascript heap out of memory #1365

shrugs opened this issue Dec 20, 2024 · 0 comments

Comments

@shrugs
Copy link
Contributor

shrugs commented Dec 20, 2024

Version

0.8.7

Current behavior

Experienced an OOM at 4GB while indexing ENS (very big), ran it again and no issues yet (nearly 100% indexed, memory usage at 1GB). Not sure exactly now useful this report is, but figured I'd provide it.

Expected behavior

No response

Steps to reproduce

No response

Link to repository

No response

Anything else?

<--- Last few GCs --->

[5013:0x150008000]  9128518 ms: Mark-Compact 4065.8 (4133.4) -> 4053.2 (4136.4) MB, pooled: 11 MB, 876.12 / 0.00 ms  (average mu = 0.084, current mu = 0.034) allocation failure; scavenge might not succeed
[5013:0x150008000]  9129424 ms: Mark-Compact 4069.6 (4136.8) -> 4056.7 (4139.9) MB, pooled: 7 MB, 877.38 / 0.00 ms  (average mu = 0.060, current mu = 0.031) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0x100e7b4d0 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 2: 0x1010a5168 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 3: 0x1012a997c v8::internal::Heap::stack() [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 4: 0x1012bea68 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_10::operator()() const [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 5: 0x1012be360 void heap::base::Stack::SetMarkerAndCallbackImpl<v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_10>(heap::base::Stack*, void*, void const*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 6: 0x101bbb388 PushAllRegistersAndIterateStack [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 7: 0x1012a7a50 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 8: 0x10129deb8 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
 9: 0x10129e884 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
10: 0x1012800fc v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
11: 0x101697178 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
12: 0x101cbf9f4 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
13: 0x108fd113c
14: 0x108e29c4c
15: 0x108fcc9b4
16: 0x108c40cbc
17: 0x101c65e20 Builtins_AsyncFunctionAwaitResolveClosure [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
18: 0x101d33298 Builtins_PromiseFulfillReactionJob [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
19: 0x101c55214 Builtins_RunMicrotasks [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
20: 0x101c263f0 Builtins_JSRunMicrotasksEntry [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
21: 0x101200720 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
22: 0x101200fbc v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
23: 0x1012010f4 v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
24: 0x10122cfec v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
25: 0x10122d8a4 v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
26: 0x101c2aaac Builtins_CallApiCallbackOptimizedNoProfiling [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
27: 0x108fc714c
28: 0x101c2650c Builtins_JSEntryTrampoline [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
29: 0x101c261b0 Builtins_JSEntry [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
30: 0x101200760 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
31: 0x1012000a8 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
32: 0x1010bcd64 v8::Function::Call(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
33: 0x100d99a6c node::InternalCallbackScope::Close() [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
34: 0x100d99cac node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context, v8::Local<v8::Value>) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
35: 0x100daeb34 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
36: 0x100f86dbc node::StreamBase::CallJSOnreadMethod(long, v8::Local<v8::ArrayBuffer>, unsigned long, node::StreamBase::StreamBaseJSChecks) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
37: 0x100f88fc0 node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
38: 0x100f8d5e0 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
39: 0x100f8dce8 node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s*, long, uv_buf_t const*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
40: 0x101c12180 uv__stream_io [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
41: 0x101c1a384 uv__io_poll [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
42: 0x101c06f20 uv_run [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
43: 0x100d9a4e4 node::SpinEventLoopInternal(node::Environment*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
44: 0x100ec33b0 node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
45: 0x100ec314c node::NodeMainInstance::Run() [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
46: 0x100e395ec node::Start(int, char**) [/Users/matt/.asdf/installs/nodejs/23.3.0/bin/node]
47: 0x1875fb154 start [/usr/lib/dyld]
 ELIFECYCLE  Command failed.
[1]    4759 abort      pnpm run dev
➜  ens-multichain git:(main)
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