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

Example TODO-MVC crashed #7851

Open
zhuyu4839 opened this issue Mar 13, 2025 · 3 comments
Open

Example TODO-MVC crashed #7851

zhuyu4839 opened this issue Mar 13, 2025 · 3 comments
Labels
a:language-rust Rust API and codegen (mO,mS) bug Something isn't working

Comments

@zhuyu4839
Copy link

Bug Description

After cargo run

  1. click + for adding task;
  2. Task name text input is not-editable
  3. click Task name text input
  4. click Due date for selecting date
  5. move the mouse over the window edge to zoom in on it, then show date selector
  6. crash after Ok button clicked

I have only reproduced it three or four times, and I can't reproduce it after setting RUST_BACKTRACE to 1.

Exception stack:

thread 'main' panicked at E:\Workspace\RustProjects\todo-mvc\target\debug\build\todo-mvc-b948f43208926a2d\out\index.rs:32772:87:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at library\core\src\panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x7ff7abf7fc51 - std::backtrace_rs::backtrace::dbghelp64::trace
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
   1:     0x7ff7abf7fc51 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff7abf7fc51 - std::sys::backtrace::_print_fmt
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\sys\backtrace.rs:66
   3:     0x7ff7abf7fc51 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\sys\backtrace.rs:39
   4:     0x7ff7abf96fda - core::fmt::rt::Argument::fmt
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src\fmt\rt.rs:177
   5:     0x7ff7abf96fda - core::fmt::write
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src\fmt\mod.rs:1440
   6:     0x7ff7abf7c1d7 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\io\mod.rs:1887
   7:     0x7ff7abf7fa95 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\sys\backtrace.rs:42
   8:     0x7ff7abf8168f - std::panicking::default_hook::closure$1
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:295
   9:     0x7ff7abf813f2 - std::panicking::default_hook
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:322
  10:     0x7ff7abf81ecf - std::panicking::rust_panic_with_hook
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:828
  11:     0x7ff7abf81c32 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:694
  12:     0x7ff7abf8039f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\sys\backtrace.rs:168
  13:     0x7ff7abf8186e - std::panicking::begin_panic_handler
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:692
  14:     0x7ff7abfa15b5 - core::panicking::panic_nounwind_fmt
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src\intrinsics\mod.rs:3869
  15:     0x7ff7abfa1663 - core::panicking::panic_nounwind
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src\panicking.rs:218
  16:     0x7ff7abfa17e7 - core::panicking::panic_cannot_unwind
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\core\src\panicking.rs:307
  17:     0x7ff7ab8c2de6 - i_slint_core::items::TouchAreaVTable::input_event<i_slint_core::items::input_items::TouchArea>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\items.rs:114
  18:     0x7ffa853ef730 - _CxxFrameHandler3
  19:     0x7ffa853e33d8 - is_exception_typeof
  20:     0x7ffa96474556 - RtlCaptureContext
  21:     0x7ff7ab8c2db0 - i_slint_core::items::TouchAreaVTable::input_event<i_slint_core::items::input_items::TouchArea>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\items.rs:114
  22:     0x7ff7ab982f2e - i_slint_core::items::Item_vtable_mod::ItemTO::input_event
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\items.rs:114
  23:     0x7ff7ab91eaa8 - i_slint_core::input::handle_mouse_grab
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\input.rs:619
  24:     0x7ff7ab9910e0 - i_slint_core::window::WindowInner::process_mouse_input
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\window.rs:646
  25:     0x7ff7ab5726dc - i_slint_backend_winit::event_loop::impl$6::window_event
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-winit-1.10.0\event_loop.rs:491
  26:     0x7ff7ab56d41b - winit::application::impl$0::window_event<i_slint_backend_winit::event_loop::EventLoopState,i_slint_backend_winit::SlintUserEvent>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\application.rs:250
  27:     0x7ff7ab574217 - i_slint_backend_winit::event_loop::impl$7::window_event::closure$0<i_slint_backend_winit::SlintUserEvent,ref_mut$<i_slint_backend_winit::event_loop::EventLoopState> >
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-winit-1.10.0\event_loop.rs:641
  28:     0x7ff7ab57babf - i_slint_backend_winit::event_loop::CURRENT_WINDOW_TARGET::set<i_slint_backend_winit::event_loop::impl$7::window_event::closure_env$0<i_slint_backend_winit::SlintUserEvent,ref_mut$<i_slint_backend_winit::event_loop::EventLoopState> >,tuple$<> >
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\scoped-tls-hkt-0.1.5\src\lib.rs:258
  29:     0x7ff7ab574181 - i_slint_backend_winit::event_loop::impl$7::window_event<i_slint_backend_winit::SlintUserEvent,ref_mut$<i_slint_backend_winit::event_loop::EventLoopState> >
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-winit-1.10.0\event_loop.rs:640
  30:     0x7ff7ab593b96 - winit::event_loop::dispatch_event_for_app
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\event_loop.rs:642
  31:     0x7ff7ab593b96 - winit::platform::run_on_demand::EventLoopExtRunOnDemand::run_app_on_demand::closure$0<winit::event_loop::EventLoop<i_slint_backend_winit::SlintUserEvent>,i_slint_backend_winit::event_loop::ActiveEventLoopSetterDuringEventProcessing<ref_mut$<i_slint_backend
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform\run_on_demand.rs:76
  32:     0x7ff7ab559f99 - winit::platform_impl::windows::event_loop::impl$3::run_on_demand::closure$0<i_slint_backend_winit::SlintUserEvent,winit::platform::run_on_demand::EventLoopExtRunOnDemand::run_app_on_demand::closure_env$0<winit::event_loop::EventLoop<i_slint_backend_winit::
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:264
  33:     0x7ff7ab878b18 - alloc::boxed::impl$29::call_mut<tuple$<enum2$<winit::event::Event<winit::platform_impl::windows::event_loop::UserEventPlaceholder> > >,dyn$<core::ops::function::FnMut<tuple$<enum2$<winit::event::Event<winit::platform_impl::windows::event_loop::UserEventPla
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\boxed.rs:2000
  34:     0x7ff7ab86235c - winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure$0<winit::platform_impl::windows::event_loop::UserEventPlaceholder>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop\runner.rs:236
  35:     0x7ff7ab886b74 - core::panic::unwind_safe::impl$25::call_once<tuple$<>,winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure_env$0<winit::platform_impl::windows::event_loop::UserEventPlaceholder> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:272
  36:     0x7ff7ab85920c - std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure_env$0<winit::platform_impl::windows::event_loop::UserEventPlaceholder> >,tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:584
  37:     0x7ff7ab874713 - winit::platform_impl::windows::window::TASKBAR_LIST2::constant$0::closure$1
  38:     0x7ff7ab86c57a - std::panicking::try
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:547
  39:     0x7ff7ab86c57a - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure_env$0<winit::platform_impl::windows::event_loop::UserEventPlaceholder> >,tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:358
  40:     0x7ff7ab860f4f - winit::platform_impl::windows::event_loop::runner::EventLoopRunner<winit::platform_impl::windows::event_loop::UserEventPlaceholder>::catch_unwind<winit::platform_impl::windows::event_loop::UserEventPlaceholder,tuple$<>,winit::platform_impl::windows::event_
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop\runner.rs:173
  41:     0x7ff7ab86225b - winit::platform_impl::windows::event_loop::runner::EventLoopRunner<winit::platform_impl::windows::event_loop::UserEventPlaceholder>::call_event_handler<winit::platform_impl::windows::event_loop::UserEventPlaceholder>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop\runner.rs:230
  42:     0x7ff7ab862108 - winit::platform_impl::windows::event_loop::runner::EventLoopRunner<winit::platform_impl::windows::event_loop::UserEventPlaceholder>::send_event<winit::platform_impl::windows::event_loop::UserEventPlaceholder>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop\runner.rs:220
  43:     0x7ff7ab833d33 - winit::platform_impl::windows::event_loop::WindowData::send_event
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:129
  44:     0x7ff7ab838797 - winit::platform_impl::windows::event_loop::public_window_callback_inner::closure$4
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:1779
  45:     0x7ff7ab849287 - core::ops::function::FnOnce::call_once<winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$4,tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
  46:     0x7ff7ab886bd1 - core::panic::unwind_safe::impl$25::call_once<tuple$<>,winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$4>
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:272
  47:     0x7ff7ab859250 - std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$4>,tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:584
  48:     0x7ff7ab874713 - winit::platform_impl::windows::window::TASKBAR_LIST2::constant$0::closure$1
  49:     0x7ff7ab86c954 - std::panicking::try
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:547
  50:     0x7ff7ab86c954 - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$4>,tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:358
  51:     0x7ff7ab86165f - winit::platform_impl::windows::event_loop::runner::EventLoopRunner<winit::platform_impl::windows::event_loop::UserEventPlaceholder>::catch_unwind<winit::platform_impl::windows::event_loop::UserEventPlaceholder,tuple$<>,winit::platform_impl::windows::event_
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop\runner.rs:173
  52:     0x7ff7ab83759e - winit::platform_impl::windows::event_loop::public_window_callback_inner
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:2437
  53:     0x7ff7ab8372cd - winit::platform_impl::windows::event_loop::public_window_callback
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:1098
  54:     0x7ffa93cd74d6 - DispatchMessageW
  55:     0x7ffa93cd6dbb - CallWindowProcW
  56:     0x7ffa60241639 - glPushClientAttrib
  57:     0x7ffa93cd74d6 - DispatchMessageW
  58:     0x7ffa93cd6dbb - CallWindowProcW
  59:     0x7ff7ab627a93 - windows::Win32::UI::WindowsAndMessaging::CallWindowProcW<windows::Win32::Foundation::HWND,windows::Win32::Foundation::WPARAM,windows::Win32::Foundation::LPARAM>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:118
  60:     0x7ff7ab62bd50 - accesskit_windows::subclass::wnd_proc
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\accesskit_windows-0.24.1\src\subclass.rs:73
  61:     0x7ffa93cd74d6 - DispatchMessageW
  62:     0x7ffa93cd6ff2 - DispatchMessageW
  63:     0x7ff7ab55a334 - winit::platform_impl::windows::event_loop::EventLoop<i_slint_backend_winit::SlintUserEvent>::dispatch_peeked_messages<i_slint_backend_winit::SlintUserEvent>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:419
  64:     0x7ff7ab559d78 - winit::platform_impl::windows::event_loop::EventLoop<i_slint_backend_winit::SlintUserEvent>::run_on_demand<i_slint_backend_winit::SlintUserEvent,winit::platform::run_on_demand::EventLoopExtRunOnDemand::run_app_on_demand::closure_env$0<winit::event_loop::Ev
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform_impl\windows\event_loop.rs:277
  65:     0x7ff7ab5a64c4 - winit::platform::run_on_demand::impl$0::run_on_demand<i_slint_backend_winit::SlintUserEvent,winit::platform::run_on_demand::EventLoopExtRunOnDemand::run_app_on_demand::closure_env$0<winit::event_loop::EventLoop<i_slint_backend_winit::SlintUserEvent>,i_slin
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform\run_on_demand.rs:89
  66:     0x7ff7ab5b6a0b - winit::platform::run_on_demand::EventLoopExtRunOnDemand::run_app_on_demand<winit::event_loop::EventLoop<i_slint_backend_winit::SlintUserEvent>,i_slint_backend_winit::event_loop::ActiveEventLoopSetterDuringEventProcessing<ref_mut$<i_slint_backend_winit::eve
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\winit-0.30.9\src\platform\run_on_demand.rs:75
  67:     0x7ff7ab57492d - i_slint_backend_winit::event_loop::EventLoopState::run
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-winit-1.10.0\event_loop.rs:719
  68:     0x7ff7ab57a4d7 - i_slint_backend_winit::impl$2::run_event_loop
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-winit-1.10.0\lib.rs:495
  69:     0x7ff7ab52ab5a - slint::run_event_loop::closure$0
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\slint-1.10.0\lib.rs:248
  70:     0x7ff7ab527f25 - i_slint_backend_selector::with_platform::closure$0<tuple$<>,slint::run_event_loop::closure_env$0>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-selector-1.10.0\lib.rs:141
  71:     0x7ff7ab52794c - i_slint_core::context::with_global_context::closure$0<enum2$<core::result::Result<tuple$<>,enum2$<i_slint_core::api::PlatformError> > >,i_slint_backend_selector::with_global_context::closure_env$0<enum2$<core::result::Result<tuple$<>,enum2$<i_slint_core::a
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\context.rs:100
  72:     0x7ff7ab528481 - std::thread::local::LocalKey<once_cell::unsync::OnceCell<i_slint_core::context::SlintContext> >::try_with<once_cell::unsync::OnceCell<i_slint_core::context::SlintContext>,i_slint_core::context::with_global_context::closure_env$0<enum2$<core::result::Result
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\thread\local.rs:308
  73:     0x7ff7ab528342 - std::thread::local::LocalKey<once_cell::unsync::OnceCell<i_slint_core::context::SlintContext> >::with<once_cell::unsync::OnceCell<i_slint_core::context::SlintContext>,i_slint_core::context::with_global_context::closure_env$0<enum2$<core::result::Result<tup
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\thread\local.rs:272
  74:     0x7ff7ab5272a0 - i_slint_core::context::with_global_context<enum2$<core::result::Result<tuple$<>,enum2$<i_slint_core::api::PlatformError> > >,i_slint_backend_selector::with_global_context::closure_env$0<enum2$<core::result::Result<tuple$<>,enum2$<i_slint_core::api::Platfor
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-core-1.10.0\context.rs:99
  75:     0x7ff7ab52809b - i_slint_backend_selector::with_global_context<enum2$<core::result::Result<tuple$<>,enum2$<i_slint_core::api::PlatformError> > >,i_slint_backend_selector::with_platform::closure_env$0<tuple$<>,slint::run_event_loop::closure_env$0> >  
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-selector-1.10.0\lib.rs:148
  76:     0x7ff7ab527c7b - i_slint_backend_selector::with_platform<tuple$<>,slint::run_event_loop::closure_env$0>
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\i-slint-backend-selector-1.10.0\lib.rs:141
  77:     0x7ff7ab52ab31 - slint::run_event_loop
                               at ...\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\slint-1.10.0\lib.rs:248
  78:     0x7ff7ab0df844 - todo_lib_mvc::ui::slint_generatedMainWindow::impl$183::run
                               at E:\Workspace\RustProjects\todo-mvc\target\debug\build\todo-mvc-b948f43208926a2d\out\index.rs:39825
  79:     0x7ff7ab0311d8 - todo_lib_mvc::main
                               at E:\Workspace\RustProjects\todo-mvc\src\lib.rs:18
  80:     0x7ff7ab031139 - todo_mvc::main
                               at E:\Workspace\RustProjects\todo-mvc\src\main.rs:5
  81:     0x7ff7ab03102b - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
  82:     0x7ff7ab03111e - core::hint::black_box
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\hint.rs:475
  83:     0x7ff7ab03111e - std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\backtrace.rs:152
  84:     0x7ff7ab0310f1 - std::rt::lang_start::closure$0<tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:195
  85:     0x7ff7abf77cbc - std::rt::lang_start_internal::closure$1
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\rt.rs:174
  86:     0x7ff7abf77cbc - std::panicking::try::do_call
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:584
  87:     0x7ff7abf77cbc - std::panicking::try
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panicking.rs:547
  88:     0x7ff7abf77cbc - std::panic::catch_unwind
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\panic.rs:358
  89:     0x7ff7abf77cbc - std::rt::lang_start_internal
                               at /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688/library\std\src\rt.rs:174
  90:     0x7ff7ab0310ca - std::rt::lang_start<tuple$<> >
                               at ...\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:194
  91:     0x7ff7ab031159 - main
  92:     0x7ff7abf9eff0 - invoke_main
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  93:     0x7ff7abf9eff0 - __scrt_common_main_seh
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  94:     0x7ffa93f77ac4 - BaseThreadInitThunk
  95:     0x7ffa9642a8c1 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.
error: process didn't exit successfully: `target\debug\todo-mvc.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

Reproducible Code (if applicable)

Environment Details

  • Slint Version: 1.10.0
  • Platform/OS: Windows 10 LTSC 2019
  • Programming Language: Rust
  • Backend/Renderer: ...

Product Impact

No response

@zhuyu4839 zhuyu4839 added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Mar 13, 2025
@hunger hunger added the a:backend-winit Winit backend (mS,mO) label Mar 13, 2025
@hunger
Copy link
Member

hunger commented Mar 13, 2025

The panic close to the winit event handling code, so it might be a bug there or us ignoring some rare error condition.

@hunger
Copy link
Member

hunger commented Mar 13, 2025

Thank you for all your reports! They are very much appreciated.

@ogoffart
Copy link
Member

thread 'main' panicked at E:\Workspace\RustProjects\todo-mvc\target\debug\build\todo-mvc-b948f43208926a2d\out\index.rs:32772:87:
called `Option::unwrap()` on a `None` value

The panic is in the generated code, not in winit, so changing the category.

The line in question is

if let Some (current_id) = _self . parent . upgrade () . unwrap () . as_pin_ref () . r#popup_id_0 . take () {

Looks like a classic bug in which the parent was deleted.
Something to be fixed like #5813
There is still a bunch of parent.upgrade().unwrap() in rust.rs. The case here seems to be in the implementation of BuiltinFunction::ClosePopupWindow

@ogoffart ogoffart added a:language-rust Rust API and codegen (mO,mS) and removed a:backend-winit Winit backend (mS,mO) need triaging Issue that the owner of the area still need to triage labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-rust Rust API and codegen (mO,mS) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants