Skip to content
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

wasm-bindgen error #2152

Closed
emilk opened this issue May 16, 2023 · 0 comments · Fixed by #2161
Closed

wasm-bindgen error #2152

emilk opened this issue May 16, 2023 · 0 comments · Fixed by #2161
Labels
🪳 bug Something isn't working 🕸️ web regarding running the viewer in a browser

Comments

@emilk
Copy link
Member

emilk commented May 16, 2023

cargo r -p re_web_viewer_server on main results in an error, though the app seems to be working fine:

wasm-bindgen: imported JS function that was not marked as `catch` threw an error: expected a string argument

Stack:
passStringToWasm0@http://192.168.0.158:56511/re_viewer.js:86:41
getImports/imports.wbg.__wbg_message_703e261cfdcb1e29/<@http://192.168.0.158:56511/re_viewer.js:1778:39
logError@http://192.168.0.158:56511/re_viewer.js:242:18
getImports/imports.wbg.__wbg_message_703e261cfdcb1e29@http://192.168.0.158:56511/re_viewer.js:1776:70
web_sys::features::gen_ErrorEvent::ErrorEvent::message::ha6c0bf83f8b0e872@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[16142]:0xa2a5e0
ewebsock::web::ws_connect::{{closure}}::hb1c036812f37dde8@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[1700]:0x44ab62
<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h42d865eb3f8888cb@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[18005]:0xa40b28
__wbg_adapter_32@http://192.168.0.158:56511/re_viewer.js:258:10
real@http://192.168.0.158:56511/re_viewer.js:225:20
EventHandlerNonNull*getImports/imports.wbg.__wbg_setonerror_a6a7413fc33449ef/<@http://192.168.0.158:56511/re_viewer.js:1807:35
logError@http://192.168.0.158:56511/re_viewer.js:242:18
getImports/imports.wbg.__wbg_setonerror_a6a7413fc33449ef@http://192.168.0.158:56511/re_viewer.js:1806:73
web_sys::features::gen_WebSocket::WebSocket::set_onerror::h60301dfd07c87bd3@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[17880]:0xa3faef
ewebsock::web::ws_connect::h6aa0018a0f5d4473@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[3188]:0x5e5e62
re_ws_comms::client::Connection::viewer_to_server::h53c6e6bd5255b076@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[2244]:0x4f8565
re_viewer::remote_viewer_app::RemoteViewerApp::new::h15bdbc1487620d5f@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[795]:0x264ba4
core::ops::function::FnOnce::call_once{{vtable.shim}}::h6db054551590957f@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[1178]:0x35dfaa
wasm_bindgen_futures::future_to_promise::{{closure}}::{{closure}}::h613534bbb3227b5c@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[499]:0xcf3ca
wasm_bindgen_futures::task::singlethread::Task::run::h5f0fa12c4bc76163@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[12103]:0x9a9189
wasm_bindgen_futures::queue::Queue::new::{{closure}}::hdff631c2dd427969@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[5649]:0x77ca65
<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::hc11ce1c0750eff08@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[18017]:0xa40caf
__wbg_adapter_53@http://192.168.0.158:56511/re_viewer.js:298:10
real@http://192.168.0.158:56511/re_viewer.js:225:20
promise callback*getImports/imports.wbg.__wbg_then_ec5db6d509eb475f/<@http://192.168.0.158:56511/re_viewer.js:2201:37
logError@http://192.168.0.158:56511/re_viewer.js:242:18
getImports/imports.wbg.__wbg_then_ec5db6d509eb475f@http://192.168.0.158:56511/re_viewer.js:2200:67
js_sys::Promise::then::hdbecd2c259a9d8a4@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[19983]:0xa4ad96
wasm_bindgen_futures::queue::Queue::schedule_task::hb4ff4af038e4382e@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[8868]:0x8d5ed2
wasm_bindgen_futures::task::singlethread::Task::spawn::ha89c13fca24c24fd@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[14114]:0x9fb54c
wasm_bindgen_futures::future_to_promise::{{closure}}::h2b17b575b197db96@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[12417]:0x9b8f90
wasm_bindgen::convert::closures::invoke2_mut::h2aa4f6f41d346c98@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[17985]:0xa408c9
__wbg_adapter_860@http://192.168.0.158:56511/re_viewer.js:357:10
cb0@http://192.168.0.158:56511/re_viewer.js:2185:28
getImports/imports.wbg.__wbg_new_9d3a9ce4282a18a8/<@http://192.168.0.158:56511/re_viewer.js:2190:25
logError@http://192.168.0.158:56511/re_viewer.js:242:18
getImports/imports.wbg.__wbg_new_9d3a9ce4282a18a8@http://192.168.0.158:56511/re_viewer.js:2178:66
js_sys::Promise::new::hb7a74dc6ba9d0b79@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[21348]:0xa4ef40
webhandle_new@http://192.168.0.158:56511/re_viewer.js line 478 > WebAssembly.instantiate:wasm-function[14333]:0xa01d66
WebHandle@http://192.168.0.158:56511/re_viewer.js:397:26
on_wasm_loaded@http://192.168.0.158:56511/:189:26
promise callback*load_wasm@http://192.168.0.158:56511/:166:18
@http://192.168.0.158:56511/:156:13
@emilk emilk added 🪳 bug Something isn't working 🕸️ web regarding running the viewer in a browser labels May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant