Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded #140

Open
imikael21 opened this issue Jan 6, 2014 · 0 comments
Open

RangeError: Maximum call stack size exceeded #140

imikael21 opened this issue Jan 6, 2014 · 0 comments

Comments

@imikael21
Copy link

Hello,

I recently ran into a problem that I assume is due to node.js stack size limitation. From V8 engine documentation, the stack is limited to around 1MB by default. In my case I actually generated a rather heavy xhtml value in Opa, whose size might be close to this limit. When trying to build the web page with this xhtml value, I get a stack size error from node.js : "RangeError: Maximum call stack size exceeded"

Therefore I have two questions :

  • Is it possible to increase this limit ? I tried specifying the --stack_size parameter to the node.js executable, but it does not seem to be taken into account. The stack size limit remains at 1Mb whichever value I pass in the command line. I am using latest node.js version (v0.10.24)
  • In my opinion this limitation is somehow due to the fact that all Opa values are allocated in the stack, rather than in the heap. Is that correct ? Would it be possible to use memory allocation in the heap instead, which I guess is much less limited than the stack ?

Yours sincerally,
Mikael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant