Bug 759978

Summary: (process:5746): GLib-GObject-CRITICAL **: gtype.c:2708: You forgot to call g_type_init()
Product: [Fedora] Fedora Reporter: Phong Cao <phngcv>
Component: glib2Assignee: Matthias Clasen <mclasen>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 18:06:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Please compile these files on 64-bit Fedora 16 none

Description Phong Cao 2011-12-05 03:53:03 UTC
Created attachment 540631 [details]
Please compile these files on 64-bit Fedora 16

Description of problem:
I am trying to compile a small project of mine. The software is called Dingo & it reads metadata from media files using GStreamermm & display those metadata on a Gtk::TreeView. The main interface is written in Gtkmm. It also inserts all the metadata readed into a SQLite3 database file called dingo.db

The program was successfully built using "make". However, when I started it, the following errors occurred:

[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 result in gdb:

(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 think there must be some problems with either Gtkmm/GStreamermm or libgtk-3.0 on 64-bit system since I already called Gtk::Main kit(argc, argv) & Gst::init(argc, argv) in file 'main.cc'.

I already attached the source code of the program with this message. Please download & try to compile on your machine to see the problem. I am using Fedora 16 with newest updates & gtkmm-3.0 & gstreamermm-0.10.


Version-Release number of selected component (if applicable):
Kernel: 
3.1.2-1.fc16.x86_64 #1 SMP Tue Nov 22 09:00:57 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

GTK+: 
gtk3-devel-3.2.1-1.fc16.x86_64
gtk3-3.2.1-1.fc16.x86_64
gstreamer-devel-0.10.35-1.fc16.x86_64
gstreamer-0.10.35-1.fc16.x86_64
gtkmm30-devel-3.2.0-1.fc16.x86_64
gtkmm30-3.2.0-1.fc16.x86_64
gstreamermm-devel-0.10.10-1.fc16.x86_64
gstreamermm-0.10.10-1.fc16.x86_64
libsigc++20-2.2.10-1.fc16.x86_64

G++:
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.2 20111027 (Red Hat 4.6.2-1) (GCC) 


How reproducible:
N/A

Steps to Reproduce:
1. N/A
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Fedora End Of Life 2013-01-16 15:25:43 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Fedora End Of Life 2013-02-13 18:07:50 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.