Open
Description
openedon Oct 5, 2023
Version
29.7.0
Steps to reproduce
clone the repository at: https://github.com/Havunen/jest-memory-leak
run npm install
run npm test
You should see the heap memory increasing over time until the nodejs process crashes.
Expected behavior
The nodejs process should be able to clean the memory and preferably allocate as little as possible
Actual behavior
The node js process crashes
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF7018A3CEF node::SetCppgcReference+15695
2: 00007FF70181E606 EVP_MD_meth_get_input_blocksize+78566
3: 00007FF7018203F1 EVP_MD_meth_get_input_blocksize+86225
4: 00007FF70228A191 v8::Isolate::ReportExternalAllocationLimitReached+65
5: 00007FF702273928 v8::Function::Experimental_IsNopFunction+1336
6: 00007FF7020D5190 v8::Platform::SystemClockTimeMillis+659552
7: 00007FF7020D2218 v8::Platform::SystemClockTimeMillis+647400
8: 00007FF7020E752A v8::Platform::SystemClockTimeMillis+734202
9: 00007FF7020E7DA7 v8::Platform::SystemClockTimeMillis+736375
10: 00007FF7020F09DE v8::Platform::SystemClockTimeMillis+772270
11: 00007FF702101356 v8::Platform::SystemClockTimeMillis+840230
12: 00007FF702105F28 v8::Platform::SystemClockTimeMillis+859640
13: 00007FF701E7D67A v8::base::Thread::StartSynchronously+372122
14: 00007FF701FC15B0 v8::ObjectTemplate::IsImmutableProto+13152
15: 00007FF7021EA0C9 v8::SharedValueConveyor::SharedValueConveyor+62825
16: 00007FF7021EA3C8 v8::SharedValueConveyor::SharedValueConveyor+63592
17: 00007FF7021E4624 v8::SharedValueConveyor::SharedValueConveyor+39620
18: 00007FF7021E455A v8::SharedValueConveyor::SharedValueConveyor+39418
19: 00007FF70226E84D v8::ScriptCompiler::CompileUnboundInternal+1069
20: 00007FF70226EB21 v8::ScriptCompiler::CompileUnboundScript+161
21: 00007FF70182E54B node::OnFatalError+57675
22: 00007FF70224056E v8::SharedValueConveyor::SharedValueConveyor+416270
23: 00007FF70223FE17 v8::SharedValueConveyor::SharedValueConveyor+414391
24: 00007FF702240444 v8::SharedValueConveyor::SharedValueConveyor+415972
25: 00007FF7022402A0 v8::SharedValueConveyor::SharedValueConveyor+415552
26: 00007FF70233AC3E v8::PropertyDescriptor::writable+674286
27: 00007FF7022A99B3 v8::PropertyDescriptor::writable+79715
28: 00007FF682572942
Additional context
This is continuation from here: #12205 (comment)
Environment
node v20.8.0
windows 11 ver. 2261
npm 9.6.4
Jest 29.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment