Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #5456

Open
@ramesh2611

Description

@ramesh2611

@alan-agius4

Hi Im facing JavaScript heap out of memory when Im running protractor script.

  1. Node version: 12.18.1
  2. protractor version:7.0.0
  3. @angular/cli: 10.0.3
  4. browser : chrome(84.0.4147.89 )
  5. OS: Windows10

error:

[6136:0000023041987D70] 118906250 ms: Mark-sweep 6146.3 (6155.2) -> 6146.3 (6155.2) MB, 128.2 / 0.0 ms (average mu = 0.096, current mu = 0.000) last resort GC in old space requested
[6136:0000023041987D70] 118906366 ms: Mark-sweep 6146.3 (6155.2) -> 6146.2 (6155.2) MB, 115.8 / 0.0 ms (average mu = 0.051, current mu = 0.000) last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

0: ExitFrame [pc: 00007FF75838978D]

Security context: 0x023c839c08d1
1: split [0000023C839CEBC1](this=0x031652914799 <Very long string[5532207]>,0x023c839f2611 <String[#1]: \n>)
2: filter [00000139542005C1] [*******\node_modules\jasmine-spec-reporter\built\configuration-parser.js:~58] [pc=000002CC10811AC6](this=0x013954200539 ,0x031652914799 <Very long string[...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: 00007FF7577751EF napi_wrap+114271
2: 00007FF75771FE66 v8::base::CPU::has_sse+66630
3: 00007FF757720C66 v8::base::CPU::has_sse+70214
4: 00007FF757F3522E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF757F1D301 v8::SharedArrayBuffer::Externalize+833
6: 00007FF757DE983C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436
7: 00007FF757DE5509 v8::internal::Heap::AddRetainedMap+2713
8: 00007FF757E0674B v8::internal::Factory::NewFixedArrayWithFiller+107
9: 00007FF757E08262 v8::internal::Factory::NewJSArrayStorage+210
10: 00007FF757E07C2A v8::internal::Factory::NewJSArray+154
11: 00007FF757B48FE5 v8::internal::DeclarationScope::was_lazily_parsed+32053
12: 00007FF75838978D v8::internal::SetupIsolateDelegate::SetupHeap+546637
13: 00007FF758376EAD v8::internal::SetupIsolateDelegate::SetupHeap+470637
14: 000002CC10811AC6
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! *******@1.2.0 e2e:reliability: protractor protractor.conf.js --params.iterations=9 --suite=reliability
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the *******@1.2.0 e2e:reliability script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

im running protractor script for 5days its working for 1 day and 2nd day it throuing the above error.

tried

and i hve tried the below one in env also but no use.
NODE_OPTIONS: --max-old-space-size=6144

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions