Coredump using example customItem



Hi,

trying to create a flexable polyline, adding/deleting/moving points in goocanvasmm-2.0.
Took the exampleItem from the examples and added it to the canvas without changing the code. It displays, but when I move the mousepointer over the canvas the application dumps.

output dump
(flexPoly:18177): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
(flexPoly:18177): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
(flexPoly:18177): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion 'node != NULL' failed
(flexPoly:18177): glibmm-WARNING **: Failed to wrap object of type '(null)'. Hint: this error is commonly caused by failing to call a library init() function.
(flexPoly:18177): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
(flexPoly:18177): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed

The warning about librarry init function isn't correct because I did call the init function without result

Outcome of gdb ./flexPoly -core is:

Program terminated with signal 11, Segmentation fault.
#0  0x00007fcd9064a56a in g_type_get_qdata () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) bt
#0  0x00007fcd9064a56a in g_type_get_qdata () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1  0x00007fcd90ce603c in Glib::wrap_auto(_GObject*, bool) () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#2  0x00007fcd91eebd7d in Glib::ListHandler<Glib::RefPtr<Goocanvas::Item>, Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Goocanvas::Item> > >::list_to_vector(_GList*, Glib::OwnershipType) () from /usr/lib/libgoocanvasmm-2.0.so.6
#3  0x00007fcd91ef510a in Goocanvas::Item::get_items_at_vfunc(double, double, Cairo::RefPtr<Cairo::Context> const&, bool, bool, std::vector<Glib::RefPtr<Goocanvas::Item>, std::allocator<Glib::RefPtr<Goocanvas::Item> > > const&) () from /usr/lib/libgoocanvasmm-2.0.so.6
#4  0x00007fcd91ef5284 in Goocanvas::Item_Class::get_items_at_vfunc_callback(_GooCanvasItem*, double, double, _cairo*, int, int, _GList*) ()
   from /usr/lib/libgoocanvasmm-2.0.so.6
#5  0x00007fcd915c5754 in ?? () from /usr/lib/libgoocanvas-2.0.so.9
#6  0x00007fcd915e2378 in goo_canvas_get_item_at () from /usr/lib/libgoocanvas-2.0.so.9
#7  0x00007fcd915e4817 in ?? () from /usr/lib/libgoocanvas-2.0.so.9
#8  0x00007fcd915e5bda in ?? () from /usr/lib/libgoocanvas-2.0.so.9
#9  0x00007fcd91b41824 in Gtk::Widget::on_motion_notify_event(_GdkEventMotion*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#10 0x00007fcd91b43a64 in Gtk::Widget_Class::motion_notify_event_callback(_GtkWidget*, _GdkEventMotion*) ()
   from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#11 0x00007fcd8f17848e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#12 0x00007fcd9062a3b7 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#13 0x00007fcd90642e82 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#14 0x00007fcd90643ae2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007fcd8f299794 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#16 0x00007fcd8f17678c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#17 0x00007fcd8f178075 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#18 0x00007fcd8ed7bd98 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#19 0x00007fcd8ed86f9c in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#20 0x00007fcd9062a3b7 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007fcd90642e82 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007fcd90644012 in g_signal_emit_by_name () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007fcd8ed81439 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#24 0x00007fcd8ed74be8 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#25 0x00007fcd8fa7ff13 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fcd8fa7f3b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fcd8fa7f708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fcd8fa7fb0a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fcd8f177525 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#30 0x00007fcd91ae8d2d in Gtk::Main::run(Gtk::Window&) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#31 0x000000000041170e in main (argc=1, argv=0x7fff0c168158) at ../main.cc:87

Is there someone who can help me out.

Thanks


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