-
Notifications
You must be signed in to change notification settings - Fork 71
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
Maximum call stack error on the web #444
Comments
Rust does not use the multivalue ABI and it's very hard to get it to do so (you need a custom target that you compile manually). Though to clarify further:
|
Thank you for the details, maybe the cause might be something else. It does look like whenever using |
I had somewhat similar with FRB. Whenever I was using u8, I was getting a stack overflow exception: fzyzcjy/flutter_rust_bridge#2341 |
Report
As of September 2024, running a RInf app on the web in debug mode can print the error like below.
This is because LLVM is currently broken with multivalue types(such asu128
) onwasm32-unknown-unknown
target of Rust. Related issues are listed below. This is not something that Rinf can solve, but an issue we should wait for a fix from LLVM.Broken WASM codegen with u128 and wasm_abi rust-lang/rust#88207Wasm32 miscompilation when using u128 with multivalue and optimizations rust-lang/rust#127318Miscompile with multivalue ABI llvm/llvm-project#98323Compiling webassembly module in release mode with
rinf wasm --release
is the workaround for now.Steps to Reproduce
Write any code that uses
u128
in Rust and run the app in debug mode.System Information
Please provide the output from the command below, using markdown codeblock syntax.
The text was updated successfully, but these errors were encountered: