paritytech/substrate-tip-bot

Memory Leak Causes Crash

Closed this issue · 2 comments

Valid command!
 bkchr wants to tip nazar-pc (1vSxzbyz2cJREAuVWjhXUT1ds8vBzoxn2w4asNpusQKwjJd on polkadot) a medium tip for pull request https://github.com/paritytech/substrate/pull/10388.

<--- Last few GCs --->

[28796:0x6829f40] 1293852035 ms: Mark-sweep 480.4 (502.6) -> 476.1 (502.4) MB, 929.6 / 0.0 ms  (average mu = 0.127, current mu = 0.017) allocation failure scavenge might not succeed
[28796:0x6829f40] 1293852989 ms: Mark-sweep 480.3 (502.4) -> 476.2 (502.6) MB, 938.5 / 0.0 ms  (average mu = 0.075, current mu = 0.016) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xafd010 node::Abort() [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 2: 0xa141fb node::FatalError(char const*, char const*) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 3: 0xce746e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 4: 0xce77e7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 5: 0xeb5c85  [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 6: 0xeb6766  [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 7: 0xec471e  [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 8: 0xec5140 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)
[/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 9: 0xec7fae v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
10: 0xe899da v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
11: 0x11fea76 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
12: 0x15e7fb9  [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
Aborted
[nodemon] app crashed - waiting for file changes before starting...

Another:

2022-04-05 08:08:24        REGISTRY: Unknown signed extensions CheckNonZeroSender found, treating them as no-effect
2022-04-05 08:08:24        API/INIT: Runtime version updated to spec=9180, tx=12
2022-04-05 08:08:24        REGISTRY: Unknown signed extensions CheckNonZeroSender found, treating them as no-effect
2022-04-05 08:08:25        API/INIT: Runtime version updated to spec=9180, tx=12
2022-04-05 08:08:25        REGISTRY: Unknown signed extensions CheckNonZeroSender found, treating them as no-effect
2022-04-05 08:08:27        API/INIT: Runtime version updated to spec=9180, tx=12
2022-04-05 08:08:27        REGISTRY: Unknown signed extensions CheckNonZeroSender found, treating them as no-effect

<--- Last few GCs --->

[30309:0x624ef40] 1613802324 ms: Mark-sweep 491.8 (503.2) -> 490.9 (505.2) MB, 1016.9 / 0.0 ms  (average mu = 0.707, current mu = 0.008) allocation
failure scavenge might not succeed
[30309:0x624ef40] 1613803233 ms: Mark-sweep (reduce) 493.0 (505.2) -> 491.6 (502.7) MB, 732.8 / 0.0 ms  (+ 150.6 ms in 30 steps since start of marking, biggest step 6.5 ms, walltime since start of marking 908 ms) (average mu = 0.552, current mu = 0.028) a                                        

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0xafd010 node::Abort() [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 2: 0xa141fb node::FatalError(char const*, char const*) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 3: 0xce746e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]      
 4: 0xce77e7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 5: 0xeb5c85  [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 6: 0xec5401 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 7: 0xec7fae v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 8: 0xe899da v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
 9: 0x11fea76 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
10: 0x15e7fb9  [/home/shawntabrizi/.nvm/versions/node/v16.10.0/bin/node]
Aborted
[nodemon] app crashed - waiting for file changes before starting...

Can't find in logs, could be outdated