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

crash when click the ComboBox #7403

Open
agkyunromb opened this issue Jan 20, 2025 · 6 comments
Open

crash when click the ComboBox #7403

agkyunromb opened this issue Jan 20, 2025 · 6 comments
Labels
a:accessibility Support for assistive technologies (mS,bT) need triaging Issue that the owner of the area still need to triage

Comments

@agkyunromb
Copy link

agkyunromb commented Jan 20, 2025

ComboBox work fine in preview
but crashed when you build and run from rust

  • Slint Version: 1.9.2
  • Platform/OS: Windows 11 22H2 22621.4317
  • Programming Language: rust v1.86.0-nightly msvc backend
  • Backend/Renderer: winit

is there something wrong with my environment or meet some bugs ?

app.slint

import { ComboBox, HorizontalBox } from "std-widgets.slint";
export component ParamEditor inherits Window {
    HorizontalBox {
        alignment: start;
        Text {
            text: "ABCD:";
        }

        hello := ComboBox {
            model: ["A", "B", "C", "D"];

        }
    }
}

main.rs

slint::include_modules!();
fn main() {
    let app = ParamEditor::new().unwrap();
    app.run().unwrap();
}

error message when click the combox

thread 'main' panicked at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\accesskit_consumer-0.26.0\src\tree.rs:34:13:
Focused id #8589934592 is not in the node list
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:     0x7ff708d70691 - std::backtrace_rs::backtrace::dbghelp64::trace
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
   1:     0x7ff708d70691 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff708d70691 - std::sys::backtrace::_print_fmt
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\sys\backtrace.rs:66
   3:     0x7ff708d70691 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\sys\backtrace.rs:39
   4:     0x7ff708d87aea - core::fmt::rt::Argument::fmt
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\core\src\fmt\rt.rs:177
   5:     0x7ff708d87aea - core::fmt::write
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\core\src\fmt\mod.rs:1440
   6:     0x7ff708d6cf97 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\io\mod.rs:1887
   7:     0x7ff708d704d5 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\sys\backtrace.rs:42
   8:     0x7ff708d720cf - std::panicking::default_hook::closure$1
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:295
   9:     0x7ff708d71e32 - std::panicking::default_hook
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:322
  10:     0x7ff708d7290f - std::panicking::rust_panic_with_hook
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:828
  11:     0x7ff708d72672 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:694
  12:     0x7ff708d70ddf - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\sys\backtrace.rs:168
  13:     0x7ff708d722ae - std::panicking::begin_panic_handler
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:692
  14:     0x7ff708d91245 - core::panicking::panic_nounwind_fmt
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\core\src\intrinsics\mod.rs:3857
  15:     0x7ff708d912f3 - core::panicking::panic_nounwind
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\core\src\panicking.rs:218
  16:     0x7ff708d91477 - core::panicking::panic_cannot_unwind
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\core\src\panicking.rs:307
  17:     0x7ff7085e6e96 - i_slint_core::items::FocusScopeVTable::key_event<i_slint_core::items::input_items::FocusScope>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\items.rs:110
  18:     0x7ffc8086f540 - _CxxFrameHandler3
  19:     0x7ffc808633d8 - is_exception_typeof
  20:     0x7ffca2bd49c6 - RtlCaptureContext2
  21:     0x7ff7085e6e63 - i_slint_core::items::FocusScopeVTable::key_event<i_slint_core::items::input_items::FocusScope>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\items.rs:110
  22:     0x7ff7086f6510 - i_slint_core::items::Item_vtable_mod::ItemTO::key_event
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\items.rs:110
  23:     0x7ff70862d03f - i_slint_core::window::WindowInner::process_key_input
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\window.rs:722
  24:     0x7ff7085f20c4 - i_slint_core::api::Window::try_dispatch_event
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\api.rs:607
  25:     0x7ff7082adba5 - i_slint_backend_winit::event_loop::impl$6::window_event
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-winit-1.9.2\event_loop.rs:383
  26:     0x7ff7082a897b - winit::application::impl$0::window_event<i_slint_backend_winit::event_loop::EventLoopState,i_slint_backend_winit::SlintUserEvent>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\application.rs:250
  27:     0x7ff7082afa97 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-winit-1.9.2\event_loop.rs:635
  28:     0x7ff7082b49ef - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\scoped-tls-hkt-0.1.5\src\lib.rs:258
  29:     0x7ff7082afa01 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-winit-1.9.2\event_loop.rs:634
  30:     0x7ff7082a80e6 - winit::event_loop::dispatch_event_for_app
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\event_loop.rs:642
  31:     0x7ff7082a80e6 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform\run_on_demand.rs:76
  32:     0x7ff7082c1c59 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:264
  33:     0x7ff70858e6f8 - 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 D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\boxed.rs:2020
  34:     0x7ff7085aa7ec - winit::platform_impl::windows::event_loop::runner::impl$3::call_event_handler::closure$0<winit::platform_impl::windows::event_loop::UserEventPlaceholder>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop\runner.rs:236
  35:     0x7ff708582554 - 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 D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:272
  36:     0x7ff70858f03c - 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 D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:584
  37:     0x7ff7085a4763 - winit::platform_impl::windows::util::GET_POINTER_PEN_INFO::closure$0::closure$0
  38:     0x7ff7085a0b6a - std::panicking::try
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:547
  39:     0x7ff7085a0b6a - 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 D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:358
  40:     0x7ff7085a93df - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop\runner.rs:173
  41:     0x7ff7085aa6eb - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop\runner.rs:230
  42:     0x7ff7085aa598 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop\runner.rs:220
  43:     0x7ff70855c9e3 - winit::platform_impl::windows::event_loop::WindowData::send_event
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:129
  44:     0x7ff708560641 - winit::platform_impl::windows::event_loop::public_window_callback_inner::closure$2
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:1141
  45:     0x7ff70857acd7 - core::ops::function::FnOnce::call_once<winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$2,tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
  46:     0x7ff7085825b1 - core::panic::unwind_safe::impl$25::call_once<tuple$<>,winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$2>
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:272
  47:     0x7ff70858eff0 - std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$2>,tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:584
  48:     0x7ff7085a4763 - winit::platform_impl::windows::util::GET_POINTER_PEN_INFO::closure$0::closure$0
  49:     0x7ff7085a0c14 - std::panicking::try
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:547
  50:     0x7ff7085a0c14 - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<winit::platform_impl::windows::event_loop::public_window_callback_inner::closure_env$2>,tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:358
  51:     0x7ff7085a978f - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop\runner.rs:173
  52:     0x7ff7085601c6 - winit::platform_impl::windows::event_loop::public_window_callback_inner
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:1151
  53:     0x7ff70855ff7d - winit::platform_impl::windows::event_loop::public_window_callback
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:1098
  54:     0x7ffca21683f1 - DispatchMessageW
  55:     0x7ffca2167c3b - CallWindowProcW
  56:     0x7ffc86cf1eb4 - wglSwapBuffers
  57:     0x7ffca21683f1 - DispatchMessageW
  58:     0x7ffca2167c3b - CallWindowProcW
  59:     0x7ff7083680c3 - windows::Win32::UI::WindowsAndMessaging::CallWindowProcW<windows::Win32::Foundation::HWND,windows::Win32::Foundation::WPARAM,windows::Win32::Foundation::LPARAM>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\windows-0.58.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:118
  60:     0x7ff70836c5b0 - accesskit_windows::subclass::wnd_proc
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\accesskit_windows-0.24.1\src\subclass.rs:73
  61:     0x7ffca21683f1 - DispatchMessageW
  62:     0x7ffca2167eb1 - DispatchMessageW
  63:     0x7ff7082c1ff4 - winit::platform_impl::windows::event_loop::EventLoop<i_slint_backend_winit::SlintUserEvent>::dispatch_peeked_messages<i_slint_backend_winit::SlintUserEvent>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:419
  64:     0x7ff7082c1a38 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform_impl\windows\event_loop.rs:277
  65:     0x7ff708316ae4 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform\run_on_demand.rs:89
  66:     0x7ff708327c7b - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\winit-0.30.8\src\platform\run_on_demand.rs:75
  67:     0x7ff7082b01ad - i_slint_backend_winit::event_loop::EventLoopState::run
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-winit-1.9.2\event_loop.rs:713
  68:     0x7ff7082b34f7 - i_slint_backend_winit::impl$2::run_event_loop
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-winit-1.9.2\lib.rs:461
  69:     0x7ff708273e3a - slint::run_event_loop::closure$0
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\slint-1.9.2\lib.rs:246
  70:     0x7ff708272fe5 - i_slint_backend_selector::with_platform::closure$0<tuple$<>,slint::run_event_loop::closure_env$0>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-selector-1.9.2\lib.rs:141
  71:     0x7ff70827297c - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\context.rs:103
  72:     0x7ff7082736d1 - 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 D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\thread\local.rs:308
  73:     0x7ff7082733d2 - 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 D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\thread\local.rs:272
  74:     0x7ff7082722d0 - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-core-1.9.2\context.rs:102
  75:     0x7ff7082730fb - 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 D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-selector-1.9.2\lib.rs:148
  76:     0x7ff708272d7b - i_slint_backend_selector::with_platform<tuple$<>,slint::run_event_loop::closure_env$0>
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\i-slint-backend-selector-1.9.2\lib.rs:141
  77:     0x7ff708273e11 - slint::run_event_loop
                               at D:\rust_env\cargo\registry\src\rsproxy.cn-bba5f22c699b99ea\slint-1.9.2\lib.rs:246
  78:     0x7ff708257704 - slint_gpt::slint_generatedParamEditor::impl$28::run
                               at E:\projects\slint_gpt\target\debug\build\slint_gpt-d02a87a2f5d738fa\out\app.rs:6279
  79:     0x7ff7081ecf87 - slint_gpt::main
                               at E:\projects\slint_gpt\src\main.rs:4
  80:     0x7ff708211d1b - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
  81:     0x7ff7081e623e - core::hint::black_box
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\hint.rs:475
  82:     0x7ff7081e623e - std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\backtrace.rs:152
  83:     0x7ff70820d611 - std::rt::lang_start::closure$0<tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:195
  84:     0x7ff708d6893c - std::rt::lang_start_internal::closure$1
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\rt.rs:174
  85:     0x7ff708d6893c - std::panicking::try::do_call
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:584
  86:     0x7ff708d6893c - std::panicking::try
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panicking.rs:547
  87:     0x7ff708d6893c - std::panic::catch_unwind
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\panic.rs:358
  88:     0x7ff708d6893c - std::rt::lang_start_internal
                               at /rustc/48a426eca9df23b24b3559e545cf88dee61d4de9/library\std\src\rt.rs:174
  89:     0x7ff70820d5ea - std::rt::lang_start<tuple$<> >
                               at D:\rust_env\rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:194
  90:     0x7ff7081ed089 - main
  91:     0x7ff708d8ee00 - invoke_main
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  92:     0x7ff708d8ee00 - __scrt_common_main_seh
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  93:     0x7ffca0ec257d - BaseThreadInitThunk
  94:     0x7ffca2b8af08 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.
