Assertion failures when unparenting GtkPopoverMenu from GtkWidget subclass
Assertion warnings are similar to the following:
(ghex:28200): GLib-GObject-WARNING **: 14:36:13.411: instance of invalid non-instantiatable type '-g-type-private--GTypeFlags'
(ghex:28200): GLib-GObject-CRITICAL **: 14:36:13.412: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(ghex:28200): GLib-GObject-CRITICAL **: 14:36:13.412: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Attached please find a minimal testcase.
When discussing with @ebassi on IRC, he stated: "The GtkMenuTracker is trying to disconnect a signal from the menu model ... But the menu model is already gone"