Skip to content

panicked at tao-0.35.2\src\platform_impl\windows\event_loop\runner.rs:371:25: #1310

Description

@channingxiao18

Describe the bug

panicked at C:\Users\clxia.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tao-0.35.2\src\platform_impl\windows\event_loop\runner.rs:371:25:

panicked at C:\Users\clxia.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tao-0.35.2\src\platform_impl\windows\event_loop\runner.rs:371:25:
cannot move state from Destroyed

Steps To Reproduce
I can't reproduce, but I intergared sentry, online users reports many panics

Here is several back trace

animate 0x7ff728fcf291 sentry_unwind_stack_from_ucontext
animate 0x7ff728fcf208 sentry_unwind_stack
animate 0x7ff728fc2eaf sentry_value_new_stacktrace
animate 0x7ff728fc30b1 sentry_event_value_add_stacktrace
animate 0x7ff728e51074 sentry_contrib_native::event::Event::stacktrace (event.rs:140)
animate 0x7ff728e51196 sentry_contrib_native::event::Event::add_stacktrace (event.rs:162)
animate 0x7ff728e4df94 sentry_contrib_native::panic::set_hook::closure$0 (panic.rs:85)
animate 0x7ff728e7fd1b std::panic::PanicHookInfo::new (boxed.rs:2254)
animate 0x7ff728e7fd1b std::panicking::panic_with_hook (panicking.rs:833)
animate 0x7ff728e6cbba std::panicking::panic_handler::closure$0 (panicking.rs:691)
animate 0x7ff728e6a41e std::sys::backtrace::__rust_end_short_backtrace (backtrace.rs:182)
animate 0x7ff728e6d16d std::panicking::panic_handler (panicking.rs:689)
animate 0x7ff7290710ec core::panicking::panic_fmt (panicking.rs:80)
animate 0x7ff7286ea500 tao::platform_impl::platform::event_loop::runner::EventLoopRunner::move_state_to (runner.rs:371)
animate 0x7ff7286e425a tao::platform_impl::platform::event_loop::runner::EventLoopRunner::main_events_cleared (runner.rs:231)
animate 0x7ff7286e425a tao::platform_impl::platform::event_loop::flush_paint_messages (event_loop.rs:796)
animate 0x7ff7286e96f9 tao::platform_impl::platform::event_loop::thread_event_target_callback::closure$0 (event_loop.rs:2344)
animate 0x7ff7286e96f9 core::ops::function::FnOnce::call_once (function.rs:250)
animate 0x7ff7286e96f9 core::panic::unwind_safe::impl$25::call_once (unwind_safe.rs:274)
animate 0x7ff7286e96f9 std::panicking::catch_unwind::do_call (panicking.rs:581)
animate 0x7ff7286e96f9 std::panicking::catch_unwind (panicking.rs:544)
animate 0x7ff7286e96f9 std::panic::catch_unwind (panic.rs:359)
animate 0x7ff7286e96f9 tao::platform_impl::platform::event_loop::runner::EventLoopRunner::catch_unwind (runner.rs:156)
animate 0x7ff7286e96f9 tao::platform_impl::platform::event_loop::thread_event_target_callback (event_loop.rs:2447)
comctl32 0x7ffbdaefa089 CallNextSubclassProc
comctl32 0x7ffbdaef9e86 MasterSubclassProc
user32 0x7ffbf40bef5b UserCallWinProcCheckWow
user32 0x7ffbf40be8cb DispatchClientMessage
user32 0x7ffbf40d10e2 _fnDWORD
ntdll 0x7ffbf4651423 KiUserCallbackDispatch
win32u 0x7ffbf1df1703 ZwUserDispatchMessage
user32 0x7ffbf40be7b0 DispatchMessageWorker
animate 0x7ff7286e2543 windows::Win32::UI::WindowsAndMessaging::DispatchMessageW (mod.rs:577)
animate 0x7ff7286e2543 tao::platform_impl::platform::event_loop::EventLoop::run_return (event_loop.rs:267)
animate 0x7ff7287219ab tao::platform_impl::platform::event_loop::EventLoop::run (event_loop.rs:229)
animate 0x7ff7287219ab tao::event_loop::EventLoop::run (event_loop.rs:224)
animate 0x7ff7287219ab tauri_runtime_wry::impl$45::run (lib.rs:3246)
animate 0x7ff72891984a tauri::app::App::run (app.rs:1365)
animate 0x7ff7286cec95 animate_lib::run (lib.rs:476)
animate 0x7ff728681085 core::ops::function::FnOnce::call_once (function.rs:250)
animate 0x7ff728681085 std::sys::backtrace::__rust_begin_short_backtrace (backtrace.rs:166)
animate 0x7ff728bd508b std::rt::lang_start::closure$0 (rt.rs:206)
animate 0x7ff728bd508b core::ops::function::FnOnce::call_once (function.rs:250)
animate 0x7ff728bd508b core::ops::function::FnOnce::call_once (function.rs:250)
animate 0x7ff728e7e2af core::ops::function::impls::impl$2::call_once (function.rs:287)
animate 0x7ff728e7e2af std::panicking::catch_unwind::do_call (panicking.rs:581)
animate 0x7ff728e7e2af std::panicking::catch_unwind (panicking.rs:544)
animate 0x7ff728e7e2af std::panic::catch_unwind (panic.rs:359)
animate 0x7ff728e7e2af std::rt::lang_start_internal::closure$0 (rt.rs:175)
animate 0x7ff728e7e2af std::panicking::catch_unwind::do_call (panicking.rs:581)
animate 0x7ff728e7e2af std::panicking::catch_unwind (panicking.rs:544)
animate 0x7ff728e7e2af std::panic::catch_unwind (panic.rs:359)
animate 0x7ff728e7e2af std::rt::lang_start_internal (rt.rs:171)
animate 0x7ff72868106b main

Platform and Versions (please complete the following information):
OS: windows
Rustc:

Rust :1.95.0
Rust Edition:2021
Tauri:2.11.2

下载.json

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions