ubuntuone-preferences freezes with Norwegian locale

Bug #571616 reported by Øyvind Stegard
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
High
Ubuntu Norwegian Translators
ubuntuone-client (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: ubuntuone-client-gnome

Running ubuntuone-preferences with Norwegian locale causes it to freeze right before it is updating quota information.

$ ubuntuone-preferences
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/ubuntuone-preferences", line 162, in do_rest_request
    callback(result)
  File "/usr/bin/ubuntuone-preferences", line 684, in got_quota_info
    self.update_quota_display(used, total)
  File "/usr/bin/ubuntuone-preferences", line 638, in update_quota_display
    'percent' : percent })
KeyError: 'brukt'

At this point the app is non-responsive and must be killed.

The string "brukt" which is reported as a KeyError exception is the Norwegian translation for "used", most likely in relation to quota.

Running ubuntuone-preferences with standard C locale makes it work properly (does not freeze):
$ LANG=C LANGUAGE= ubuntuone-preferences

Running Ubuntu 10.04 installed from RC and fully up to date at the time of this writing.

$ apt-cache policy ubuntuone-client-gnome
ubuntuone-client-gnome:
  Installert: 1.2.1-0ubuntu2
  Kandidat: 1.2.1-0ubuntu2
  Versjonstabell:
 *** 1.2.1-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ lucid-proposed/main Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages

$ locale
LANG=nb_NO.utf8
LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:en
LC_CTYPE="nb_NO.utf8"
LC_NUMERIC="nb_NO.utf8"
LC_TIME="nb_NO.utf8"
LC_COLLATE="nb_NO.utf8"
LC_MONETARY="nb_NO.utf8"
LC_MESSAGES="nb_NO.utf8"
LC_PAPER="nb_NO.utf8"
LC_NAME="nb_NO.utf8"
LC_ADDRESS="nb_NO.utf8"
LC_TELEPHONE="nb_NO.utf8"
LC_MEASUREMENT="nb_NO.utf8"
LC_IDENTIFICATION="nb_NO.utf8"
LC_ALL=

dobey (dobey)
Changed in ubuntu-translations:
status: New → Confirmed
Changed in ubuntuone-client (Ubuntu):
status: New → Triaged
Changed in ubuntu-translations:
importance: Undecided → High
Changed in ubuntuone-client (Ubuntu):
importance: Undecided → High
milestone: none → lucid-updates
David Planella (dpm)
Changed in ubuntu-translations:
assignee: nobody → Ubuntu Norwegian Translators (ubuntu-l10n-no)
Revision history for this message
dobey (dobey) wrote :

Hi. It appears the translation is broken, and causes this error. As a temporary workaround, you can run ubuntuone-preferences with a different locale from the command line, if you need to access it. It appears the Nynorsk translation is ok, and the default is of course fine. Running "LANG=C ubuntuone-preferences" in a terminal will get you the default English strings. I've changed this as affecting Ubuntu Translations, and it should hopefully be fixed in a language pack update soon.

Changed in ubuntuone-client (Ubuntu):
milestone: lucid-updates → none
status: Triaged → Invalid
Revision history for this message
Geir Hauge (geir-hauge) wrote :

The format specifiers in this string had been translated: «%(used)0.1f %(type)s Used (%(percent)0.1f%%)»
I've fixed it; only translated the word «Used».

https://translations.edge.launchpad.net/ubuntu/lucid/+source/ubuntuone-client/+pots/ubuntuone-client/nb/+translate?batch=10&show=all&search=used

Changed in ubuntuone-client (Ubuntu):
status: Invalid → Fix Committed
David Planella (dpm)
Changed in ubuntu-translations:
status: Confirmed → Fix Committed
Changed in ubuntuone-client (Ubuntu):
status: Fix Committed → Invalid
Revision history for this message
Alexander Karlstad (alexander.karlstad) wrote :

Didn't the fix work? Still having trouble here. Running «LANG=C ubuntuone-preferences» doesn't work for me.

Revision history for this message
Alexander Karlstad (alexander.karlstad) wrote :

Okay, after changing my system language to English the ubuntuone-preferences doesn't freeze anymore.

Still, the sync never actually starts. The only thing «u1sdtool -s» tells me is either "waiting before try connecting again" or "doing auth dance".

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

I still cannot make ubuntuone-preferences work with Norwegian locale. Same error. As of now, all updates applied, including -proposed. LANGUAGE=C ubuntuone-preferences works.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Fixed in latest language pack update from -proposed:
language-pack-gnome-nb-base 1:10.04+20100714

Revision history for this message
Odd Stråbø (odd-strabo) wrote :

i got it working
i updated to latest version of ubuntuone-client via Update manager, and still it didnt work.
then i lookd a bit on the code, and made a litle change. works fine for me

Error message:
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/ubuntuone-preferences", line 162, in do_rest_request
    callback(result)
  File "/usr/bin/ubuntuone-preferences", line 681, in got_quota_info
    self.update_quota_display(used, total)
  File "/usr/bin/ubuntuone-preferences", line 635, in update_quota_display
    'percent' : percent })
KeyError: 'brukt'

Patch:
--- /usr/bin/ubuntuone-preferences~ 2010-08-06 01:09:14.710720068 +0200
+++ /usr/bin/ubuntuone-preferences 2010-08-06 01:10:29.282723002 +0200
@@ -629,10 +629,7 @@
         percent = (float(used) / float(total)) * 100
         real_used, real_type = self._format_for_gb_display(used)
         self.usage_label.set_text(
- _("%(used)0.1f %(type)s Used (%(percent)0.1f%%)") % {
- 'used' : real_used,
- 'type' : real_type,
- 'percent' : percent })
+ _("%0.1f %s Used (%0.1f%%)") %(real_used, real_type, percent))
         self.usage_graph.set_fraction(percent / 100)

         # assumes all paid accounts will have more than 50GB

Revision history for this message
David Planella (dpm) wrote :

Øyvind,

Thanks a lot for confirming that the language pack in lucid-proposed fixed this.

That language pack was not uploaded to lucid-updates because there was no feedback from the Norwegian team on the call for testing [1]. However, I'd very much like to release it, as it contains such an important fix.

Do you think you, or someone from the Norwegian team could test it following the simple procedure outlined in [1] and give some feedback? If the feedback is positive, we could proceed to upload the package to lucid-updates and all Norwegian users could benefit from the fix.

[1] https://wiki.ubuntu.com/Translations/LanguagePackUpdatesQA

Revision history for this message
Geir Hauge (geir-hauge) wrote :

I've done the tests for nb_NO; looks fine and ubuntuone-preferences no longer freezes.

Revision history for this message
dagr (dag-ringdal) wrote :

Do I need the language pack mentioned above to get Ubuntu One Prefs working properly? I am norwegian.

Dag

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

I see this is marked as 'fix committed', but where was it committed?

Revision history for this message
John O'Brien (jdobrien) wrote :

Dag,

Please follow the instructions from David Planella on the bug comments.

Revision history for this message
David Planella (dpm) wrote : Re: [Bug 571616] Re: ubuntuone-preferences freezes with Norwegian locale

El dj 12 de 08 de 2010 a les 11:51 +0000, en/na Rodrigo Moya va
escriure:
> I see this is marked as 'fix committed', but where was it committed?
>

It is marked as Fix Committed for the ubuntu-translations project,
meaning that the Norwegian translation team fixed the translation in
Launchpad (it was not an application bug), but the fix in Lucid will not
arrive until the next language pack is shipped.

IIRC the archive is frozen prior to the 10.04.1 point release on the
17th, so we'll probably have to wait until after that to release the
Norwegian language pack with the fix.

The Maverick language pack should already contain the fix.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

David Planella <email address hidden> writes:

> That language pack was not uploaded to lucid-updates because there was
> no feedback from the Norwegian team on the call for testing [1].
> However, I'd very much like to release it, as it contains such an
> important fix.
>
> Do you think you, or someone from the Norwegian team could test it
> following the simple procedure outlined in [1] and give some feedback?
> If the feedback is positive, we could proceed to upload the package to
> lucid-updates and all Norwegian users could benefit from the fix.
>
> [1] https://wiki.ubuntu.com/Translations/LanguagePackUpdatesQA

I've done the test procedures outlined in [1] ('Tests' and 'Packages to
test'). Everything OK. I've been running with the updated lang-pack from
-proposed ever since it got uploaded, and I haven't noticed any
regressions at all.

Øyvind
--
< Øyvind Stegard
 < http://folk.uio.no/oyvinst/

Revision history for this message
David Planella (dpm) wrote :

The new lucid language pack was released 4 days ago (https://launchpad.net/ubuntu/+source/language-pack-gnome-nb), so I'm marking this as Fix Released.

Thanks a lot for the feedback, and do report if you see any other issue with translations.

Changed in ubuntu-translations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.