software-center crashed with TypeError in get_status_text()

Bug #449053 reported by sa3paleasm on 2009-10-11
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Ubuntu Arabic Translators
language-pack-ar (Ubuntu)
software-center (Ubuntu)

Bug Description

Binary package hint: software-center

i want to retarn back to English language after the upgrade the sestem to 9.10 is not able to open the package of language itry ALT F2 gnome-language-selector with the tirmenl but dosn`t want to work i`ll remove the Arbic package language and i`ll try

ProblemType: Crash
Architecture: i386
Date: Sun Oct 11 22:55:39 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/software-center/software-center
InterpreterPath: /usr/bin/python2.6
Package: software-center 0.5.0
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcVersionSignature: Ubuntu 2.6.31-13.44-generic
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with TypeError in get_status_text()
Uname: Linux 2.6.31-13-generic i686
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
 (gnome-settings-daemon:2139): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2139): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2186): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2195): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

sa3paleasm (sa3paleasm) wrote :
tags: removed: need-duplicate-check
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This appears to be a problem with the translations:
#, python-format
msgid "%s matching item"
msgid_plural "%s matching items"
msgstr[0] "ﻻ ﻊﻧﺎﺻﺭ ﻢﻃﺎﺒﻗﺓ"
msgstr[1] "ﻊﻨﺻﺭ ﻭﺎﺣﺩ ﻢﻃﺎﺒﻗ"
msgstr[2] "ﻊﻨﺻﺭﺎﻧ ﻢﻃﺎﺒﻗﺎﻧ"

msgid "%s item available"
msgid_plural "%s items available"
msgstr[0] "ﻻ ﻊﻧﺎﺻﺭ ﻢﺗﻮﻓﺭﺓ"
msgstr[1] "ﻊﻨﺻﺭ ﻭﺎﺣﺩ ﻢﺗﻮﻓﺭ"
msgstr[2] "ﻊﻨﺻﺭﺎﻧ ﻢﺗﻮﻓﺭﺎﻧ"

This indicates that the number of %s in original string and translation does not match.

Changed in language-pack-ar (Ubuntu):
status: New → Confirmed
Changed in software-center (Ubuntu):
status: New → Confirmed
security vulnerability: yes → no
visibility: private → public
Adi Roiban (adiroiban) wrote :

This problem can be fixed by one of the members of Ubuntu Arabic Translation team.

Here are the links to those translations:


This is still a problem with python's gettext binding since the C version does not crash on this kind or string and silently ignores any missing operators.

Changed in language-pack-ar (Ubuntu):
status: Confirmed → Invalid
Changed in software-center (Ubuntu):
status: Confirmed → Invalid
Changed in ubuntu-translations:
status: New → Confirmed
assignee: nobody → Ubuntu Arabic Translators (ubuntu-l10n-ar)
Djihed (djihed) wrote :

Khaled - this should be fixed upstream. The number should be put in brackets for python strings.

Adi Roiban (adiroiban) on 2009-11-24
Changed in software-center (Ubuntu):
status: Invalid → Confirmed
Adi Roiban (adiroiban) wrote :

You can fix this in software-center by using str.format instead of %

gettext.ngettext("%s matching item",
      "%s matching items",
      length) % length

can be replaced with

gettext.ngettext("%s matching item",
      "%s matching items",

As far as I know it is recommended to use format instead of %.

I have fixed this error in trunk... but I don't know which branch of software-center was release in Karmic.

Khaled Hosny (khaledhosny) wrote :

One solution is to use "%.0s" as a place holder in the translation, it would prevent the crash yet it won't be displayed in the output, can some one confirm this as I can't test it right now?

tags: added: karmic
Michael Vogt (mvo) wrote :

I added code that makes software-center more robust by using %(amount)s. If that is missing it will just not display it but not crash.

Changed in software-center (Ubuntu):
status: Confirmed → Fix Committed
importance: Undecided → Medium
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package software-center - 2.1.0

software-center (2.1.0) maverick; urgency=low

  [ Matthew McGowan ]
  * merged lp:~mmcg069/software-center/backforward-redraw-fix
  * make the overlaywithpixbuf cellrenderer inherit from a text
    cellrenderer, does away with the need to have 1px column in the
    appview for accessibility reasons.
  * add nice animation to pathbar elements

  [ Olivier Tilloy ]
  * fix LP: #564785:
    "each row has a progress bar (which itself never contains any text)"
  * show download completion status (LP: #460888)
  * add "bottom border" effect (LP: #439621)
  * add "history" GUI that reads /var/log/apt/history.log
  * Re-claim used memory after updating an existing AppStore with a
    new one (LP: #577540)
  * Fix the database update when run with a Turkish locale
    (patch by M. Vefa Bicakci). LP: #581207
  * Make buttons activate on mouse up, fix other inconsistencies
    in list view button operation (LP: #514835)

  [ Jacob Johan Edwards ]
  * merged lp:~j-johan-edwards/software-center/smooth_search, this
    massively improves the search and stops it from flickering
    (LP: #570682)
  * merged lp:~j-johan-edwards/software-center/action_bar that provides
    the foundation for the "custom packages list" branch
  * merged lp:~j-johan-edwards/software-center/unbranded_icons to
    provide a set of unbranded icons for e.g. Debian
  * merged lp:~j-johan-edwards/software-center/custom_lists to

  [ Ken van Dine ]
  * allow sharing apps via gwibber and apturl

  [ Julian Andres Klode ]
  * merged lp:~juliank/software-center/debian that include fixes and
    updates for the new python-apt 0.8 API

  [ Kiwinote ]
  * data/
    - Update featured applications list per Desktop team (LP: #548534)
    - Feature 'fretsonfire-game' rather than 'fretsonfire' (LP: #538646)
  * softwarecenter/view/
    - Set correct sensitivity of 'edit > undo,redo,cut,copy,delete,select_all'
      (LP: #439613, LP: #530194)

  [ Michael Vogt ]
  * softwarecenter/view/
    - simplify application list buildup and improve responsiveness
  * softwarecenter/view/*
    - fix crash when ngettext is translated without %s format
      (LP: #449053)
  * add test/Makefile and ensure all tests are run in the bzr-buildpackage
    pre-build hook
  * softwarecenter/db/, softwarecenter/view/
    - add "StoreDatabase.get_iconname()" and use it
  * softwarecenter/view/
    - small cleanups
  * softwarecenter/view/
    - add iconnames when installing custom lists
  * softwarecenter/view/
    - look for "appname" and "pkgname" (in this order) when showing
      the progress information
  * update about (LP: #566571)
  * merged lp:~apulido/software-center/mago_fix (many thanks to Ara Pulido)
  * data/
    - add unbranded desktop file
  * softwar...


Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released

Is this still relevant? Please respond if you are still affected.

Changed in ubuntu-translations:
status: Confirmed → Incomplete
David Planella (dpm) on 2011-04-14
Changed in ubuntu-translations:
status: Incomplete → Opinion
status: Opinion → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers