weixin_39948111
2020-12-06 23:44"Should never destroy FnMut" error when running readme example
When trying to run the readme example, I get the following error in Firefox and Chromium:
RuntimeError: unreachable executed browser.js line 458 > WebAssembly.instantiate:602073:1
__rust_start_panic http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:602073 rust_panic http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:597020 h1b6eb5fa7979eb5f http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:396087 h36250f1cb97666c2 http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:513274 rust_begin_unwind http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:601925 h2165a0a4134a5a6d http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:577223 hea8b65335b1105e7 http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:533574 R + 'static) as wasm_bindgen::closure::WasmClosure>::describe::destroy::h4fd713a35daa4801 http://127.0.0.1:8081/browser.js line 458 > WebAssembly.instantiate:420344 cb http://127.0.0.1:8081/browser.js:420 cb self-hosted:974
Using console_error_panic_hook::set_once();
panicked at 'should never destroy a FnMut whose pointer is 0', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-bindgen-0.2.38/src/closure.rs:679:1
Stack:
__exports.__wbg_new_a99726b0abef495b://127.0.0.1:8080/browser.js:60:34
console_error_panic_hook::Error::new::h5791488df7219e2a://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[1188]:0x7e7be
console_error_panic_hook::hook_impl::ha7525a8b41a78c1d://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[401]:0x56fe8
console_error_panic_hook::hook::hd4fcf55b70b42397://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[2166]:0x93f69
core::ops::function::Fn::call::hdcb36739c628e612://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[2089]:0x92ca0
std::panicking::rust_panic_with_hook::h1b6eb5fa7979eb5f://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[560]:0x63882
std::panicking::continue_panic_fmt::h36250f1cb97666c2://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[1342]:0x82e21
rust_begin_unwind://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[2734]:0x99f85
core::panicking::panic_fmt::h2165a0a4134a5a6d://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[2136]:0x9387c
core::panicking::panic::hea8b65335b1105e7://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[1554]:0x883c4
R + 'static) as wasm_bindgen::closure::WasmClosure>::describe::destroy::h4fd713a35daa4801://127.0.0.1:8080/browser.js line 496 > WebAssembly.instantiate:wasm-function[667]:0x6a004
cb://127.0.0.1:8080/browser.js:458:34
browser.js:32:13
rustc 1.35.0-nightly (a9da8fc9c 2019-03-04)
wasm-pack 0.6.0
cargo 1.34.0-nightly (5c6aa46e6 2019-02-22)
I tried to follow the readme instructions 1:1, but it's possible that I'm missing something :)
该提问来源于开源项目:chinedufn/percy
- 点赞
- 回答
- 收藏
- 复制链接分享
4条回答
为你推荐
- session_destroy()+ session_start()不在标题重定向之后
- session-variables
- php
- session
- 1个回答
- 通过<a href="#myModel"> </a>标记传递值(使用html中的链接传递数据值)?
- html5
- html
- javascript
- php
- 1个回答
- Laravel destroy函数总是删除id最低的记录
- php
- 2个回答
- ssh整合出错:org.springframework.beans.factory.BeanCreationException: Error creating
- spring
- 0个回答
- jsp+servlet开发碰到查询数据"错乱"现象
- 企业应用
- 0个回答
换一换