LSP: live preview crashes in v1.16.1 and v1.17.0
packaging
### Bug Description
# Bug description
The live preview crashes when opening a certain component. Both v1.16.1 and v1.17.0 seem to be affected. It seems to be a stack overflow in both cases.
LSP logs for v1.16.1:
```
thread 'main' (41556) has overflowed its stack
2026-06-25T22:12:21.586608Z ERROR slint_lsp::preview::connector::native: The Slint live preview crashed! Please open a bug on the [Slint bug tracker](https://github.com/slint-ui/slint/issues).
```
LSP logs for v1.17.0:
```
thread 'main' (35952) has overflowed its stack
2026-06-25T22:16:59.125856Z ERROR slint_lsp::preview::connector::native: The Slint live preview crashed! Please open a bug on the [Slint bug tracker](https://github.com/slint-ui/slint/issues).
```
# How to reproduce
1. Install the Slint LSP & environment
- This probably does not make a difference, but for completeness' sake
- Install the Slint extension v1.16.1 for Zed (1.x)
- Install the Slint LSP with `cargo install --debug --force slint-lsp@1.17.0`
- Configure the LSP extension to use `slint-lsp.exe` from cargo's bin folder
- Launch Zed
2. Open [sed_manager_gui_slint.zip](https://github.com/user-attachments/files/29359534/sed_manager_gui_slint.zip)/ui/main_window.slint:`MainWindow` in the live preview
3. Click "Configure locking" as indicated on the image
4. The LSP crashes with a stack overflow (at least for me)
<img width="626" height="485" alt="Image" src="https://github.com/user-attachments/assets/5799074d-797e-4f5b-9638-9fa20a492e27" />
# Additional information
## Running from Rust
The crash only occurs in the LSP live preview, but not when compiling the Slint components and running it from a Rust host application.
Extract from `Cargo.lock`:
```
[[package]]
name = "slint"
version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a54a407d1a0cbaa71d830ae7c236064b171368ea18db3b51ea3f2ce3f19519ee"
dependencies = [
"...",
]
```
## Minimal repro
Feel free to get back to me in case you need a **minimal** repro. Including the entire source code saves me time, but I understand it may be less helpful for you.
### Reproducible Code (if applicable)
```slint
```
### Environment Details
- Slint Version: v1.16.1 and v1.17.0 (LSP)
- Platform/OS: Windows 11 25H2
- Programming Language: Slint (Rust not involved)
- Backend/Renderer: LSP default
### Product Impact
_No response_
5 条评论