-
Notifications
You must be signed in to change notification settings - Fork 543
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
STATUS_STACK_OVERFLOW with multiple ComboBox on different styles #4586
Comments
Thanks for posting a bug. I tried to reproduce, but I cannot reproduce the problem. Note that your code doesn't compile (missing comas and semicolon), but even when i add that and put the combobox next to each other, it works as expected. Is there a backtrace available? What exactly is crashing? Is it when running your program or when building, or the preview? |
Here is a backtrace from the program that is triggering it (sadly i can't share this projects code and wildly enough I can't reproduce it in my own example code for some odd reason)
But the exact line it's being triggered at is the following. let win = MainWindow::new().expect("MainWindow::new() failed"); Above this line is just HIDAPI calls which are all returning fine as they are debug logging the actual result(s) I have been working with. My guess is this looks to be when it is walking the tree on run it might be triggering it, this project has 4 files total 3 of which extend a gridlayout and 1 which is the main.slint. From there the main tab in the tab layout when it wasn't in native contained 1 Combobox and then another tab contained another combobox the stack overflow occures. Each page also exports a "Global" they control that page's state for communication back to the rust code as a struct bound as an Other information as well: |
Is there a difference between debug mode and release mode? |
Sorry for the late reply on this. Just verified that this is only happening in |
#5415 fixes a stack overflow, but that's not really fitting with the backtrace |
When using Slint bindings for rust with the Slint builder, you will cause a
STATUS_STACK_OVERFLOW
when you have more than 1 combo box within the project.main.slint
build.rs
main.rs
When running this on the latest (1.4.1 and including main) it will trigger a stack overflow on windows.
--- Notes ---
When using
native
styles the combo boxes work fine and don't trigger a panicThe text was updated successfully, but these errors were encountered: