Highcharts: `gulp jsdoc --watch` does not work on node v10.8.0

Created on 10 Dec 2018  路  1Comment  路  Source: highcharts/highcharts

Workaround:
Use node v8.9.4.

Note:
I'm using nvm so it might be related, but downgrading to v8 in nvm resolves the issue..

Error summary:

> gulp jsdoc --watch
[17:30:46] Using gulpfile ~/projects/projects/highcharts/gulpfile.js
[17:30:46] Starting 'clean-api'...
[17:30:46] Starting 'scripts'...
The installed version of highcharts-assembler is 1.0.27, while listed version in devDependencies is github:highcharts/highcharts-assembler#v1.0.28. Please update to the required version by executing "npm install highcharts-assembler"
[17:30:48] Finished 'scripts' after 1.97 s
[17:30:48] Starting 'jsdoc-namespace'...
Successfully removed api directory.
[17:30:49] Finished 'clean-api' after 2.08 s
[17:31:05] Documented 85 files!
[17:31:05] Finished 'jsdoc-namespace' after 17 s
[17:31:05] Starting 'jsdoc'...
Watching file changes in JS files and templates
Starting API docs server http://localhost:9005
[17:31:12] Documented 41 files!
Created class-reference
[17:31:14]     found series type bellcurve - inherited from areaspline

[17:31:15]     found series type histogram - inherited from column

[17:31:16]     found series type networkgraph - inherited from line

[17:31:19]     found series type arearange - inherited from area

[17:31:19]     found series type boxplot - inherited from column

[17:31:19]     found series type bubble - inherited from scatter

[17:31:20]     found series type errorbar - inherited from boxplot

[17:31:20]     found series type gauge - inherited from line

[17:31:20]     found series type polygon - inherited from scatter

[17:31:20]     found series type waterfall - inherited from column

[17:31:24] Documented 11 files!
Created tree.json
Started generating API documentation.

<--- Last few GCs --->

[6176:0x104000600]    74934 ms: Scavenge 1369.1 (1424.7) -> 1368.8 (1425.2) MB, 6.1 / 0.0 ms  (average mu = 0.101, current mu = 0.024) allocation failure 
[6176:0x104000600]    76416 ms: Mark-sweep 1369.5 (1425.2) -> 1369.2 (1425.7) MB, 1478.9 / 0.0 ms  (average mu = 0.056, current mu = 0.007) allocation failure scavenge might not succeed


<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x2cad639041bd]
    1: StubFrame [pc: 0x2cad6394ee12]
Security context: 0x3e7a47c1e789 <JSObject>
    2: replace [0x3e7a47c10d11](this=0x3e7a5a758539 <String[73]: series<tilemap>-priceenvelopes-states-hover-marker-states-hover.lineWidth>,0x3e7a5a758561 <JSRegExp <String[1]: ->>,0x3e7a58ea1e09 <String[1]: .>)
    3: visit [0x3e7a25102201] [/Users/pawelfus/projects/projects/highcharts/node_modules/highcharts-api-docs/l...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x100038d1f node::Abort() [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 2: 0x100038efb node::OnFatalError(char const*, char const*) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 3: 0x1001af3fa v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 4: 0x10057e4f2 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 5: 0x10057d4a9 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 6: 0x10057b138 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 7: 0x10058767c v8::internal::Heap::AllocateRawWithRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 8: 0x100556014 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
 9: 0x1007e0d04 v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/pawelfus/.nvm/versions/node/v10.8.0/bin/node]
10: 0x2cad639041bd 
11: 0x2cad6394ee12 
Abort trap: 6

Production Bug

Most helpful comment

I will work on this while moving gulp tasks into ./tools/gulptasks.

>All comments

I will work on this while moving gulp tasks into ./tools/gulptasks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bigous picture Bigous  路  47Comments

deadwaxpoet picture deadwaxpoet  路  26Comments

pawelfus picture pawelfus  路  25Comments

aatifbandey picture aatifbandey  路  24Comments

Izothep picture Izothep  路  34Comments