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
Add a way to configure WASM plugin runtime (wasmi
) stack size
#3987
Comments
If I understand it correctly, stack size is pretty big (second argument) typst/crates/typst/src/eval/call.rs Line 179 in 0bb45b3
This message means that you have deep recursion (probably infinite), or something like that |
If that was the case, wouldn't the same code running on a normal Linux host fail too? If I execute the program as-is by adding a |
I could narrow the issue down to a call into However, I have no idea why this causes the above-mentioned issue when running as a WASM library. The Linux version works perfectly fine. |
That makes sense |
This stack size applies to the compiler itself, not the WASM plugin executor. I'm honestly not sure whether the stack size is in control of |
Description
Either as a CLI flag that I can set for the current compiler invocation or as a permanent configuration (if that is possible with typst).
Use Case
I am developing a WASM plugin and every time I use/execute it, I get a
plugin error: call stack exhausted
error. I think it is because the WASM runtime has a stack limit that I exceed. It is hard toReferences
#3985
The text was updated successfully, but these errors were encountered: