Bug 1386307

Summary: [abrt] solaar: icons.py:151:_battery_icon_name:IndexError: tuple index out of range
Product: [Fedora] Fedora Reporter: Frank Büttner <bugzilla>
Component: solaarAssignee: Eric Smith <spacewar>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: j, richardfearn, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/43e55970342083d8791a498d0603eb6230fdff9d
Whiteboard: abrt_hash:4ecd019487745be092b3717b49527ce20823bd26;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 19:28:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Frank Büttner 2016-10-18 15:40:29 UTC
Version-Release number of selected component:
solaar-0.9.2-4.20150528gitcf27328.fc24.4

Additional info:
reporter:       libreport-2.7.2
cmdline:        /usr/bin/python /usr/bin/solaar
executable:     /usr/bin/solaar
kernel:         4.7.6-200.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
icons.py:151:_battery_icon_name:IndexError: tuple index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/solaar/ui/__init__.py", line 160, in _status_changed
    tray.update(device)
  File "/usr/lib/python2.7/site-packages/solaar/ui/tray.py", line 502, in update
    _update_menu_item(index, device)
  File "/usr/lib/python2.7/site-packages/solaar/ui/tray.py", line 428, in _update_menu_item
    icon_name = _icons.battery(level, charging)
  File "/usr/lib/python2.7/site-packages/solaar/ui/icons.py", line 113, in battery
    icon_name = _battery_icon_name(level, charging)
  File "/usr/lib/python2.7/site-packages/solaar/ui/icons.py", line 151, in _battery_icon_name
    level_name = ('empty', 'caution', 'low', 'good', 'good', 'full')[level_approx // 20]
IndexError: tuple index out of range

Local variables in innermost frame:
level: 127
level_approx: 120
charging: False

Comment 1 Frank Büttner 2016-10-18 15:40:36 UTC
Created attachment 1211775 [details]
File: backtrace

Comment 2 Frank Büttner 2016-10-18 15:40:38 UTC
Created attachment 1211776 [details]
File: environ

Comment 3 Fedora End Of Life 2017-07-25 23:31:49 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2017-08-08 19:28:34 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.