Replies: 2 comments 3 replies
-
So there is the related topic rust-windowing/winit#3667 |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a lot of related issues. So I will leave the links and close this one. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the problem with triangle example. I want to upgrade winit from 0.29.15 to 0.30. But doesn't know how.
I suspect that I need to use wasm_bindgen_futures and doesn't use pollster.
In winit there is EventLoopExtWebSys::spawn_app() method. Maybe it should be use somehow with wasm_bindgen_futures.
In 0.29.15 we have:
I tried my best and changed code. It is compilable, but I cannot init render staff. With winit 0.30 my code looks like:
I got panics
hello_wasm.js:409 panicked at library/std/src/sys/sync/condvar/no_threads.rs:20:9: condvar wait not supported Stack: Error at http://localhost:7014/pkg/hello_wasm.js:415:21 at logError (http://localhost:7014/pkg/hello_wasm.js:240:18) at imports.wbg.__wbg_new_abda76e883ba8a5f (http://localhost:7014/pkg/hello_wasm.js:414:66) at hello_wasm.wasm.console_error_panic_hook::Error::new::haf98a4b62c108c1a (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[26729]:0xb4d0ec) at hello_wasm.wasm.console_error_panic_hook::hook_impl::hb9370c8528bc0553 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[6002]:0x7d29c5) at hello_wasm.wasm.console_error_panic_hook::hook::h6af5d3f7503eb62c (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[31903]:0xb9e54b) at hello_wasm.wasm.core::ops::function::Fn::call::h07d6c5b0ceb9e440 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[28545]:0xb6d150) at hello_wasm.wasm.std::panicking::rust_panic_with_hook::h32c80a64fe4de396 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[11372]:0x9554de) at hello_wasm.wasm.std::panicking::begin_panic_handler::{{closure}}::hd496964d114e98b9 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[15495]:0xa1659d) at hello_wasm.wasm.std::sys_common::backtrace::__rust_end_short_backtrace::h0d4686a7fe3981a4 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[38175]:0xbdd5db)hello_wasm_bg.wasm:0xbdd6a3 Uncaught (in promise) RuntimeError: unreachable
at hello_wasm.wasm.__rust_start_panic (hello_wasm_bg.wasm:0xbdd6a3)
at hello_wasm.wasm.rust_panic (hello_wasm_bg.wasm:0xbdca21)
at hello_wasm.wasm.std::panicking::rust_panic_with_hook::h32c80a64fe4de396 (hello_wasm_bg.wasm:0x95550e)
at hello_wasm.wasm.std::panicking::begin_panic_handler::{{closure}}::hd496964d114e98b9 (hello_wasm_bg.wasm:0xa1659d)
at hello_wasm.wasm.std::sys_common::backtrace::__rust_end_short_backtrace::h0d4686a7fe3981a4 (hello_wasm_bg.wasm:0xbdd5db)
at hello_wasm.wasm.rust_begin_unwind (hello_wasm_bg.wasm:0xb832c0)
at hello_wasm.wasm.core::panicking::panic_fmt::hc7427f902a13f1a9 (hello_wasm_bg.wasm:0xb9c78b)
at hello_wasm.wasm.std::sys::sync::condvar::no_threads::Condvar::wait::h26a7db7c4c9c1502 (hello_wasm_bg.wasm:0xbbaaa9)
at hello_wasm.wasm.std::sync::condvar::Condvar::wait::h778b12245385c270 (hello_wasm_bg.wasm:0x9c07ab)
at hello_wasm.wasm.pollster::Signal::wait::h517257285e07e67c (hello_wasm_bg.wasm:0x7970f5)
hello_wasm.js:409 panicked at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/sync/mutex/no_threads.rs:20:9:
assertion
left == right
failed: cannot recursively acquire mutexleft: true
right: false
Stack:
Error
at http://localhost:7014/pkg/hello_wasm.js:415:21
at logError (http://localhost:7014/pkg/hello_wasm.js:240:18)
at imports.wbg.__wbg_new_abda76e883ba8a5f (http://localhost:7014/pkg/hello_wasm.js:414:66)
at hello_wasm.wasm.console_error_panic_hook::Error::new::haf98a4b62c108c1a (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[26729]:0xb4d0ec)
at hello_wasm.wasm.console_error_panic_hook::hook_impl::hb9370c8528bc0553 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[6002]:0x7d29c5)
at hello_wasm.wasm.console_error_panic_hook::hook::h6af5d3f7503eb62c (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[31903]:0xb9e54b)
at hello_wasm.wasm.core::ops::function::Fn::call::h07d6c5b0ceb9e440 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[28545]:0xb6d150)
at hello_wasm.wasm.std::panicking::rust_panic_with_hook::h32c80a64fe4de396 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[11372]:0x9554de)
at hello_wasm.wasm.std::panicking::begin_panic_handler::{{closure}}::hd496964d114e98b9 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[15495]:0xa1656a)
at hello_wasm.wasm.std::sys_common::backtrace::__rust_end_short_backtrace::h0d4686a7fe3981a4 (http://localhost:7014/pkg/hello_wasm_bg.wasm:wasm-function[38175]:0xbdd5db)
hello_wasm_bg.wasm:0xbdd6a3 Uncaught (in promise) RuntimeError: unreachable
at hello_wasm.wasm.__rust_start_panic (hello_wasm_bg.wasm:0xbdd6a3)
at hello_wasm.wasm.rust_panic (hello_wasm_bg.wasm:0xbdca21)
at hello_wasm.wasm.std::panicking::rust_panic_with_hook::h32c80a64fe4de396 (hello_wasm_bg.wasm:0x95550e)
at hello_wasm.wasm.std::panicking::begin_panic_handler::{{closure}}::hd496964d114e98b9 (hello_wasm_bg.wasm:0xa1656a)
at hello_wasm.wasm.std::sys_common::backtrace::__rust_end_short_backtrace::h0d4686a7fe3981a4 (hello_wasm_bg.wasm:0xbdd5db)
at hello_wasm.wasm.rust_begin_unwind (hello_wasm_bg.wasm:0xb832c0)
at hello_wasm.wasm.core::panicking::panic_fmt::hc7427f902a13f1a9 (hello_wasm_bg.wasm:0xb9c78b)
at hello_wasm.wasm.core::panicking::assert_failed_inner::h0379ad51ee2a5759 (hello_wasm_bg.wasm:0x7e8ded)
at hello_wasm.wasm.core::panicking::assert_failed::h8b3ec1130970f769 (hello_wasm_bg.wasm:0xaedeaa)
at hello_wasm.wasm.std::sync::mutex::Mutex::lock::hd53279bccb702598 (hello_wasm_bg.wasm:0x6f5edd)
Guys, help please.
Beta Was this translation helpful? Give feedback.
All reactions