application crashes when using gsettings binding for schema with a{ss} type key

Bug #1349787 reported by Jonas G. Drange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gsettings-qt
In Progress
Undecided
Lars Karlitski
gsettings-qt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In USS I am trying to add a schema which has a a{ss} key. Upon opening USS, it crashes with the following output:

ERROR:qconftypes.cpp:295:QVariant qconf_types_to_qvariant(GVariant*): code should not be reached
Aborted (core dumped)

QML code: http://pastebin.ubuntu.com/7893911/
Schema: http://paste.ubuntu.com/7902850/

Related branches

Changed in gsettings-qt:
status: New → Incomplete
description: updated
Changed in gsettings-qt:
status: Incomplete → New
description: updated
summary: - application crashes when using gsettings binding for schema with a{ss}
+ application crashes when using gsettings binding for schema with a{sv}
type key
Iain Lane (laney)
Changed in gsettings-qt:
status: New → In Progress
assignee: nobody → Iain Lane (laney)
Lars Karlitski (larsu)
Changed in gsettings-qt:
assignee: Iain Lane (laney) → Lars Uebernickel (larsu)
Revision history for this message
Jonas G. Drange (jonas-drange) wrote : Re: application crashes when using gsettings binding for schema with a{sv} type key

Goes for a{ss} as well, if it makes any difference.

Revision history for this message
Lars Karlitski (larsu) wrote :

I'm hesitant to add support for writing arbitrary variants, because there's no way to specify which type exactly you want to write from qml. gsettings-qt coerces whatever you write into the type expected by the schema, but it can't do that for a{sv}.

What exactly do you need this for? Laney hinted that you might be okay with just having a a{ss}?

Changed in gsettings-qt:
status: In Progress → Won't Fix
status: Won't Fix → Incomplete
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Sorry, sv was actually a mistake on my part. It was just a part of debugging: I thought a{ss} killed the app and tried a{sv} instead (since I observed that this was used in other schemas. Somehow it made it in to this bug.

a{ss} is all I really need.

summary: - application crashes when using gsettings binding for schema with a{sv}
+ application crashes when using gsettings binding for schema with a{ss}
type key
description: updated
description: updated
Lars Karlitski (larsu)
Changed in gsettings-qt:
status: Incomplete → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gsettings-qt - 0.1+14.10.20140801.1-0ubuntu1

---------------
gsettings-qt (0.1+14.10.20140801.1-0ubuntu1) utopic; urgency=low

  [ Ubuntu daily release ]
  * debian/libgsettings-qt1.symbols: auto-update to released version
  * New rebuild forced

  [ Ken VanDine ]
  * added tests for a{ss}

  [ Lars Uebernickel ]
  * qconftypes: support a{ss} We don't support a{sv} because gsettings
    is typed more strictly than javascript and qvariant. (LP: #1349787)

  [ Łukasz 'sil2100' Zemczak ]
  * Work-around a symbols problem in ppc64el
 -- Ubuntu daily release <email address hidden> Fri, 01 Aug 2014 17:06:59 +0000

Changed in gsettings-qt (Ubuntu):
status: New → 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.