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

web: panicked at 'condvar wait not supported' #3

Open
Sager611 opened this issue May 16, 2023 · 0 comments
Open

web: panicked at 'condvar wait not supported' #3

Sager611 opened this issue May 16, 2023 · 0 comments
Assignees
Labels
bug Something isn't working web Related to running/building for web

Comments

@Sager611
Copy link
Owner

The following errors arise when trying to execute inference of SqueezeNet on web:

panicked at 'condvar wait not supported', library/std/src/sys/wasm/../unsupported/locks/condvar.rs:20:9

Stack:

__wbg_new_abda76e883ba8a5f@webpack:///../pkg/my_project_bg.js?:615:17
__wbg_new_abda76e883ba8a5f@http://localhost:8080/bootstrap.js:77:75
console_error_panic_hook::hook::h3cd70be230b74dd6@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1657]:0x1711b5
core::ops::function::Fn::call::h3d79b42d5bf5f432@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[6853]:0x1ed52d
std::panicking::rust_panic_with_hook::h8d0a63d0479a36c8@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[2175]:0x190f83
std::panicking::begin_panic_handler::{{closure}}::hac9eebb5245da5ff@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[2781]:0x1ac87c
std::sys_common::backtrace::__rust_end_short_backtrace::h1def76e070463564@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[5130]:0x1e3a05
rust_begin_unwind@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[3989]:0x1d0779
core::panicking::panic_fmt::h2a7f454a5f5da218@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[4819]:0x1df976
std::sys::wasm::locks::condvar::Condvar::wait::hef131c2237ffd188@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[4588]:0x1dbfa4
pollster::Signal::wait::hbae3ccab8a927a6f@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1815]:0x17c227
pollster::block_on::h9d5d4dec8e7c6568@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[295]:0x34420
my_project::state::State::classify_screenshot::h5d1c1e4c32296521@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1037]:0x1340be
my_project::state::State::input::h3803ec733d6d29a4@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[2206]:0x1928c0
winit::platform_impl::platform::event_loop::EventLoop<T>::spawn::{{closure}}::had4dfc3dd19da93a@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[931]:0x124df3
winit::platform_impl::platform::event_loop::runner::Shared<T>::handle_event::h82249baa66e072b6@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[943]:0x126a0c
winit::platform_impl::platform::event_loop::runner::Shared<T>::handle_event::h82249baa66e072b6@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[943]:0x126b4d
winit::platform_impl::platform::event_loop::runner::Shared<T>::run_until_cleared::h1d314ff890f4fb65@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[955]:0x12870e
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::{{closure}}::h22c4b21a5db2d646@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[4730]:0x1de3ce
<dyn core::ops::function::FnMut<()>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h7a52a864871e09ce@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[5681]:0x1e88ac
__wbg_adapter_46@webpack:///../pkg/my_project_bg.js?:526:10
real@webpack:///../pkg/my_project_bg.js?:495:20
FrameRequestCallback*__wbg_requestAnimationFrame_81e888f67b20c79f/<@webpack:///../pkg/my_project_bg.js?:764:33
handleError@webpack:///../pkg/my_project_bg.js?:551:18
__wbg_requestAnimationFrame_81e888f67b20c79f@webpack:///../pkg/my_project_bg.js?:763:66
__wbg_requestAnimationFrame_81e888f67b20c79f@http://localhost:8080/bootstrap.js:158:75
web_sys::features::gen_Window::Window::request_animation_frame::h96a947f3e6ec7e2e@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[3980]:0x1d040b
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::h76c6e6af740cba26@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1715]:0x175649
winit::platform_impl::platform::event_loop::runner::Shared<T>::apply_control_flow::h387e630dc3fef919@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[961]:0x129544
winit::platform_impl::platform::event_loop::runner::Shared<T>::run_until_cleared::h1d314ff890f4fb65@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[955]:0x1288ee
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::{{closure}}::h22c4b21a5db2d646@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[4730]:0x1de3ce
<dyn core::ops::function::FnMut<()>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h7a52a864871e09ce@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[5681]:0x1e88ac
__wbg_adapter_46@webpack:///../pkg/my_project_bg.js?:526:10
real@webpack:///../pkg/my_project_bg.js?:495:20
FrameRequestCallback*__wbg_requestAnimationFrame_81e888f67b20c79f/<@webpack:///../pkg/my_project_bg.js?:764:33
handleError@webpack:///../pkg/my_project_bg.js?:551:18
__wbg_requestAnimationFrame_81e888f67b20c79f@webpack:///../pkg/my_project_bg.js?:763:66
__wbg_requestAnimationFrame_81e888f67b20c79f@http://localhost:8080/bootstrap.js:158:75
web_sys::features::gen_Window::Window::request_animation_frame::h96a947f3e6ec7e2e@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[3980]:0x1d040b
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::h76c6e6af740cba26@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1715]:0x175649
winit::platform_impl::platform::event_loop::runner::Shared<T>::apply_control_flow::h387e630dc3fef919@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[961]:0x129544
winit::platform_impl::platform::event_loop::runner::Shared<T>::run_until_cleared::h1d314ff890f4fb65@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[955]:0x1288ee
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::{{closure}}::h22c4b21a5db2d646@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[4730]:0x1de3ce
<dyn core::ops::function::FnMut<()>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h7a52a864871e09ce@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[5681]:0x1e88ac
__wbg_adapter_46@webpack:///../pkg/my_project_bg.js?:526:10
real@webpack:///../pkg/my_project_bg.js?:495:20
FrameRequestCallback*__wbg_requestAnimationFrame_81e888f67b20c79f/<@webpack:///../pkg/my_project_bg.js?:764:33
handleError@webpack:///../pkg/my_project_bg.js?:551:18
__wbg_requestAnimationFrame_81e888f67b20c79f@webpack:///../pkg/my_project_bg.js?:763:66
__wbg_requestAnimationFrame_81e888f67b20c79f@http://localhost:8080/bootstrap.js:158:75
web_sys::features::gen_Window::Window::request_animation_frame::h96a947f3e6ec7e2e@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[3980]:0x1d040b
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::h76c6e6af740cba26@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1715]:0x175649
winit::platform_impl::platform::event_loop::runner::Shared<T>::apply_control_flow::h387e630dc3fef919@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[961]:0x129544
winit::platform_impl::platform::event_loop::runner::Shared<T>::run_until_cleared::h1d314ff890f4fb65@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[955]:0x1288ee
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::{{closure}}::h22c4b21a5db2d646@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[4730]:0x1de3ce
<dyn core::ops::function::FnMut<()>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h7a52a864871e09ce@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[5681]:0x1e88ac
__wbg_adapter_46@webpack:///../pkg/my_project_bg.js?:526:10
real@webpack:///../pkg/my_project_bg.js?:495:20
FrameRequestCallback*__wbg_requestAnimationFrame_81e888f67b20c79f/<@webpack:///../pkg/my_project_bg.js?:764:33
handleError@webpack:///../pkg/my_project_bg.js?:551:18
__wbg_requestAnimationFrame_81e888f67b20c79f@webpack:///../pkg/my_project_bg.js?:763:66
__wbg_requestAnimationFrame_81e888f67b20c79f@http://localhost:8080/bootstrap.js:158:75
web_sys::features::gen_Window::Window::request_animation_frame::h96a947f3e6ec7e2e@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[3980]:0x1d040b
winit::platform_impl::platform::backend::timeout::AnimationFrameRequest::new::h76c6e6af740cba26@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1715]:0x175649


