Javascript call stack exceeded
See original GitHub issueOn the same codebase whatever I do (like adding an invariant
or a if_succeeds
statement) I keep getting Javascript Maximum call stack size exceeded errors.
Two kinds in particular:
- The first seems to be inside type checking:
Internal error in type-checking: Maximum call stack size exceeded
- The seconds seems to be around recursive imports:
/Users/alex/Projects/scribble/dist/bin/scribble.js:494
throw e;
^
RangeError: Maximum call stack size exceeded
at ImportDirective.get vSymbolAliases [as vSymbolAliases] (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/implementation/meta/import_directive.js:55:45)
at lookupInSourceUnit (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:101:28)
at lookupInSourceUnit.next (<anonymous>)
at new Set (<anonymous>)
at lookupInScope (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:229:12)
at lookupInSourceUnit (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:104:35)
at lookupInSourceUnit.next (<anonymous>)
at new Set (<anonymous>)
at lookupInScope (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:229:12)
at lookupInSourceUnit (/Users/alex/Projects/scribble/node_modules/solc-typed-ast/dist/ast/definitions.js:104:35)
(It is a local install of 912a472)
I think the second case may be connected to #64.
I tried for a quite bit of time create a reduced example, but can’t really spend too many hours on it. @cd1m0 do you have any idea based on the above?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
JavaScript RangeError: Maximum Call Stack Size Exceeded
The JavaScript RangeError: Maximum call stack size exceeded is an error that occurs when there are too many function calls, or if a...
Read more >javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code. More ......
Read more >Uncaught RangeError: Maximum call ... - Net-Informations.Com
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >RangeError: Maximum call stack size exceeded in JavaScript
The "RangeError: Maximum call stack size exceeded" error occurs when a function is called so many times that the invocations exceed the call...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@axic thanks for following up! Will reproduce this and try to give you rootcause/fix 😃
@cd1m0 much appreciated, can’t wait to create some scribble specifications 😅