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

Ineffective mark-compacts near heap limit Allocation failed #56

Open
srwadleigh opened this issue May 14, 2021 · 0 comments
Open

Ineffective mark-compacts near heap limit Allocation failed #56

srwadleigh opened this issue May 14, 2021 · 0 comments
Assignees

Comments

@srwadleigh
Copy link
Collaborator

srwadleigh commented May 14, 2021

This is a follow-up issue for a problem that was debugged in slack by @ramilexe

  • add-contract.ts command also runs backfiller using childProcess.spawn and it doesn't inherit env from parent process.

Nodejs version is v15.14.0
Attempted fix NODE_OPTIONS=--max_old_space_size=8192

npx ts-node src/cli/add-contract.ts --name FPS --address ... --source-path ~/contract-tests/contracts/FPS.sol --artifact-path ~/contract-tests/artifacts/contracts/FPS.sol/FPS.json --starting-block 8498738
<--- Last few GCs --->

[60474:0x5c90660]  1582159 ms: Mark-sweep 3764.0 (4127.7) -> 3745.7 (4123.5) MB, 4864.7 / 0.0 ms  (average mu = 0.315, current mu = 0.285) task scavenge might not succeed
[60474:0x5c90660]  1582951 ms: Scavenge 3763.4 (4125.3) -> 3748.4 (4123.9) MB, 17.4 / 0.0 ms  (average mu = 0.315, current mu = 0.285) task 
[60474:0x5c90660]  1583353 ms: Scavenge 3764.7 (4126.0) -> 3750.8 (4125.3) MB, 18.5 / 0.0 ms  (average mu = 0.315, current mu = 0.285) task 

<--- JS stacktrace --->

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

stderr:  1: 0xa89e60 node::Abort() [node]

stderr:  2: 0x9ade29 node::FatalError(char const*, char const*) [node]

stderr:  3: 0xc7583e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]

stderr:  4: 0xc75bb7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xe3f6d5  [node]
 6: 0xe4027c  [node]
 7: 0xe4dc0b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 8: 0xe5190c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 9: 0xe157da v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
10: 0x116d4ab v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
11: 0x15045f9  [node]

Unhandled Rejection at: Promise { <rejected> null } reason: null
@srwadleigh srwadleigh changed the title Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Ineffective mark-compacts near heap limit Allocation failed May 14, 2021
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

2 participants