my_project_bg.js:633:17
Uncaught RuntimeError: unreachable executed
    __wbg_adapter_46 webpack:///../pkg/my_project_bg.js?:526
    real webpack:///../pkg/my_project_bg.js?:495
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:764
    handleError webpack:///../pkg/my_project_bg.js?:551
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:763
    __wbg_requestAnimationFrame_81e888f67b20c79f http://localhost:8080/bootstrap.js:158
    __wbg_adapter_46 webpack:///../pkg/my_project_bg.js?:526
    real webpack:///../pkg/my_project_bg.js?:495
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:764
    handleError webpack:///../pkg/my_project_bg.js?:551
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:763
    __wbg_requestAnimationFrame_81e888f67b20c79f http://localhost:8080/bootstrap.js:158
    __wbg_adapter_46 webpack:///../pkg/my_project_bg.js?:526
    real webpack:///../pkg/my_project_bg.js?:495
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:764
    handleError webpack:///../pkg/my_project_bg.js?:551
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:763
    __wbg_requestAnimationFrame_81e888f67b20c79f http://localhost:8080/bootstrap.js:158
    __wbg_adapter_46 webpack:///../pkg/my_project_bg.js?:526
    real webpack:///../pkg/my_project_bg.js?:495
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:764
    handleError webpack:///../pkg/my_project_bg.js?:551
    __wbg_requestAnimationFrame_81e888f67b20c79f webpack:///../pkg/my_project_bg.js?:763
    __wbg_requestAnimationFrame_81e888f67b20c79f http://localhost:8080/bootstrap.js:158
d3e849d5d01b42315a4a.module.wasm:2022476:1
panicked at 'assertion failed: `(left == right)`
  left: `true`,
 right: `false`: cannot recursively acquire mutex', /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/sys/wasm/../unsupported/locks/mutex.rs:20:9

Stack:

__wbg_new_abda76e883ba8a5f@webpack:///../pkg/my_project_bg.js?:615:17
__wbg_new_abda76e883ba8a5f@http://localhost:8080/bootstrap.js:77:75
console_error_panic_hook::hook::h3cd70be230b74dd6@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[1657]:0x1711b5
core::ops::function::Fn::call::h3d79b42d5bf5f432@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[6853]:0x1ed52d
std::panicking::rust_panic_with_hook::h8d0a63d0479a36c8@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[2175]:0x190f83
std::panicking::begin_panic_handler::{{closure}}::hac9eebb5245da5ff@http://localhost:8080/d3e849d5d01b42315a4a.module.wasm:wasm-function[2781]:0x1ac8aa
std::sys_common::backtrace::__rust_end_short_backtrace::h1def76e07046…
my_project_bg.js:633:17
Uncaught (in promise) RuntimeError: unreachable executed
d3e849d5d01b42315a4a.module.wasm:1642410:1

The issue is in nn.rs line 38.

In particular, something goes wrong on wonnx after here, as the console logs that output.

@Sager611 Sager611 added bug Something isn't working web Related to running/building for web labels May 16, 2023
@Sager611 Sager611 self-assigned this 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 Related to running/building for web
Projects
None yet
Development

No branches or pull requests

1 participant