Handler XXXX of instance YYYYY is not blocked

Hi all:

I’m working on a program in JavaScript and I’m receiving this warning sometimes:

(gjs:16902): GLib-GObject-WARNING **: 13:44:55.633: …/…/…/gobject/gsignal.c:2692: handler ‘5168’ of instance ‘0x562e936a5570’ is not blocked

It happens when I change the “relative-to” property of a Popover, the original widget to which the popover was relative to is destroyed, and the focus returns to the popover.

What does that warning mean?

Thanks.

Some code has called g_signal_handler_unblock() more times than has called g_signal_handler_block() for that particular signal handler connection.

See the code in GLib: https://gitlab.gnome.org/GNOME/glib/-/blob/96efd662c990c4f9afb23b39ce0214b0f440d53a/gobject/gsignal.c#L2689

1 Like

For avoidance of doubt: it’s probably a bug in GTK, unless you are calling g_signal_handler_unblock() yourself.

I’m not calling unblock in any piece of code, so yes, this looks like a bug. I’ll try to do a minimal code that triggers this and open a bug report.

Thanks!!!

I found the bug in Gtk.Popover and prepared a patch. The problem is that I’m unable to send a patch for branch 3.24.33; if I try to do a MR, it tries to apply it to master, and there isn’t a branch 3.24.33 between the available branches for MR.

1 Like

Ok, I think that I found how to do it.

Ok, sent a patch for it https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4589

1 Like

Nice, thanks!

(This post must be at least 20 characters.)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.