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

Got a bug on atenpt to preview my ui #7862

Open
GrigoryZhimolost opened this issue Mar 15, 2025 · 2 comments
Open

Got a bug on atenpt to preview my ui #7862

GrigoryZhimolost opened this issue Mar 15, 2025 · 2 comments
Labels
a:layouts Related to the layouting and positioning of the elements (mO,bT) bug Something isn't working needs info Further information from the reporter is requested

Comments

@GrigoryZhimolost
Copy link

GrigoryZhimolost commented Mar 15, 2025

Bug Description

i have in property <length> max-el-width: 30px;
and
Button { max-height: max-el-width; ...
So, when i try to preview my ui component(it inherits Window) i get
thread 'main' panicked at 'Error caught at element lookup time', internal\compiler\passes\lower_layout.rs:101:18 note: run withRUST_BACKTRACE=1environment variable to display a backtrace [Info - 10:39:40 AM] Connection to server got closed. Server will restart. The Slint Language Server crashed. This is a bug. Please open an issue on https://github.com/slint-ui/slint/issues

line 101:18 is that Button's max-height

Reproducible Code (if applicable)

Environment Details

  • Slint Version: 1.11.0
  • Platform/OS: windows8
  • Programming Language: Rust

Product Impact

No response

@GrigoryZhimolost GrigoryZhimolost added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Mar 15, 2025
@hunger
Copy link
Member

hunger commented Mar 17, 2025

Thank you for your report.

Do you have a full example to reproduce this issue with? It is going to be hard to find this exact bug without a way to reproduce it.

@ogoffart ogoffart added the needs info Further information from the reporter is requested label Mar 19, 2025
@ogoffart
Copy link
Member

This looks like an actual bug in Slint.
Maybe something related to "Row" as pointed out by the panic location.
But I can't find a way to reproduce.

@GrigoryZhimolost Could you please provide an example a bit bigger, preferably self-contained

@ogoffart ogoffart added a:layouts Related to the layouting and positioning of the elements (mO,bT) and removed need triaging Issue that the owner of the area still need to triage labels Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:layouts Related to the layouting and positioning of the elements (mO,bT) bug Something isn't working needs info Further information from the reporter is requested
Projects
None yet
Development

No branches or pull requests

3 participants