error: process didn't exit successfully: `target\debug\slint_gpt.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
@agkyunromb agkyunromb changed the title crash when click the combox crash when click the ComboBox Jan 20, 2025
@novakduc
Copy link

novakduc commented Jan 20, 2025

If your slint-viewer version is 1.9.2. It also crashes when previewing

@ogoffart ogoffart added a:accessibility Support for assistive technologies (mS,bT) need triaging Issue that the owner of the area still need to triage labels Jan 20, 2025
@DataTriny
Copy link
Contributor

This bug was introduced in #7265, although it probably just uncovered a more general issue with focus and repeated elements or popups. I failed to report this earlier, sorry.

I'm curious to know what in both your environments make the AccessKit backend initialize. I don't get any panic if I run the gallery app and click on the combobox if I don't have my screen reader or screen magnifier on.

@novakduc
Copy link

This is what happened when I tested with gallery app.

PS C:\dev\rust\slint\examples\gallery> slint-viewer gallery.slint
thread 'main' panicked at C:\Users.....cargo\registry\src\index.crates.io-6f17d22bba15001f\accesskit_consumer-0.26.0\src\tree.rs:34:13:
Focused id #68719476736 is not in the node list
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at core\src\panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
0: 0x7ff6487bd9a1 -
1: 0x7ff6487df76a -
2: 0x7ff6487b9607 -
3: 0x7ff6487bd7e5 -
4: 0x7ff6487bf687 -
5: 0x7ff6487bf467 -
6: 0x7ff6487bfd13 -
7: 0x7ff6487bfb62 -
8: 0x7ff6487be45f -
9: 0x7ff6487bf79e -
10: 0x7ff6488281a5 -
11: 0x7ff648828253 -
12: 0x7ff648828335 -
13: 0x7ff647fbec73 -
14: 0x7ffd74def540 - _CxxFrameHandler3
15: 0x7ffd74de33d8 - is_exception_typeof
16: 0x7ffd8fa14c96 - RtlCaptureContext2
17: 0x7ff647fbec4b -
18: 0x7ff647fd0833 -
19: 0x7ff647e92312 -
20: 0x7ff647e7df7f -
21: 0x7ff647f9e7b8 -
22: 0x7ff647f9fb9e -
23: 0x7ff647fa2725 -
24: 0x7ff647f9f07c -
25: 0x7ff647f8f33e -
26: 0x7ffd8e7383f1 - DispatchMessageW
27: 0x7ffd8e737c3b - CallWindowProcW
28: 0x7ffd71d11eb4 - wglSwapBuffers
29: 0x7ffd8e7383f1 - DispatchMessageW
30: 0x7ffd8e737c3b - CallWindowProcW
31: 0x7ff647ec2e60 -
32: 0x7ffd8e7383f1 - DispatchMessageW
33: 0x7ffd8e737eb1 - DispatchMessageW
34: 0x7ff647e7e3a5 -
35: 0x7ff647e7d931 -
36: 0x7ff647e94275 -
37: 0x7ff647e42efb -
38: 0x7ff647df2577 -
39: 0x7ff647d786b5 -
40: 0x7ff647bf258b -
41: 0x7ff647c41cc6 -
42: 0x7ff647c1e37c -
43: 0x7ff6487b136c -
44: 0x7ff647bfe1fc -
45: 0x7ff6487e897c -
46: 0x7ffd8da9259d - BaseThreadInitThunk
47: 0x7ffd8f9caf38 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.

@kyp44
Copy link

kyp44 commented Jan 23, 2025

I am also seeing this exact problem when cross-compiling for windows on a Linux host using the x86_64-pc-windows-gnu target, the panic occurs as soon as I click a combo box. I'll note that it works fine with slint and slint-build v1.9.1.

I am guessing the above panic message will be enough to troubleshoot, but I can provide more details and/or an MWE if it would be useful.

@agkyunromb
Copy link
Author

It seems to be caused by shutting down services or streamlining window system , and does not exist on a fresh install of a full system.
Painc can be avoided by manually disabling the accessibility feature
maybe turn it off until the problem is found and fixed.

@kyp44
Copy link

kyp44 commented Jan 24, 2025

@agkyunromb Thanks for the tip. Disabling the accessibility works around the issue for me until it gets fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:accessibility Support for assistive technologies (mS,bT) need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

5 participants