Plug crashes on missing schema or key

Bug #1110614 reported by Andreas
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Switchboard Keyboard Plug
Fix Released
High
Julien Spautz

Bug Description

keyboard-plug crashed while trying to open it in system-settings

ProblemType: Crash
DistroRelease: elementary OS 0.2
Package: switchboard-plug-keyboard 0.1-0~36~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-36.57-generic 3.2.35
Uname: Linux 3.2.0-36-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1+elementary3~precise1
Architecture: amd64
CrashDB: switchboard_plug_keyboard
Date: Wed Jan 30 18:32:36 2013
ExecutablePath: /usr/lib/plugs/pantheon/keyboard/keyboard
InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 amd64 (20121114)
MarkForUpload: True
ProcCmdline: /usr/lib/plugs/pantheon/keyboard/keyboard
Signal: 5
SourcePackage: switchboard-plug-keyboard
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 g_settings_get_value () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 g_settings_get_strv () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
 keyboard_shortcuts_settings_get_val ()
Title: keyboard crashed with signal 5 in g_settings_get_value()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Andreas (andreas-weiden) wrote :
information type: Private → Public
Revision history for this message
RabbitBot (rabbitbot-a) wrote :

StacktraceTop:
 g_settings_schema_get_value (schema=0x1bd6440, key=0x1a55150 "switch-to-workspace-first") at /build/buildd/glib2.0-2.32.3/./gio/gsettingsschema.c:640
 g_settings_schema_key_init (key=0x7fffc0264260, schema=0x1bd6440, name=0x1a55150 "switch-to-workspace-first") at /build/buildd/glib2.0-2.32.3/./gio/gsettingsschema.c:751
 g_settings_get_value (settings=0x17fb770, key=0x1a55150 "switch-to-workspace-first") at /build/buildd/glib2.0-2.32.3/./gio/gsettings.c:1067
 g_settings_get_strv (settings=<optimized out>, key=<optimized out>) at /build/buildd/glib2.0-2.32.3/./gio/gsettings.c:1829
 keyboard_shortcuts_settings_get_val (self=<optimized out>, schema=<optimized out>, key=<optimized out>) at /build/buildd/switchboard-plug-keyboard-0.1/obj-x86_64-linux-gnu/src/Pages/Shortcuts/settings.c:191

Revision history for this message
RabbitBot (rabbitbot-a) wrote : Stacktrace.txt
Revision history for this message
RabbitBot (rabbitbot-a) wrote : ThreadStacktrace.txt
tags: removed: need-amd64-retrace
Revision history for this message
Andreas (andreas-weiden) wrote : Re: keyboard crashed with signal 5 in g_settings_get_value()

(keyboard:32487): GLib-GIO-ERROR **: Settings schema 'org.pantheon.desktop.gala.behavior' does not contain a key named 'switch-to-workspace-first'

This is the error I get when trying to manually run the plug via /usr/lib/plugs/pantheon/keyboard/keyboard

Revision history for this message
Julien Spautz (julien-spautz) wrote :

Thanks for reporting the bug!

There was a recent change in Gala where "move-to-workspace-first" was replaced with "switch-to-workspace-first". The changes were merged simultaneously in Gala and in the keyboard plug, but they didn't build at the same time, leading to a short period in which the plug crashed because of the missing key. Since gala has been build by now, the plug should crash anymore. Yet the plug should crash at all, so I'll add some error handling, in case of missing keys or schemas.

Try updating your system and the bug shouldn't appear anymore.

Changed in switchboard-plug-keyboard:
status: New → Triaged
importance: Undecided → High
milestone: none → luna-beta2
summary: - keyboard crashed with signal 5 in g_settings_get_value()
+ Plug crashes on missing schema or key
Revision history for this message
Julien Spautz (julien-spautz) wrote :

s/should/shouldn't/

Revision history for this message
Andreas (andreas-weiden) wrote :

Yes, after an upgrade it worked again instantly!
Thought I'd have to restart for this to take effect.

Revision history for this message
Julien Spautz (julien-spautz) wrote :

The plug shouldn't crash anymore when it encounters a missing schema or key. It'll give you a warning and simply ignore those shortcuts. I'll mark this as fixed.

Changed in switchboard-plug-keyboard:
status: Triaged → Fix Committed
assignee: nobody → Julien Spautz (julien-spautz)
Changed in switchboard-plug-keyboard:
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.