Re: g_log_set_fatal_mask () does not appear to be present

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: g_log_set_fatal_mask () does not appear to be present

Richard Shann

> Date: Sun, 09 Sep 2018 20:21:54 +0100
> From: Richard Shann <[hidden email]>
> To: [hidden email]
> Subject: g_log_set_fatal_mask () does not appear to be present
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="UTF-8"
>
> I used to callĀ 
> g_log_set_fatal_mask ()
>
> via gdb to catch the place where critical errors happen. But now I
> get
>
> (gdb) call g_log_set_fatal_mask ("Gtk", 0xFFFF)
> No symbol "g_log_set_fatal_mask" in current context.

I've been trying to dig deeper into this (guessing that
g_log_set_fatal_mask may have become a macro or something) and find
that I can call it after gtk_init_check() from within the program
without a compile time error, but the program still does not stop on
errors.

Indeed

g_print ("Error level was %x\n", g_log_set_fatal_mask (NULL, -1));
g_print ("Error level now %x\n", g_log_set_fatal_mask (NULL, -1));

prints out 0x5 as the initial setting of the mask and 0xfffffffd
 as the setting after setting to -1

but I then can trigger a slew of

(denemo:1717): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion
'size >= 0' failed in GtkScrollbar

errors without the program stopping.

Is there something involving threads here?

Richard Shann

_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list