How can I find out where is my code causing GLib-GObject-CRITICAL?
You can break on g_log
and then do a backtrace from there.
GLib-GObject-CRITICAL warnings
I found the problem.
This code was ported from an original implementation in C, and I had a requirement before to use an array of function pointers to call the functions inside of a shared library. Although this [seemed] to work at the time once I actually started using them it was not the case. I am a little stumped on why its not working, but I was able to centralized the problem to the following piece of code.
gtk_signal_connect (GTK_OBJECT (plugin()->workbook()->gtk_workbook), "switch-page",
(GtkSignalFunc)this->signals[NOTEBOOK_SWITCHPAGE], plugin->workbook());
Was changed to the following:
gtk_signal_connect (GTK_OBJECT (plugin()->workbook()->gtk_workbook), "switch-page",
(GtkSignalFunc)signal_gtknotebook_switchpage, plugin->workbook());
Now, the code compiles and I am not getting any nasty errors. I think this is the answer!
How do I get GDB to break on a GLib assertion failure?
Break on g_log()
. This covers all cases like g_warning()
, g_critical()
, etc.
Related Topics
Capturing Display/Monitor Images, Sending Keyboard Input on Linux
How to Set Dt_Rpath or Dt_Runpath
Jenkins to Run Maven Build on Linux or Windows
Why Does Docker Prompt "Permission Denied" When Backing Up the Data Volume
No Error on Xcb_Grab_Key But Event Loop Not Catching (Global Hotkey)
Ldconfig Only Links Files Starting with Lib*
Bash Scripting - Iterating Through "Variable" Variable Names for a List of Associative Arrays
How to Find Out Where Is My Code Causing Glib-Gobject-Critical
Linux Kernel Headers' Organization
How to Install a Node.Js Server at Chat.Mydomain.Com on a Hostgator Vps Hosting
Font Are Not Displayed in Idea
Where Is the 'Sdk' Command Installed for Sdkman
Curl: (2) Failed Initialization
Top Command First Iteration Always Returns the Same Result
Get Last Parameter on Shell Script
Sending Keycode to Xorg + Wine with Bash Script
How to Replace Finding Words with the Different in Each Occurrence in Vi/Vim Editor