On Tue, 14 Mar 2017 10:55:18 +0100 Frédéric Bron wrote:
FB> I have built some wxwidgets samples for GTK 3 with wx 3.1.0 and they
FB> give a lot of error messages (see below). Are these serious issues? Is
FB> it possible to make these messages disappear?
FB> * auidemo:
FB> when clicking on wxPanel:
FB> (wx-auidemo:9019): Gtk-CRITICAL **: gtk_box_gadget_distribute:
FB> assertion 'size >= 0' failed in GtkSpinButton
This was just due to creating a wxSpinCtrl with a fixed width of 100
pixels which is not enough, so it was fixed by
FB> when quiting:
FB> (wx-auidemo:9019): Gtk-CRITICAL **: gtk_widget_is_drawable: assertion
FB> 'GTK_IS_WIDGET (widget)' failed
I see this one and, also, a message similar to it in the toolbar sample
which also has a combobox in a toolbar (because this is what triggers it),
with GTK+ 3.22.9 under Debian Stretch, but I don't see neither of them with
3.14.5 in Debian Jessie, so it looks like something has changed again in
GTK+ in an incompatible way.
I don't see what do we actually do wrong, but I found a way to work around
getting this message, see https://github.com/wxWidgets/wxWidgets/pull/449
If Paul doesn't object, I'm going to merge this relatively soon. But, in
any case, this "CRITICAL" message is actually harmless.
FB> * combo:
FB> when the program ends: 2 messages like that:
FB> (wx-combo:8974): Pango-CRITICAL **: pango_layout_get_cursor_pos:
FB> assertion 'index >= 0 && index <= layout->length' failed
I don't see this one at all, with any GTK+ version. Do you do anything
special to trigger this message by chance?
FB> * controls:
FB> when the program starts: many messages like that:
FB> (wx-controls:8891): Gtk-CRITICAL **: gtk_box_gadget_distribute:
FB> assertion 'size >= 0' failed in GtkScrollbar
The "controls" sample doesn't exist any more since more than a year, so
this can't happen with the latest master.