Indicator options stopped working with glib 2.39.1

Bug #1255981 reported by Sebastien Bacher on 2013-11-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-power (Ubuntu)
High
Lars Karlitski

Bug Description

The new glib got uploaded to trusty today, it somewhat made indicator-power unhappy.

That warning is yeld on start:
g_simple_action_set_state: assertion 'state_type != NULL' failed

Stacktrace:
"#0 g_log (log_domain=log_domain@entry=0xb7f1c1d8 "GLib-GIO",
    log_level=log_level@entry=G_LOG_LEVEL_CRITICAL,
    format=format@entry=0xb7d57fbe "%s: assertion '%s' failed")
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./glib/gmessages.c:1055
#1 0xb7d0f28d in g_return_if_fail_warning (
    log_domain=log_domain@entry=0xb7f1c1d8 "GLib-GIO",
    pretty_function=pretty_function@entry=0xb7f37e70 <__FUNCTION__.12093> "g_simple_action_set_state", expression=0xb7f37815 "state_type != NULL")
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./glib/gmessages.c:1068
#2 0xb7ec334e in g_simple_action_set_state (simple=simple@entry=0x8064a20,
    value=0x8062518)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gio/gsimpleaction.c:165
#3 0xb7ec35a1 in g_simple_action_set_property (object=0x8064a20, prop_id=5,
    value=0xbfffe9ec, pspec=0x80710d0)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gio/gsimpleaction.c:248
#4 0xb7ddbb64 in object_set_property (nqueue=0x80608a0, value=0xbfffea4c,
    pspec=0x80710d0, object=0x8064a20)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gobject/gobject.c:1376
#5 g_object_set_property (object=0x8064a20, property_name=0xb7f369b1 "state",
    value=value@entry=0xbfffea4c)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gobject/gobject.c:2304
#6 0xb7ed2352 in g_settings_binding_key_changed (
    settings=settings@entry=0x8063e40, key=0x80628c8 "show-time",
---Type <return> to continue, or q <return> to quit---
    user_data=user_data@entry=0x806f400)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gio/gsettings.c:2482
#7 0xb7ed523c in g_settings_bind_with_mapping (settings=0x8063e40,
    key=0x80561d0 "show-time", object=0x8064a20, property=0x80562d2 "state",
    flags=(G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET), get_mapping=0x8052dc0,
    set_mapping=0x8052db0, user_data=0x0, destroy=0x0)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gio/gsettings.c:2779
#8 0x08053945 in ?? ()
#9 0xb7df58d3 in g_type_create_instance (type=134658216)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gobject/gtype.c:1868
#10 0xb7dd871e in g_object_new_internal (class=class@entry=0x806b960,
    params=0xbfffed9c, n_params=1)
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gobject/gobject.c:1722
#11 0xb7ddabb7 in g_object_new_valist (
    object_type=object_type@entry=134658216,
    first_property_name=first_property_name@entry=0x80561a0 "device-provider",
    var_args=<optimized out>, var_args@entry=0xbfffee68 "\030>\006\b")
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gobject/gobject.c:1978
#12 0xb7ddae10 in g_object_new (object_type=134658216,
    first_property_name=0x80561a0 "device-provider")
    at /build/glib2.0-tux5JG/glib2.0-2.39.1/./gobject/gobject.c:1569"

Changing the options in the indicator menu (e.g show %) doesn't work as a result

Related branches

Changed in indicator-power (Ubuntu):
assignee: nobody → Lars Uebernickel (larsu)
importance: Undecided → High
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-power - 12.10.6+14.04.20131129-0ubuntu1

---------------
indicator-power (12.10.6+14.04.20131129-0ubuntu1) trusty; urgency=low

  [ Lars Uebernickel ]
  * Use GSettingsActions instead of g_settings_bind This also fixes a
    bug: the actions were created stateless, but assigned a state later.
    (LP: #1255981)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 217
 -- Ubuntu daily release <email address hidden> Fri, 29 Nov 2013 18:36:27 +0000

Changed in indicator-power (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers