-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Rust][WASM] WASM runtime example is broken. #6816
Comments
cc @kazum I am not able to reproduce using current instructions on Linux, any thoughts? |
I encountered a different error with the latest main branch.
Anyway, I'll take a look. |
@kazum I did a big of debugging but somehow the test got turned off and seems to have broken, was trying to make it more robust on multiple platforms so we can simplify |
Hitting error similar to those shown by @kazum . Any suggestions on this, please? |
I also encountered a similar problem when executing the WASM. trace: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: wasm trap: indirect call type mismatch
wasm backtrace:
0: 0x926a7 - tvm_graph_rt::module::wrap_backend_packed_func::{{closure}}::hc41b54aab3cb76f6
at /home/ya0guang/Code/tvm/rust/tvm-graph-rt/src/module/mod.rs:49:25
1: 0x31f95 - tvm_graph_rt::graph::GraphExecutor::setup_op_execs::{{closure}}::h796f856bdd94f006
at /home/ya0guang/Code/tvm/rust/tvm-graph-rt/src/graph.rs:311:17
2: 0xc97ad - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf5ca8f8ac2b01304
at /home/ya0guang/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1560:9
3: 0x9e858 - tvm_graph_rt::graph::GraphExecutor::run::{{closure}}::h64f3e6e6888bde03
at /home/ya0guang/Code/tvm/rust/tvm-graph-rt/src/graph.rs:204:13
4: 0x83d82 - <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::for_each::h71b18dc5ce1e6a4c
at /home/ya0guang/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/iter/macros.rs:203:21
5: 0x9e80e - tvm_graph_rt::graph::GraphExecutor::run::h2fd8fe0d78a2c3ff
at /home/ya0guang/Code/tvm/rust/tvm-graph-rt/src/graph.rs:203:9
6: 0x2bb77 - run
at /home/ya0guang/Code/tvm/apps/wasm-standalone-mod/wasm-graph/src/lib.rs:86:5
', src/main.rs:84:22 |
Recent changes seemed to have broke the Rust WASM example. There is an issue executing the produced WASM code:
cc @ehsanmok
The text was updated successfully, but these errors were encountered: