Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Dec 2007 01:33:30 +0100
From:      Marcin Cieslak <saper@system.pl>
To:        freebsd-openoffice@freebsd.org
Cc:        freebsd-openoffice@freebsd.org, truckman@FreeBSD.org
Subject:   Re: GLib-GObject-CRITICAL / cannot initialize gtk_recent_manager
Message-ID:  <4755F1DA.9080307@system.pl>
In-Reply-To: <20071122154449.GA67968@wep4017.physik.uni-wuerzburg.de>
References:  <20071122154449.GA67968@wep4017.physik.uni-wuerzburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexey Shuvaev wrote:

> (process:67964): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed, use IA__g_type_init() prior to this function
> 
> (process:67964): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
> 
> (process:67964): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
> 
> 
> I believe it is amd64 specific. One of the differences is that
> amd64 build of OOo is always made WITHOUT_MOZILLA.
> Can anyone on 7.0 or 8-CURRENT on i386 test OOo WITHOUT_MOZILLA?
> In comparison with Marcin I have no problems (I hope) with JRE, but
> I have compiled the native one, bootstrapping from native jdk too.
> And I can save the newly created .odt file, OOo hangs with the error
> messages above when I try to close (saved) document.

Which version of GTK+ are you using?

gtk-2.12.1_1
glib-2.14.2

I have recompiled everything with debug (hours....) and narrowed this 
down here:

(gdb) list
676      */
677     GtkRecentManager *
678     gtk_recent_manager_new (void)
679     {
680       return g_object_new (GTK_TYPE_RECENT_MANAGER, NULL);
681     }
682
683     /**
684      * gtk_recent_manager_get_default:
685      *
(gdb) where
#0  IA__gtk_recent_manager_new () at gtkrecentmanager.c:681
#1  0x000000080f11a136 in IA__gtk_recent_manager_get_default () at 
gtkrecentmanager.c:698
#2  0x000000080d51ab2c in SystemShell::AddToRecentDocumentList () from 
/usr/local/openoffice.org-OOG680_m7/program/libsfx680fx.so

g_object_new fails:

(process:78374): GLib-GObject-CRITICAL **: gtype.c:2242: initialization 
assertion failed, use IA__g_type_init() prior to this function
(process:78374): GLib-CRITICAL **: g_once_init_leave: assertion 
`initialization_value != 0' failed
(process:78374): GLib-GObject-CRITICAL **: g_object_new: assertion 
`G_TYPE_IS_OBJECT (object_type)' failed

probably because type 'GTK_TYPE_RECENT_MANAGER' is not registered.

This happens only if SystemShell::AddToRecentDocumentList is able to to 
find gtk_recent_manager_get_default and gtk_recent_manager_add_item 
functions.

Support for this has been introduced in rev 1.8
of shell/source/unix/sysshell/systemshell.cxx

http://qa.openoffice.org/issues/show_bug.cgi?id=75190

I will try to fix this or turn this feature somehow off.

--Marcin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4755F1DA.9080307>