ngd icon indicating copy to clipboard operation
ngd copied to clipboard

Cannot enlarge memory arrays.

Open Christian-Yang opened this issue 8 years ago • 13 comments

after npm install , I'm running /root/node-v6.9.0-linux-x64/bin/ngd , then get errors as follow:

1

2

then i use /root/node-v6.9.0-linux-x64/bin/ngd -s TOTAL_MEMORY=60000000 ,still get errors.

how to solve this problem?

THANKS VERY MUCH!

Christian-Yang avatar May 10 '17 02:05 Christian-Yang

same here

BenoitFroment avatar Jun 08 '17 09:06 BenoitFroment

this issue comes from the Viz dependency. We're trying another approach. Will keep you updated.

manekinekko avatar Jun 13 '17 09:06 manekinekko

we're experimenting an other approach which would be rendering the graph on the client side (taking into account some performances issues).

manekinekko avatar Sep 16 '17 22:09 manekinekko

@manekinekko is this experimental approach somehow available (branch or something)?

wgrabowski avatar Oct 02 '17 20:10 wgrabowski

Have the same issue here? This thread is 10 months old. Any news?

pantonis avatar Feb 23 '18 09:02 pantonis

Same issue. Any news?

ghost avatar Apr 13 '18 14:04 ghost

@vogloblinsky is working on a possible solution to fix this. To give you more context, this "solution" will allow rendering the graph deps on the client side (the user's browser). In fact, the library we depend on viz.js doesn't deal well with large projects. It simply crashes. In addition, it's not maintained anymore.

In the meantime, we've included a "workaround" that simply skip the graph that are very large and don't render. You still should have the rest of the documentation generated and working properly (but without the affected graphs).

To do so, just run compodoc via a node script:

package.json
{
   "scripts": {
      "reports:doc": "node ./tools/scripts/compodoc.js"
   }
}

tools/scripts/compodoc.js

const { spawn } = require('child_process');
const cmd = spawn('compodoc', ['-p', 'src/tsconfig.app.json', '-d', 'reports/documentation/']);
cmd.stdout.pipe(process.stdout);
cmd.stderr.pipe(process.stdout);

Doing so will trick your CI and not mark your build as FAILED.

manekinekko avatar May 05 '18 12:05 manekinekko

@manekinekko I tried your solution but it doesn't work. It just throws an error

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn compodoc ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:695:11)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

I also have no idea how this should work because compodoc is not registered as a binary anywere.

DaSchTour avatar Jun 21 '18 12:06 DaSchTour

@DaSchTour the trick from @manekinekko is for compodoc installed globally in your system.

npm i -g @compodoc/compodoc

vogloblinsky avatar Jun 21 '18 12:06 vogloblinsky

so this tool is useless?

AhHa45 avatar Dec 04 '18 13:12 AhHa45

running compodoc via a node script worked for me.

AhHa45 avatar Dec 05 '18 07:12 AhHa45

any update on this?

cmxl avatar Feb 12 '20 12:02 cmxl

Same thing on windows, can't generate main diagram.

haris-begluk avatar Jun 04 '20 18:06 haris-begluk