(process:5746): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to call g_type_init() - Fedora 16
- From: Phong Cao <phngcv gmail com>
- To: gtkmm-list gnome org
- Subject: (process:5746): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to call g_type_init() - Fedora 16
- Date: Sun, 4 Dec 2011 23:11:31 -0500
Hello everybody,
I am trying to develop a small music manager using GStreamermm & Gtkmm called Dingo. It uses Gst::Discoverer to read media files' metadata & inserts them into Gtk::TreeView and also saves those metadata information in an SQLite3 database. The program was compiled. However, when I ran it, I got these errors:
[phongcao@dhcp-vlan16-114 dingo]$ ./main
(process:6115): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to call g_type_init()
(process:6115): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to call g_type_init()
(process:6115): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
(process:6115): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:6115): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:6115): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
This is the backtrace in GDB. I am using Fedora 16 x86_64 with gtkmm-3.0:
(gdb) backtrace
#0 0x0000003d8fa0bad5 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
#1 0x0000003d91669f34 in g_once_init_enter_impl ()
from /lib64/libglib-2.0.so.0
#2 0x0000003d96206824 in gdk_pixbuf_get_type ()
from /usr/lib64/libgdk_pixbuf-2.0.so.0
#3 0x0000003d9a093984 in ?? () from /usr/lib64/libgtk-3.so.0
#4 0x0000003d9262f757 in g_type_class_ref () from /lib64/libgobject-2.0.so.0
#5 0x0000003d9a0d3ed0 in ?? () from /usr/lib64/libgtk-3.so.0
#6 0x0000003d92631e13 in g_type_create_instance ()
from /lib64/libgobject-2.0.so.0
#7 0x0000003d9261202c in ?? () from /lib64/libgobject-2.0.so.0
#8 0x0000003d92614f82 in g_object_newv () from /lib64/libgobject-2.0.so.0
#9 0x0000003d92615b0c in g_object_new () from /lib64/libgobject-2.0.so.0
#10 0x0000003d9a0daff9 in ?? () from /usr/lib64/libgtk-3.so.0
#11 0x0000003d972150ee in atk_get_root () from /usr/lib64/libatk-1.0.so.0
#12 0x0000003d9a0db715 in ?? () from /usr/lib64/libgtk-3.so.0
#13 0x0000003d9a0c296d in ?? () from /usr/lib64/libgtk-3.so.0
#14 0x0000003d99f50fc6 in ?? () from /usr/lib64/libgtk-3.so.0
#15 0x0000003d9165140c in g_option_context_parse ()
from /lib64/libglib-2.0.so.0
#16 0x0000003d99f51510 in gtk_parse_args () from /usr/lib64/libgtk-3.so.0
#17 0x0000003d99f51569 in gtk_init_check () from /usr/lib64/libgtk-3.so.0
I am not sure what is going on with my program. I already called Gtk::Main kit(argc, argv) & Gst::init(argc, argv) in my "main" function. Please notice that all the files are compiled but this problem was produced at run-time. I have been stuck with this problem for several days.
Attached with this email is the source code of this program. I hope you guys can download & compile it in your computer to see if it works. Just type "make" and everything will be compiled... I wonder if there are even errors in my Makefile.
Thank you for reading my message! Have a good week!
--
Phong V. Cao
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]