power-usage-report crashes

Bug #1642735 reported by Kevin Fenzi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fatrace
New
Undecided
Unassigned

Bug Description

Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1368376

# power-usage-report
Measurement will begin in 5 seconds. Please make sure that the
computer is idle, i. e. do not press keys, start or operate programs, and that
programs are not busy with active tasks other than the one you want to examine.
Starting measurement for 60 seconds...
Loaded 0 prior measurements
RAPL device for cpu 0
RAPL device for cpu 0
Devfreq not enabled
Preparing to take measurements
  unknown op '{'
Measurement complete. Generating report...
Traceback (most recent call last):
  File "/usr/sbin/power-usage-report", line 199, in <module>
    main()
  File "/usr/sbin/power-usage-report", line 196, in main
    powertop_report(output['powertop'])
  File "/usr/sbin/power-usage-report", line 173, in powertop_report
    while not lines[i]:
IndexError: list index out of range

Might be a missing check to see if there's a battery or not (if not, powertop doesn't generate a csv file).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.