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 in compiler #7820

Closed
hunger opened this issue Mar 7, 2025 · 2 comments
Closed

Crash in compiler #7820

hunger opened this issue Mar 7, 2025 · 2 comments
Labels
bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@hunger
Copy link
Member

hunger commented Mar 7, 2025

Bug Description

The following piece of code crashes the compiler for me:

Reproducible Code (if applicable)

export component MainWindow inherits Window{
    in-out property <int> some_prop: 42;
}
export { MainWindow as Main-Window }

Environment Details

  • Slint Version: master
  • Platform/OS: Linux
  • Programming Language: None
  • Backend/Renderer: None

Product Impact

No response

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

hunger commented Mar 7, 2025

The use case is the minimized result from the fuzzer. I can reproduce this in slintpad.com

@ogoffart
Copy link
Member

ogoffart commented Mar 7, 2025

panicked at internal/compiler/passes/generate_item_indices.rs:93:67:
called `Result::unwrap()` on an `Err` value: 0

This is the same as #6559 and #7029

@ogoffart ogoffart closed this as completed Mar 7, 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