Bug 24198 - recursing in type registration
Summary: recursing in type registration
Status: RESOLVED FIXED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: libpolkit (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
: 24175 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-28 11:27 UTC by Matthias Clasen
Modified: 2011-08-01 06:58 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xsession error log (1.82 KB, text/plain)
2010-05-02 10:37 UTC, Chris Sharman
Details
backtrace of CRITICAL message (5.01 KB, text/plain)
2010-06-19 11:58 UTC, David Tombs
Details
backtrace of WARNING message (5.01 KB, text/plain)
2010-06-19 11:58 UTC, David Tombs
Details

Description Matthias Clasen 2009-09-28 11:27:07 UTC
I was trying to track down the spew that polkit-gnome-authentication-agent-1 spews at startup:

(polkit-gnome-authentication-agent-1:8029): GLib-GObject-WARNING **:
cannot register existing type `_PolkitError'
 
(polkit-gnome-authentication-agent-1:8029): GLib-CRITICAL **:
g_once_init_leave: assertion `initialization_value != 0' failed

This is caused by recursing inside the gobject type registration machinery.
You are calling _polkit_bindings_get_error_domain_types in
 
polkit/_polkitauthenticationagent.c:base_init
 
which ultimatively causes the issue I'm seeing, I think. 

Can we move that somewhere else ?
Comment 1 Matthias Clasen 2009-10-02 21:34:34 UTC
*** Bug 24175 has been marked as a duplicate of this bug. ***
Comment 2 David Zeuthen (not reading bugmail) 2010-01-28 08:21:12 UTC
This is all generated code right? If so, it's an eggdbus bug...
Comment 3 Chris Sharman 2010-05-02 10:37:01 UTC
Created attachment 35379 [details]
xsession error log

I see these messages on Ubuntu 10.04 Lucid Lynx final release.
I've just installed it, with a /home partition inherited from Ubuntu 9.10.

I also don't get a proper panel on boot/autologin:
I get a light grey bar top left, about the normal depth, 40% width, nothing on it.
To workaround, I right click where the panel ought to be, select properties, select the background tab, and click none, or solid colour. The panel then appears with applications, places, system etc.
Without this step I can do nothing.
I'm presuming it's related to these errors - can anyone confirm that, or should I be logging a separate bug?

Thanks
Chris
Comment 4 David Tombs 2010-06-19 11:58:12 UTC
Created attachment 36368 [details]
backtrace of CRITICAL message

Attaching backtraces from <https://bugs.launchpad.net/debian/+source/policykit-1-gnome/+bug/449378>. Hope it helps.
Comment 5 David Tombs 2010-06-19 11:58:34 UTC
Created attachment 36369 [details]
backtrace of WARNING message
Comment 6 David Zeuthen (not reading bugmail) 2010-08-09 11:53:50 UTC
With the port to gdbus, this is no longer a problem.
Comment 7 MM 2011-06-29 21:20:22 UTC
Almost a year later and I'm getting in Slackware 13.1 using the Gnome Slack Build;

http://gnomeslackbuild.org/

So I don't know what this port to gdbus is or means but I still have this problem with these messages when I log out...
Comment 8 MM 2011-06-29 21:26:49 UTC
I forgot to mention them as the same types of messages;

(polkit-gnome-authentication-agent-1:8029): GLib-GObject-WARNING **:
cannot register existing type `_PolkitError'

(polkit-gnome-authentication-agent-1:8029): GLib-CRITICAL **:
g_once_init_leave: assertion `initialization_value != 0' failed

Also another one I forgot to mention;

gnome-power-manager:1617: GLib-GObject-CRITICIAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed


THANKS
Comment 9 David Tombs 2011-07-15 18:50:39 UTC
(In reply to comment #8)

On the other hand, along with many others I have no issues running policykit-1 version 0.101-1ubuntu1 on Ubuntu 11.04.
Comment 10 David Zeuthen (not reading bugmail) 2011-08-01 06:58:04 UTC
DasFox: don't reopen the bug if you can't even provide information about what version you are using. As I said, this problem has already been fixed - it's not my problem you are using an old version.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.