software-center crashed with UnicodeDecodeError in get_label(): 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) for apps with hardware requirements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| software-center (Ubuntu) |
High
|
Michael Vogt | ||
| Precise |
High
|
Michael Vogt |
Bug Description
[TEST CASE]
1. install chinese support via gnome-language-
2. run LANGUAGE=
3. verify the crash (and that the UI looks chinese)
4. use software-center from precise-proposed (once its there)
5. run LANGUAGE=
6. verify that it works (and that all UI looks chinese)
[REGRESSION POTENTIAL]
Extremely low, this fix is a simple unicode conversion.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: software-center 5.1.13.2
ProcVersionSign
Uname: Linux 3.2.0-20-generic i686
NonfreeKernelMo
ApportVersion: 1.95-0ubuntu1
Architecture: i386
CrashCounter: 1
Date: Wed Mar 28 18:25:54 2012
ExecutablePath: /usr/share/
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
PythonArgs: ['/usr/
SourcePackage: software-center
Title: software-center crashed with UnicodeDecodeError in get_label(): 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
UpgradeStatus: Upgraded to precise on 2012-01-15 (72 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- Gary Lasker (community): Approve on 2012-06-06
-
Diff: 21 lines (+4/-1)1 file modifiedsoftwarecenter/ui/gtk3/widgets/labels.py (+4/-1)
mastaiza (mastaiza) wrote : | #1 |
tags: | removed: need-duplicate-check |
visibility: | private → public |
zubozrout (zubozrout) wrote : | #3 |
Same on Intel 64bit processor.
Changed in software-center (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Gary Lasker (gary-lasker) |
importance: | Low → Medium |
Bernard Banko (beernarrd) wrote : | #4 |
With todays updates I have repeteadely got a lot of crashes: software center, compiz, ocrfeed, tvtube. Hard to say more or wheather they are linked or not.
Bernard Banko (beernarrd) wrote : | #5 |
Apport complains about old libraries so it cannot report (libatk1.0-0, libatk1.0-data, libglib2.0-0, libgs9-common, libpango1.0-0)
Gary Lasker (gary-lasker) wrote : | #6 |
Hi Bernard, thanks for your info. This particular bug is not yet fix-released, so it may occur with current updates.
Beta 2 of Precise Pangolin was released just hours ago. I'd suggest doing a full update in a couple of hours and hopefully the other crashes that you are seeing will settle down.
Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package software-center - 5.1.14
---------------
software-center (5.1.14) precise; urgency=low
[ Michael Vogt ]
* lp:~mvo/software-center/lp962580:
- add locking to the expunge helper process to fix bugs that are triggered
if multiple expunge cache processes are run (LP: #962580)
* lp:~mvo/software-center/cache-refresh-glitch:
- ensure that we get a full refresh if a pkg was not available before
show_app is called
* lp:~mvo/software-center/lp940482:
- fix crash if the debfile does not return proper utf8 for the
description (LP: #940482)
* lp:~mvo/software-center/lp966514:
- properly handle network disconnect conditions with the Ubuntu
SSO dialog (LP: #966514)
* lp:~mvo/software-center/lp966879:
- fix for crashes in the installed view treeview (LP: #966879,
LP: #950899)
* lp:~mvo/software-center/lp846204:
- fix ValueError crashes in get_iter due to invalid tree paths
(LP: #846204)
* lp:~mvo/software-center/lp964433:
- disconnect the model from the view before calling set_from_matches
(LP: #964433)
* lp:~mvo/software-center/treeview-keep-state-on-db-cache-change:
- restore the state of the installed view treeview when the
the db or cache changes, such as on an app install or remove
* lp:~mvo/software-center/946393:
- fix installing multiple apps when in a custom list view (LP: #946393)
* lp:~mvo/software-center/lp969050:
- disconnect the view when the model is cleared to avoid a furry of
cursor_changed signals as the rows get removed (LP: #969050)
[ Gary Lasker ]
* lp:~gary-lasker/software-center/installed-pane-refresh:
- avoid rebuilding the treeview in the installedpane if its not
required (LP: #828887)
* lp:~gary-lasker/software-center/fix-crash-lp967036:
- Small branch to fix a crash due to a UnicodeDecodeError when accessing
the short description for H/W requirements (LP: #967036)
* lp:~gary-lasker/software-center/fix-crash-lp935930:
- fix a crash due to a UnicodeDecodeError (LP: #935930)
-- Michael Vogt <email address hidden> Fri, 30 Mar 2012 18:00:50 +0200
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Released |
Jactry Zeng (jactry) wrote : | #8 |
Intel 64 bit
Nicolás Abel Carbone (nicocarbone) wrote : | #9 |
I am still having this problem. It happens when trying to open the info page of Darwina.
Just got this problem with an up-to-date 12.04 beta while navigating in the software centre.
David Callé (davidc3) wrote : | #11 |
Happened when trying to open the page for "Sistema de facturacion e Inventario Akane".
Gary Lasker (gary-lasker) wrote : | #12 |
Thanks for reporting back, everyone! Clearly this fix was not sufficient so I'm setting this back to confirmed.
Changed in software-center (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in software-center (Ubuntu): | |
assignee: | Gary Lasker (gary-lasker) → Michael Vogt (mvo) |
milestone: | none → ubuntu-12.04 |
Changed in software-center (Ubuntu): | |
status: | Confirmed → In Progress |
summary: |
software-center crashed with UnicodeDecodeError in get_label(): 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) + for apps with hardware requirements |
Michael Vogt (mvo) wrote : | #13 |
It turns out this is due to str/unicode python2.x issues. The problem is that we get a utf8 encoded string and uses that as input for %s - then python will try to convert it to a string without a encoding and that fails. I added a explicit convertion back to unicode now. The alternative would be to return a unicode translated string in get_hw_
mazhar ozdal (local1907) wrote : | #14 |
software center >search ryzom > details and crashed software center.
Ubuntu 12.04 64bit
Gary Lasker (gary-lasker) wrote : | #15 |
Thank you for grabbing this one, Michael!
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Committed |
Launchpad Janitor (janitor) wrote : | #16 |
This bug was fixed in the package software-center - 5.2
---------------
software-center (5.2) precise; urgency=low
[ Michael Vogt ]
* debian/control:
- recommend xz-lmza instead of lzma (LP: #878354)
* lp:~mvo/software-center/track-axi-changes:
- add a monitor for changes in the apt-xapian-index to ensure
the DB is reopened if the cron job changes the apt-xapian-index
database (LP: #507836)
* lp:~mvo/software-center/lp970342:
- do not crash if the parent goes away (and therefore the pipe)
and the token can not be obtained (LP: #970342)
* lp:~mvo/software-center/lp967036:
- fix UnicodeDecodeError crash for apps with hardware
requirements in the details view (LP: #967036)
* lp:~mvo/software-center/list-a11y:
- restore the a11y support for orca/accerciser
the listview and treeview
* lp:~mvo/software-center/lp979013:
- fix a bug in the review display for certain language
environments (LP: #979013)
* lp:~mvo/software-center/appview-tweaks:
- code cleanup in the sortmode code
* lp:~mvo/software-center/lp772549:
- fix a bug that can result in a blank software center
screen on startup (LP: #772549)
* lp:~mvo/software-center/lp914393:
- adds an explicit sys.exit() to ensure all gtk event
processing is stopped on application quit (LP: #914393)
* lp:~mvo/software-center/lp976169:
- do not crash if apt-xapian-index is not installed
(LP: #976337)
- ignore xapian.
there is no a-x-i so we don't care) (LP: #976169)
* lp:~mvo/software-center/lp976525:
- do not show "upgradable" button when there should be "remove"
(LP: #976525)
[ Gary Lasker ]
* lp:~gary-lasker/software-center/sorting-fix-lp969215:
- fix sort combo box inconsistencies (LP: #969215)
[ Dave Morley ]
* lp:~davmor2/software-center/remove_two_lines:
- small fixes for test script USC-start-
[ Kiwinote ]
* sc/ui/gtk3/
- everyone tries to expand a category in the installed pane by clicking
on the text rather than the expander arrow (LP: #877130)
-- Michael Vogt <email address hidden> Fri, 13 Apr 2012 18:35:13 +0200
Changed in software-center (Ubuntu): | |
status: | Fix Committed → Fix Released |
Anthony Wong (anthonywong) wrote : | #17 |
I have to re-open this bug because I still have this problem even though my software-center is 5.2.1, problem occurs when the "More Info" button of Ryzom is pressed when locale is in zh_TW.UTF-8, but does not happen in en_US.UTF-8.
$ dpkg -l software-center | grep software-center
ii software-center 5.2.1 Utility for browsing, installing, and removing software
Traceback (most recent call last):
File "/usr/share/
f(*args, **kwargs)
File "/usr/share/
self.
File "/usr/share/
callback(page, view_state)
File "/usr/share/
SoftwarePan
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
label.
File "/usr/share/
self.
File "/usr/share/
"hardware": unicode(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 19: ordinal not in range(128)
Changed in software-center (Ubuntu): | |
milestone: | ubuntu-12.04 → none |
status: | Fix Released → New |
Changed in software-center (Ubuntu): | |
assignee: | Michael Vogt (mvo) → nobody |
tags: | added: ca-escalated |
Michael Vogt (mvo) wrote : | #18 |
I can reproduce this with LANGUAGE=
Changed in software-center (Ubuntu): | |
status: | New → In Progress |
status: | In Progress → Triaged |
importance: | Medium → Critical |
Michael Vogt (mvo) wrote : | #19 |
It turns out this caused by a translation:
The string for the hardware is translated as:
original: '%(sym)
translation: '%(sym)
The "," is different in the translation causing the crash.
Changed in software-center (Ubuntu): | |
assignee: | nobody → Michael Vogt (mvo) |
status: | Triaged → In Progress |
importance: | Critical → High |
Changed in software-center (Ubuntu Precise): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Michael Vogt (mvo) |
description: | updated |
Changed in software-center (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Committed |
Launchpad Janitor (janitor) wrote : | #20 |
This bug was fixed in the package software-center - 5.3.2
---------------
software-center (5.3.2) quantal-proposed; urgency=low
[ Gary Lasker ]
* lp:~gary-lasker/software-center/recommendations-string-change-lp986437-for-5.2
- cherry pick string change LP: #986437
[ Natalia Bidart ]
* lp:~nataliabidart/software-center/lost-in-translation:
- Pass the missing "self" argument to the super(ish) call to fix
crash in the installed pane
[ Michael Vogt ]
* merge fixes from the 5.2 branch:
- LP: #873104, #1003954, #967036, #920741
-- Michael Vogt <email address hidden> Thu, 28 Jun 2012 11:12:02 +0200
Changed in software-center (Ubuntu): | |
status: | Fix Committed → Fix Released |
Hello mastaiza, or anyone else affected,
Accepted software-center into precise-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-
Further information regarding the verification process can be found at https:/
tags: | added: verification-needed |
description: | updated |
Anthony Wong (anthonywong) wrote : | #22 |
Confirmed software-center 5.2.4 in precise-proposed fixes the bug.
tags: |
added: verification-done removed: verification-needed |
Gary Lasker (gary-lasker) wrote : | #23 |
I have verified that software-center version 5.2.4 in precise-proposed fixes this bug per the test case given in the description.
Thanks!
Gary Lasker (gary-lasker) wrote : | #24 |
Thank you for your verification, Anthony!
Launchpad Janitor (janitor) wrote : | #25 |
This bug was fixed in the package software-center - 5.2.4
---------------
software-center (5.2.4) precise-proposed; urgency=low
[ Michael Vogt ]
* lp:~mvo/software-center/lp970627:
- fix intermittent crash when expunging the cache (LP: #970627)
* lp:~mvo/software-center/lp971776:
- fix crash when a downloaded image is invalid for whatever
reason (network issues, proxy issues, pay-wall in between)
(LP: #971776)
* lp:~mvo/software-center/lp967036-2:
- fix unicode error crash for people running with the
LANGUAGE=
* lp:~mvo/software-center/cookie-jar:
- fix paypal support in the purchases window (LP: #1018347)
[ Gary Lasker ]
* debian/control:
- update vcs link to point to the 5.2 branch
* lp:~gary-lasker/software-center/previous-purchase-sorting-lp873104:
- return correct results when sorting the list of previous
purchases (LP: #873104)
* lp:~gary-lasker/software-center/recommendations-string-change-lp986437-for-5.2:
- switch to the updated recommendations opt-in string now that the
corresponding language pack updates are released and available
(LP: #986437)
* lp:~gary-lasker/software-center/fix-lp920741:
- fix UnicodeDecodeError when a commercial app's title contains
a unicode character (LP: #920741)
[ Natalia Bidart ]
* lp:~nataliabidart/software-center/cant-stop-the-music:
- Stop the video if user navigates away from an app details page
(LP: #1003954).
-- Michael Vogt <email address hidden> Thu, 28 Jun 2012 10:35:55 +0200
Changed in software-center (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.