gnome-language-selector crashes when trying to drag English to the top

Bug #1581470 reported by Po-Hsu Lin
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
accountsservice (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Committed
High
Unassigned

Bug Description

CID: 201409-15485

I have this 16.04 system configured in Traditional Chinese (Taiwan), but when I was trying to drag "English (United States)" back to the top, the language selector will crash.

Steps:
1. Boot and make sure the system using Traditional Chinese (Taiwan)
2. Open Language Settings
3. Try to change the order by dragging English (United States) to the top.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: language-selector-gnome 0.165.1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri May 13 06:55:03 2016
InstallationDate: Installed on 2016-05-04 (9 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
SourcePackage: language-selector
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I tried to run it in a terminal, this is how it crashed:
ubuntu@ubuntu-Latitude-E5250:~$ gnome-language-selector
/usr/lib/python3/dist-packages/LanguageSelector/LanguageSelector.py:105: UserWarning: The language list was modified by the program, since there should not be any non-English items after an English item.
  + 'should not be any non-English items after an English item.')
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 67, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 1056, in on_treeview_locales_drag_end
    self.writeUserLanguage(envLanguage)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 802, in writeUserLanguage
    self.writeUserLanguageSetting(userLanguage=languageString)
  File "/usr/lib/python3/dist-packages/LanguageSelector/LanguageSelector.py", line 87, in writeUserLanguageSetting
    iface.SetLanguage(self.validateLangList(userLanguage))
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Accounts.Error.PermissionDenied: Not authorized

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in language-selector (Ubuntu):
status: New → Confirmed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for your report, Po-Hsu Lin. This is actually an issue with accountsservice, and will be fixed when accountsservice 0.6.40-2ubuntu11.1 makes it into xenial-updates (it's currently in xenial-proposed).

affects: language-selector (Ubuntu) → accountsservice (Ubuntu)
Changed in accountsservice (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
Changed in accountsservice (Ubuntu Xenial):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
ray (raydlee-ubuntu) wrote :

I'm getting no error when changing the language order (except lack of persistence beyond a reboot), but when I try to change the regional settings, I get a crash due to permission denial.

Would like to know an approximate timescale for this - will try 14.04 in the meantime.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

On 2016-05-15 16:19, ray wrote:
> Would like to know an approximate timescale for this -

So would I. ;)

> will try 14.04 in the meantime.

Another, probably more convenient, option is to install accountsservice from xenial-proposed.

https://wiki.ubuntu.com/Testing/EnableProposed

Revision history for this message
Andrey Kazakou (a-v-kazakou) wrote :

I have error when i tried change regional format to Russian:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 67, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 79, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 1096, in on_combobox_locale_chooser_changed
    self.writeUserFormats()
  File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 777, in writeUserFormats
    self.writeUserFormatsSetting(userFormats=code)
  File "/usr/lib/python3/dist-packages/LanguageSelector/LanguageSelector.py", line 75, in writeUserFormatsSetting
    iface.SetFormatsLocale(macr['SYSLOCALE'])
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Accounts.Error.PermissionDenied: Not authorized

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.