Crash when reading 'places' setting if saved setting is invalid or unreadable (indicator-weather crashed with AttributeError in menu_locations(): 'indicator_weather' object has no attribute 'city_show')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Weather Indicator |
Fix Released
|
High
|
Joshua Tasker |
Bug Description
indicator-weather crashes when I'm configuring it, just after when I'm searching the city and it does nothing when the "Accept" button is clicked.
ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: indicator-weather 13.7.1 [origin: LP-PPA-
ProcVersionSign
Uname: Linux 3.8.0-31-generic i686
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: i386
CrashCounter: 1
CrashDB: indicator_weather
Date: Wed Oct 2 22:52:08 2013
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2013-10-03 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release i386 (20130424)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
ProcEnviron:
LANGUAGE=es_MX:es
PATH=(custom, no user)
XDG_RUNTIME_
LANG=es_MX.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: indicator-weather
ThirdParty: True
Title: indicator-weather crashed with AttributeError in menu_locations(): 'indicator_weather' object has no attribute 'city_show'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
information type: | Private → Public |
Changed in weather-indicator: | |
status: | Triaged → Fix Committed |
Changed in weather-indicator: | |
status: | Fix Committed → Fix Released |
milestone: | 13.7.2 → 13.8.0 |
Your saved places somehow got corrupted. In the next unstable release, Weather Indicator will detect this and reset them, but for now you can do one of two things:
Either run this command in a terminal, which will reset your saved places:
gsettings rest apps.indicators .weather places
Or apply the patch I have attached here to Weather Indicator, and restart it, and it should not crash again.