-
Notifications
You must be signed in to change notification settings - Fork 479
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
ICE when running inside Azure App Function: You shall not have another CompilerStack aside me
#575
Comments
Can you give more information about how you exactly started the application and what lead to that error? |
@chriseth Here is the relevant azure function code
(I know I know eval is bad)
Tried both node v14.14 and v16.4.1 |
Does it happen only on Azure or can you also reproduce it locally? I tried it on my machine and I did not get that error but it might just be something in the parts that are not included in your example. E.g. your Solidity source or import callback. From the info we have so far I can only say that We'll need a more concrete repro to be able to diagnose this. Could you create a small, self-contained JS snippet that reproduces this? I.e. without any missing parts but for our purposes it's enough to replace them with the simplest equivalent that still makes it crash. |
You shall not have another CompilerStack aside me
Closing as a duplicate of #675. This issue was first but the other one has a repro. Looks like the problem occurs when an exception interrupts the import callback and you continue to use the compiler after that. This will need a fix in the compiler. For now a crude workaround would probably be to reload the compiler. |
Hey guys running into an error when running solc-js inside of Azure App Function. Everything compiles and works fine locally but not in the cloud. Tried both node v14 and v16
The text was updated successfully, but these errors were encountered: