I am getting the error "RuntimeError: unreachable in rustwasm" for the code
error message:
Uncaught (in promise) RuntimeError: unreachable
at __rust_start_panic (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[346]:0x274ec)
at rust_panic (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[254]:0x26d0b)
at std::panicking::rust_panic_with_hook::hb07b303a83b6d242 (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[168]:0x24a47)
at rust_begin_unwind (http://127.0.0.1:8080/wasm_bg.wasm:wasm-function[228]:0x267ed)
at core::panicking::panic_fmt::h62f7e605cdf65d83
at core::panicking::panic_bounds_check::ha440f41d0e4eca5f
at virtualdom::parseNode::h9ba47b7b20126d66
at run ()
at init ()
I have following questions ?
- is it coming from
parseNodefunction? - is it because of
dm.children[i]overflowed? or some functions removed at runtime in the background in wasm? - I tried to hook
panic::set_hook(Box::new(console_error_panic_hook::hook));but did not help much! How should I debug these kind of errors?