Re: glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion `wrap_func_table != 0' failed



On Thursday, November 1, 2012, Joaquin Pérez Valera wrote:
Hello

I'm a begginer with gtkmm. Now, I'm learning how to use it.
Well I was working with the 2.4 version, but is available the 3.0 so I moved  to this version. And I was reading the book "Programming with gtkmm3", downloaded from the official site. 

I have compiled the second example (with main.cc, buttons.h and buttons.cc), with no errors. But, when I wanted run it from the command line I received this

(a.out:7403): glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion `wrap_func_table != 0' failed

(a.out:7403): glibmm-WARNING **: Failed to wrap object of type 'GtkWindowAccessible'. Hint: this error is commonly caused by failing to call a library init() function.

** (a.out:7403): CRITICAL **: atk_object_get_role: assertion `ATK_IS_OBJECT (accessible)' failed

** (a.out:7403): CRITICAL **: atk_object_get_role: assertion `ATK_IS_OBJECT (accessible)' failed

** (a.out:7403): CRITICAL **: atk_object_set_parent: assertion `ATK_IS_OBJECT (accessible)' failed

(a.out:7403): glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion `wrap_func_table != 0' failed

(a.out:7403): glibmm-WARNING **: Failed to wrap object of type 'GtkWindowAccessible'. Hint: this error is commonly caused by failing to call a library init() function.
Segment violation.

I work with Debian-Linux in the testing branch with the gtkmm-3.0 library. 

I need to know how to fix this error to continue learning about gtkmm. Can you help me?

Thanks for your time. 

Is this the actual unmodified example from the book?  The example runs fine on my ubuntu 12.04 system (which also has gtkmm-3.0).  Maybe you modified it in some way?  The errors/warnings suggest that gtkmm has not been initialized, but that should not be happening with the example.  By the way, what version of gtkmm-3.0 does `pkg-config --modeversion gktmm-3.0' report your on system?

--
José


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]