When forge tunnel core dump, what can I do for that?

forge --version

when I add some crypto library, the forge will crash.
Even though, I re-deploy and re-install app, most of time, it never come back.

What can I do for the core dump?

I got following error message if I have some “crypto” library in the Forge app.
such as “ethers”

Why can’t I use this kind of library in Forge app?

Fatal error in , line 0

Check failed: (backing_store) != nullptr.

#FailureMessage Object: 0x40007f9ea0qemu: uncaught target signal 4 (Illegal instruction) - core dumped

Hi @MingderWang, unfortunately Forge’s crypto polyfill is incomplete.

Forge only supports a subset of node APIs: https://developer.atlassian.com/platform/forge/runtime-reference/#javascript-environment

BTW, what is the proper way to store private keys in Forge? I don’t think storage API is the one.


@MingderWang Are you using the Forge tunnel on an M1 Mac? I think the error is caused by Docker’s x64 to ARM emulation and isn’t necessarily related to the crypto module. You could try to run the tunnel without Docker: Quick tip: Tunneling without Docker (useful for Apple Silicon / M1)

@MingderWang we have just released secret storage for Forge. Check out our latest announcement.


Yes. It could be the problem. always happen in “Forge tunnel”,