STATUS_STACK_OVERFLOW when adding more widgets to .slint tree #5058
Unanswered
maxenko
asked this question in
Show and tell
Replies: 1 comment
-
This reminds me of #133 or more recently #4586 We handle fairly large structs, and it seems like Rust tend to make a few copies on the stack in debug mode which leads to stack overflow. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just wanted to leave this here if you're running into this issue while adding more widgets to your application UI in slint:
it can also look like this:
This error won't show up in slint preview window in vs.code. It will show up while running a release or debug. I've spent hours on it today.
The problem is that (i assume) slint is fairly stack demanding, so the application is blowing past windows default stack limit of 1mb. I can go back to work now that I've increased my stack size via:
in
changing it back to 1000000 makes the problem come back, so its definitely stack size issue. The application is fairly small, maybe less than a hundred widgets all together, kind of surprising.
Hope this saves someone time.
Beta Was this translation helpful? Give feedback.
All reactions