-
Notifications
You must be signed in to change notification settings - Fork 2
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
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #2
Comments
It looks like the nodejs-memory is to low for your contract, maybe because of the amount of imports. |
Maybe you have an infinite cycle of imports. |
I could reproduce this by just making a circular import. |
Probably. We used to use dapp tools on this set of contracts for compiling. Because it was so complicated to setup a dev-env, I started to create this JS only solution. Actually, my implementation works, but it is just really slow: https://github.com/melonproject/protocol/blob/develop/bin/compile.ts#L99-L158 So how is this caching working? |
I tried to solve the circular imports, but it's not as easy as i thought. |
I looked into resolver-engine and it is not useable at the moment. |
Is there an estimated timeline for this? I'd love to be able to setup compilation for multiple Solidity versions in OpenZeppelin without having to upgrade to truffle 5 (which would also mean updating the whole test suite due to web3 1.0 changes), and this project seems perfect for that. Thanks! |
Hi @nventuro |
Hi
I wanted to try out this promising tool on our code base, but it fails with the following error:
If you want to try to reproduce this on your machine, do the following steps (assuming solidity-cli is installed globally):
If you are interested, you can have a look at our current implementation of compiling: https://github.com/melonproject/protocol/blob/develop/bin/compile.ts
It works, but it is slow :(. That's why I'm here. (enzymefinance/protocol#581)
The text was updated successfully, but these errors were encountered: