Skip to content

GC Mark-sweep Allocation Failure #8162

@SamMorrowDrums

Description

@SamMorrowDrums

When I run a (fairly heavy) gulp build including babel, browserify, phantomjs, uglify etc. it fails in node 6.4.0, but not in 4.5.0, with the below.

<--- Last few GCs --->

  137934 ms: Mark-sweep 921.7 (1202.0) -> 706.9 (1166.1) MB, 443.7 / 0 ms [allocation failure] [GC in old space requested].
  138245 ms: Mark-sweep 706.9 (1166.1) -> 691.4 (1128.1) MB, 311.6 / 0 ms [allocation failure] [GC in old space requested].
  138636 ms: Mark-sweep 691.4 (1128.1) -> 688.1 (1078.1) MB, 390.3 / 0 ms [last resort gc].
  138916 ms: Mark-sweep 688.1 (1078.1) -> 688.0 (1059.1) MB, 280.2 / 0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x3e3b27c9e31 <JS Object>
    1: SparseJoinWithSeparatorJS(aka SparseJoinWithSeparatorJS) [native array.js:~84] [pc=0xdefd17dfdf0] (this=0x3e3b2704189 <undefined>,w=0x1ec3efe5ba69 <JS Array[7010]>,L=7010,M=0x3e3b27b49e9 <JS Function ConvertToString (SharedFunctionInfo 0x3e3b274ef79)>,N=0x194739c58b59 <String[4]\: ,\n  >)
    2: Join(aka Join) [native array.js:143] [pc=0xdefd1894fb6] (this=0x3e3b2704189 <undefined>,w=0x1e...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [gulp]
 2: 0xfb7bfc [gulp]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [gulp]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [gulp]
 5: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [gulp]
 6: v8::internal::Runtime_SparseJoinWithSeparator(int, v8::internal::Object**, v8::internal::Isolate*) [gulp]
 7: 0xdefcd40961b

I have tried using both --max-old-space-size=8192 & -–nouse-idle-notification arguments but it has not made a difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions