ubi-console-setup.py:set_keyboard() gets error 141 (crashes) in Kubuntu

Bug #791883 reported by Mackenzie Morgan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
console-setup (Ubuntu)
Fix Released
High
Colin Watson
Oneiric
Fix Released
High
Colin Watson
ubiquity (Ubuntu)
Fix Released
High
Colin Watson
Oneiric
Fix Released
High
Colin Watson

Bug Description

Binary package hint: ubiquity

Oneiric

Exception caught in process_line:
Traceback (most recent call last):
  File "/usr/lib/ubiquity/ubiquity/filteredcommand.py", line 132, in process_line
    return self.dbfilter.process_line()
  File "/usr/lib/ubiquity/ubiquity/debconffilter.py", line 281, in process_line
    if not input_widgets[0].run(priority, question):
  File "/usr/lib/ubiquity/plugins/ubi-console-setup.py", line 411, in run
    self.ui.set_keyboard(self.db.get(question))
  File "/usr/lib/ubiquity/ubiquity/plugin.py", line 44, in wrapper
    return target(self, *args, **kwargs)
  File "/usr/lib/ubiquity/plugins/ubi-console-setup.py", line 276, in set_keyboard
    ly = keyboard_names.lang[l]['layouts'][utf8(layout)]
KeyError: u'France'
Jun 1 21:20:31 ubiquity: ['log-output', '-t', 'ubiquity', '--pass-stdout', '/usr/lib/ubiquity/console-setup/keyboard-configuration.postinst', 'configure'] exited with code 141

Not just with u'France' -- happens with u'USA' too. From slangasek, looks like xkb-data changed around (France v. French) causing some API breakage

Tags: kubuntu
Changed in ubiquity (Ubuntu):
milestone: none → oneiric-alpha-2
summary: - ubi-console-setup.py:set_keyboard() gets error 141 (crashes)
+ ubi-console-setup.py:set_keyboard() gets error 141 (crashes) in Kubuntu
Changed in ubiquity (Ubuntu):
importance: Undecided → High
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

I am able to reliably reproduce this issue in Oneiric Kubuntu using the desktop cd to install. Confirming the report.

Changed in ubiquity (Ubuntu Oneiric):
status: New → Confirmed
Felix Geyer (debfx)
tags: added: kubuntu
Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu Oneiric):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Kenneth Solbø Andersen (ksa618) wrote :

Would it perhaps be better to get keyboard names from the file /usr/share/X11/xkb/rules/xorg.lst instead of using the make-keyboard-names script? It seems to contain the same information. This could be done with a simple python script.

Revision history for this message
Colin Watson (cjwatson) wrote :

Kenneth: console-setup has to be brought up to date anyway ...

It might be worth refactoring in the future, though, yes, as it's certainly true that ubiquity.keyboard_names is an enormous data structure to have to keep in memory. I don't think this bug should block on that though.

Changed in console-setup (Ubuntu Oneiric):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
milestone: none → oneiric-alpha-2
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package console-setup - 1.57ubuntu21

---------------
console-setup (1.57ubuntu21) oneiric; urgency=low

  * Rebuild against xkb-data 2.2.1 (LP: #791883).
 -- Colin Watson <email address hidden> Sat, 25 Jun 2011 05:08:24 +0100

Changed in console-setup (Ubuntu Oneiric):
status: Confirmed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

I've confirmed that the console-setup fix was enough to cause ubiquity to stop breaking.

Changed in ubiquity (Ubuntu Oneiric):
status: Confirmed → 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.