Static elements resulting in Gtk errors
After designing an interface for my range_slider it always outputs 8 Gtk errors upon startup:
After trimming away everything I could while still triggering the error, I ended up with this main.txt file. While the code now looks a bit funky due to all of the stuff I removed, I don't think I'm doing anything illegal here.
Changing any part of the layout (either in the return statement or the number of labels) makes the error disappear. Changing the slider_labels element to be shared also solves the issue. The interface seems to work just fine regardless of these errors. Since it is so easy to get rid of these errors again, they're not really an issue for me, but I still thought it was worth reporting.
Does this happen only in Linux GTK?
@klytje Can you confirm if this still happens with the master or skia_2024 branches?
Still happens on both the current master and skia_2024 branches.
Alright. I'll take a closer look.
Ohh... It seems the bounds has -NAN!
@klytje I think this is your problem: hgrid({1.}, link(_min_textbox.first)) Somehow, it is producing odd bounds!
It's not about the static element either. It still has the problem even if I make everything non-static. And removing the hgrid makes the problem go away.
I suggest making an MVCE with only that.
I don't understand what triggers the warnings.
This is the smallest I could reduce it to: main.txt
- Changing the
input_boxto something else fixes the issue. - Removing the
alignfixes the issue. - Removing the single-element
hgridfixes the issue. - Directly adding the contents of the method to the
view.contentfixes the issue???
That's a good MVCE! Alright I'll take a look.