GNOME Bugzilla – Bug 666677
Getting an int64 property incorrectly calls g_value_get_int()
Last modified: 2012-02-05 11:00:53 UTC
1. Launch Totem from a shell. 2. Enable and open the Python console. 3. Enter 'totem_object.props.current_time' in the console, which always returns 0 (regardless of the current actual play time), and prints to the shell something like the following: (totem:11594): GLib-GObject-CRITICAL **: g_value_get_int: assertion `G_VALUE_HOLDS_INT (value)' failed OS: Ubuntu 11.10 "Oneiric Ocelot" Totem version: 3.0.1-0ubuntu7
Here's a backtrace. Looks like PyGObject is calling the wrong g_value_get_*() function. Breakpoint 2, g_value_get_int (value=0x7fffffffbc20) at gvaluetypes.c:796 796 g_return_val_if_fail (G_VALUE_HOLDS_INT (value), 0); (gdb) bt
+ Trace 229317
gimarshallingtests.c from gobject-introspection should cover this case and then we can add a test to pygobject test suite.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 664150 ***