Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

Bug #918607 reported by dino99
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
pygobject
Fix Released
Medium
pygobject-2 (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

For the first time i'm seeing this error logged at the beginning of xsession-errors. As we got recently the libglib2.0-0 package updated and have not found related thread posted, i suppose its the right package to report against, but i'm not sure.

** Message: applet now removed from the notification area
** Message: using fallback from indicator to GtkStatusIcon
Initializing nautilus-gdu extension

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Can not calculate _NET_NUMBER_OF_DESKTOPS

Note: i'm logged as gnome-classic on Precise i386 (compiz/unity purged)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libglib2.0-0 2.31.10-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-9.16-generic-pae 3.2.1
Uname: Linux 3.2.0-9-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Thu Jan 19 11:02:30 2012
SourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, the new glib is stricter in things it warns about, it's likely that the bug is rather a gvfs one (would be nice to report upstream as well)

affects: glib2.0 (Ubuntu) → gvfs (Ubuntu)
Changed in gvfs (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :
Changed in gvfs (Ubuntu):
status: Confirmed → Triaged
Changed in gvfs:
importance: Unknown → Medium
status: Unknown → New
Changed in gvfs:
status: New → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

This was fixed upstream recently, and should be in the current glib2.0 package.

affects: gvfs → glib
affects: gvfs (Ubuntu) → glib2.0 (Ubuntu)
Changed in glib2.0 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
dino99 (9d9) wrote :

hm, i'm using 2.31.16-0ubuntu1 on Precise i386, logged as gnome-classic, and still have this error logged.

Changed in glib2.0 (Ubuntu):
status: Fix Released → Confirmed
Changed in glib2.0 (Ubuntu):
status: Confirmed → Triaged
Bryce Harrington (bryce)
Changed in glib:
importance: Medium → Unknown
status: Invalid → Unknown
Changed in glib:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Bryce Harrington (bryce) wrote :

Confirmed this is still happening with current glib2.0.

Upstream bug #668522 better matches this issue than #667938 and is noted as still open with this issue.

Changed in glib2.0 (Ubuntu):
importance: Low → Medium
Revision history for this message
Timo Vanwynsberghe (timovwb) wrote :

The same two "trying to register gtype..." warnings also pop up if you do a simple "import gtk" at the Python prompt.

Changed in glib:
status: New → Fix Released
affects: glib2.0 (Ubuntu) → pygobject (Ubuntu)
Changed in pygobject (Ubuntu):
status: Triaged → Fix Committed
status: Fix Committed → Triaged
Martin Pitt (pitti)
affects: pygobject (Ubuntu) → pygobject-2 (Ubuntu)
Changed in pygobject-2 (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: Triaged → In Progress
affects: glib → pygobject
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pygobject-2 - 2.28.6-10

---------------
pygobject-2 (2.28.6-10) unstable; urgency=low

  [ Josselin Mouette ]
  * Update repository URL.

  [ Martin Pitt ]
  * Add 00git_fix_qdata_warning.patch: Fix set_qdata warning on accessing NULL
    gobject property. Backported from upstream git.
  * Add 00git_gio_flag_type.patch: Fix definition of flag types. Backported
    from upstream git. (LP: #918607)
  * debian/copyright: Update to copyright format 1.0.
  * debian/control.in: Bump Standards-Version to 3.9.3.
 -- Martin Pitt <email address hidden> Tue, 13 Mar 2012 18:52:21 +0100

Changed in pygobject-2 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Stein Magnus Jodal (jodal) wrote :

I think the upstream patch fixed too much. Previously I got the following two warnings:

  ** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

  ** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

After upgrading to python-gobject-2 2.28.6-10 I get the following warning instead:

  ** WARNING **: Trying to register gtype 'GSocketMsgFlags' as flags when in fact it is of type 'GEnum'

Revision history for this message
Lorem (lrmpsm) wrote :

@jodal

I can confirm

Revision history for this message
IRCMonkey (noname101) wrote :

I get all three warnings that jodal describes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.