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 #7729

Closed
szecket opened this issue Feb 24, 2025 · 3 comments
Closed

crash #7729

szecket opened this issue Feb 24, 2025 · 3 comments
Assignees
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@szecket
Copy link
Member

szecket commented Feb 24, 2025

Bug Description

   Compiling slint-lsp v1.10.0 (/Users/szecket/Documents/dev/slint-ui/slint/tools/lsp)
error: failed to run custom build command for `slint-lsp v1.10.0 (/Users/szecket/Documents/dev/slint-ui/slint/tools/lsp)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/Users/szecket/Documents/dev/slint-ui/slint/target/debug/build/slint-lsp-82fc24cdca6df15c/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at internal/compiler/llr/lower_expression.rs:43:34:
  called `Option::unwrap()` on a `None` value
  stack backtrace:
     0:        0x104c9f030 - std::backtrace_rs::backtrace::libunwind::trace::h1577399c90b5d8c7
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
     1:        0x104c9f030 - std::backtrace_rs::backtrace::trace_unsynchronized::h1e626537f2a2dae5
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
     2:        0x104c9f030 - std::sys::backtrace::_print_fmt::hdfc6c57ce8e8814f
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/sys/backtrace.rs:66:9
     3:        0x104c9f030 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hadba1856081fe8dc
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/sys/backtrace.rs:39:26
     4:        0x104cba6f4 - core::fmt::rt::Argument::fmt::h2642ab69bd81711d
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/fmt/rt.rs:177:76
     5:        0x104cba6f4 - core::fmt::write::h5358bd20891469bc
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/fmt/mod.rs:1189:21
     6:        0x104c9c22c - std::io::Write::write_fmt::hbf0611cc5d72cc91
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/io/mod.rs:1884:15
     7:        0x104c9eee4 - std::sys::backtrace::BacktraceLock::print::he2302a8c253c9a13
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/sys/backtrace.rs:42:9
     8:        0x104c9fe30 - std::panicking::default_hook::{{closure}}::hec1f77a77d7e7ffc
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:268:22
     9:        0x104c9fc64 - std::panicking::default_hook::hdd59ab537dd27efb
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:295:9
    10:        0x104ca0620 - std::panicking::rust_panic_with_hook::h533a16f5f89e4278
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:801:13
    11:        0x104ca0270 - std::panicking::begin_panic_handler::{{closure}}::h168c3a4362c8e4df
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:667:13
    12:        0x104c9f4f4 - std::sys::backtrace::__rust_end_short_backtrace::h601e3529ca2053df
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/sys/backtrace.rs:170:18
    13:        0x104c9ff50 - rust_begin_unwind
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:665:5
    14:        0x104cea920 - core::panicking::panic_fmt::ha0f8363f677e0181
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/panicking.rs:76:14
    15:        0x104cea990 - core::panicking::panic::hdb1c1abf01ff1978
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/panicking.rs:148:5
    16:        0x104cea8b8 - core::option::unwrap_failed::hb903c8fd63cd2e84
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/option.rs:2009:5
    17:        0x1043ff55c - i_slint_compiler::llr::lower_expression::ExpressionLoweringCtx::map_property_reference::ha0a1abbd5a1ba5a4
    18:        0x10440107c - i_slint_compiler::llr::lower_expression::lower_assignment::hd5e5af7517480a44
    19:        0x1043ffc0c - i_slint_compiler::llr::lower_expression::lower_expression::h255c63b82409849b
    20:        0x1041adad8 - i_slint_compiler::llr::lower_expression::lower_expression::{{closure}}::h93d548e2b8be4c57
    21:        0x1045794e4 - core::iter::adapters::map::map_fold::{{closure}}::h7092264b89af57df
    22:        0x104596a3c - <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::fold::h6bacfbbba4fc2683
    23:        0x104565a2c - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h6a773ad3193b550e
    24:        0x104572748 - core::iter::traits::iterator::Iterator::for_each::ha2658d089eab44f8
    25:        0x104337090 - alloc::vec::Vec<T,A>::extend_trusted::h9d7d7042cce7762c
    26:        0x10435488c - <alloc::vec::Vec<T,A> as alloc::vec::spec_extend::SpecExtend<T,I>>::spec_extend::hcb2e946fd16332dd
    27:        0x10432f05c - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter::hf1207e5eea977c69
    28:        0x104354e90 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::h4c20c98e29eaab6b
    29:        0x1043518e4 - <alloc::vec::Vec<T> as core::iter::traits::collect::FromIterator<T>>::from_iter::h0d0e52e15d8189ef
    30:        0x1045707a8 - core::iter::traits::iterator::Iterator::collect::h7f7069a46f5f191b
    31:        0x1043ffb74 - i_slint_compiler::llr::lower_expression::lower_expression::h255c63b82409849b
    32:        0x10411dc34 - i_slint_compiler::llr::lower_to_item_tree::lower_global_expressions::h144529fb5559b494
    33:        0x1041179ec - i_slint_compiler::llr::lower_to_item_tree::lower_to_item_tree::h7caa655272519d80
    34:        0x104152594 - i_slint_compiler::generator::rust::generate::h8700becf935058d1
    35:        0x1040af474 - slint_build::compile_with_output_path::h9344a8c4a70e197b
    36:        0x1040aebc8 - slint_build::compile_with_config::ha87d9ae28acae24f
    37:        0x1040b00fc - slint_build::compile::h7008e743f7015ec0
    38:        0x1040d6b50 - build_script_build::main::hcea8566e7652a494
    39:        0x1040d41e4 - core::ops::function::FnOnce::call_once::hd0d4b6f48fbf72ca
    40:        0x1040e4b6c - std::sys::backtrace::__rust_begin_short_backtrace::hdb1ca354d9d7d483
    41:        0x1040dce24 - std::rt::lang_start::{{closure}}::h7d2054343e0db19c
    42:        0x104c97434 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h63129b5cef82c653
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/ops/function.rs:284:13
    43:        0x104c97434 - std::panicking::try::do_call::hc75001ce68de17ce
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:557:40
    44:        0x104c97434 - std::panicking::try::hca490467fa33fe9e
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:520:19
    45:        0x104c97434 - std::panic::catch_unwind::h4c361f6b6fc783c6
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panic.rs:358:14
    46:        0x104c97434 - std::rt::lang_start_internal::{{closure}}::hac41dc746758e783
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/rt.rs:174:48
    47:        0x104c97434 - std::panicking::try::do_call::he06680f322313e18
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:557:40
    48:        0x104c97434 - std::panicking::try::hcd65dba861b49988
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panicking.rs:520:19
    49:        0x104c97434 - std::panic::catch_unwind::hbcff3448fe7d00ed
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/panic.rs:358:14
    50:        0x104c97434 - std::rt::lang_start_internal::hacda2dedffd2edb4
                                 at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/rt.rs:174:20
    51:        0x1040dcdfc - std::rt::lang_start::hf9755f77d8747486
    52:        0x1040d6bf8 - _main

Reproducible Code (if applicable)

Environment Details

  • Slint Version:
  • Platform/OS:
  • Programming Language:
  • Backend/Renderer:

Product Impact

No response

@szecket szecket added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Feb 24, 2025
@ogoffart
Copy link
Member

I'm going to seen more info.
It seems to be a crash when building the slint-lsp. But the slint-lsp builds fine (it is build in CI).
I guess this is some branch.
But i'd need a testcase to reproduce.

@szecket
Copy link
Member Author

szecket commented Feb 25, 2025

ok, it is a branch yes,
hunger/tobias/push-qvxpvxwosslm

into this branch I tried to add a

changed property.information => {
  self.viewport.y = 0;
}

to the scrollview in property-view.slint

@ogoffart ogoffart added a:language-interpreted Interpreter implementation and Rust API for it (slint-interpreter crate) (mO,bT) and removed a:language-interpreted Interpreter implementation and Rust API for it (slint-interpreter crate) (mO,bT) labels Mar 5, 2025
@ogoffart
Copy link
Member

ogoffart commented Mar 5, 2025

The branch no longer exist, so i cannot investigate.
Since it is the same compiler error as in #7784 and it also involve change callback, i'll just assume this is duplicate of 7784 which i can reproduce so i'm going to close this one.

@ogoffart ogoffart closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

2 participants