software-center crashed with IndexError in _get_region_dumb(): list index out of range

Bug #1091478 reported by Karma Dorje
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04

$ apt-cache policy software-center
software-center:
  Installed: 5.5.2.2
  Candidate: 5.5.2.2
  Version table:
 *** 5.5.2.2 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

steps to reproduce:

1. open a terminal (i used byobu) and enter this:

software-center

actual results:

Fontconfig warning: ignoring C.UTF-8: not a valid language tag
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
2012-12-18 07:42:46,647 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
2012-12-18 07:42:47,189 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
Traceback (most recent call last):
  File "/usr/bin/software-center", line 130, in <module>
    app = SoftwareCenterAppGtk3(options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 397, in __init__
    self.icons)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/installedpane.py", line 95, in __init__
    CategoriesParser.__init__(self, db)
  File "/usr/share/software-center/softwarecenter/db/categories.py", line 251, in __init__
    self._build_string_template_dict()
  File "/usr/share/software-center/softwarecenter/db/categories.py", line 301, in _build_string_template_dict
    region = "%s" % get_region_cached()["countrycode"]
  File "/usr/share/software-center/softwarecenter/region.py", line 147, in get_region_cached
    my_region = rd.get_region()
  File "/usr/share/software-center/softwarecenter/region.py", line 98, in get_region
    res = self._get_region_dumb()
  File "/usr/share/software-center/softwarecenter/region.py", line 114, in _get_region_dumb
    countrycode = loc.split("_")[1]

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: software-center 5.5.2.2
ProcVersionSignature: Ubuntu 3.7.0-7.15-generic 3.7.0
Uname: Linux 3.7.0-7-generic x86_64
ApportVersion: 2.7-0ubuntu2
Architecture: amd64
Date: Tue Dec 18 07:41:08 2012
ExecutablePath: /usr/share/software-center/software-center
InstallationDate: Installed on 2012-09-30 (78 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.1)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
PythonArgs: ['/usr/bin/software-center']
SoftwareCenterLog:
 2012-12-18 07:41:07,169 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
 2012-12-18 07:41:07,879 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
SourcePackage: software-center
Title: software-center crashed with IndexError in _get_region_dumb(): list index out of range
UpgradeStatus: Upgraded to raring on 2012-10-05 (73 days ago)
UserGroups:

Revision history for this message
Karma Dorje (taaroa) wrote :
tags: removed: need-duplicate-check
Changed in software-center (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Karma Dorje (taaroa) wrote :

in gnome-terminal this does not cause crash

Karma Dorje (taaroa)
information type: Private → Public
Karma Dorje (taaroa)
tags: added: trusty
Revision history for this message
dino99 (9d9) wrote :

That version is no more maintained

Changed in software-center (Ubuntu):
status: New → Invalid
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.