gnome-language-selector crashed with DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'ro_RO.UTF-8' is not a valid locale name

Bug #931060 reported by Cristian Neacsu
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
New
Undecided
Unassigned

Bug Description

gnome-language-selector crashed with DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'ro_RO.UTF-8' is not a valid locale name( Romanian in my case)

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: language-selector-gnome 0.69
ProcVersionSignature: Ubuntu 3.2.0-15.24-generic 3.2.5
Uname: Linux 3.2.0-15-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Sun Feb 12 19:32:05 2012
DuplicateOf: https://bugs.launchpad.net/bugs/930785
ExecutablePath: /usr/bin/gnome-language-selector
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120201.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gnome-language-selector
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/gnome-language-selector']
SourcePackage: language-selector
Title: gnome-language-selector crashed with DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'ro_RO.UTF-8' is not a valid locale name
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Cristian Neacsu (cristian.ncs) wrote :
Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make this software better. This particular crash has already been reported and is a duplicate of bug #930785, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
visibility: private → public
visibility: private → public
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Cristian,
Thanks for your effort to improve Ubuntu by reporting this issue! I could reproduce it by installing a new language and instantly pick a locale for the new language on the "Regional formats" tab. I assume that's what you did too - please correct me if your case is different.

Martin:
It's the user_locale_validate() function in accountsservice/src/user.c that caused this crash. Is there a simple way to make setlocale() instantly aware of newly generated locales? If not I guess that playing with 'locale -a' in user_locale_validate() would be safer than calling setlocale().
(Also, can you please make bug 930785 public.)

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 931060] Re: gnome-language-selector crashed with DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'ro_RO.UTF-8' is not a valid locale name

Gunnar Hjalmarsson [2012-02-13 3:01 -0000]:
> It's the user_locale_validate() function in
> accountsservice/src/user.c that caused this crash. Is there a simple
> way to make setlocale() instantly aware of newly generated locales?
> If not I guess that playing with 'locale -a' in
> user_locale_validate() would be safer than calling setlocale().

I don't know off-hand myself. My guess is that libc reads them at
program startup, so somehow you'd need to convince it to re-read it.

But that locale -a workaround wouldn't help language-selector, as you
still couldn't actually set the locale for language-selector itself or
the session, you need to relogin in any case.

> (Also, can you please make bug 930785 public.)

Done.
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

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.