gsettings fails on setting all keys whose values are contained in []

Bug #925382 reported by Doug McMahon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GLib
Fix Released
Medium
glib2.0 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Any attempt to use use gsettings to set a value that are [] fails

Test case example
use gsettings get to show values for com.canonical.Unity.Panel systray-whitelist
Try to reset using the same 'as' format, fails on error

Ex.

~$ gsettings get com.canonical.Unity.Panel systray-whitelist
['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier']
doug@doug-XPS-M1330:~$ gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service']"

GLib-CRITICAL **: g_variant_type_is_maybe: assertion `g_variant_type_check (type)' failed

GLib-CRITICAL **: g_variant_type_is_array: assertion `g_variant_type_check (type)' failed

GLib-CRITICAL **: g_variant_type_dup_string: assertion `g_variant_type_check (type)' failed

GLib-CRITICAL **: g_variant_type_equal: assertion `g_variant_type_check (type1)' failed
0-49:can not parse as value of type `(null)'

The same will happen for any key that uses same type, []

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libglib2.0-bin 2.31.12-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-12.20-generic-pae 3.2.2
Uname: Linux 3.2.0-12-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Thu Feb 2 05:17:30 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120128)
SourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Doug McMahon (mc3man) wrote :
Doug McMahon (mc3man)
summary: - gsettings fails on all values that are contained in []
+ gsettings fails on setting all keys whose values are contained in []
Revision history for this message
Hernando Torque (htorque) wrote :

Can this be some kind of memory corruption?

I'm getting different warnings when running the command successively:

0-21:can not parse as value of type `r'
0-21:can not parse as value of type `(null)'
0-21:can not parse as value of type `(s)'
0-21:can not parse as value of type `i'

Changed in glib2.0 (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, confirmed, I'm discussing it with upstream and opened https://bugzilla.gnome.org/show_bug.cgi?id=669253 about it

Changed in glib2.0 (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in glib2.0 (Ubuntu):
status: Triaged → Fix Committed
Changed in glib:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.31.14-0ubuntu1

---------------
glib2.0 (2.31.14-0ubuntu1) precise; urgency=low

  * New upstream version:
    GResource:
    - GLib now includes a commandline utility, gresource, to explore
      resources in ELF files
    - The resource compiler can now optionally strip ignorable
      whitespace from XML resources
    - The resource compiler can now generate build dependencies
    - The resource compiler will now autoselect output formats
    GApplication:
    - The menu markup parser API has been dropped, the menu XML support
      lives in GTK+ now
    GValueArray has been deprecated
  * debian/libglib2.0-0.symbols:
    - new version update
  * debian/libglib2.0-bin.install:
    - list the new gresource command and its manpage
  * debian/control.in:
    - Breaks on gtk << 3.3.12, glib and gtk needs to be updated together
      due to the gmenu parser changes
    - Build-Depends on libelf-dev for the gresources tools, thanks ricotz
  * debian/docs:
    - dropped, no need to install ChangeLog and NEWS from the past century
  * debian/libglib2.0-bin.install:
    - ship the glib-compile-resources manpage, thanks ricotz
  * debian/patches/git_gsettings_lists_set.patch:
    - git patch, fix "gsettings set ..." command line issues (lp: #925382)
 -- Sebastien Bacher <email address hidden> Thu, 02 Feb 2012 19:24:45 +0100

Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
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.