kde-guidance-powermanager: python2.5 crashed with AttributeError in checkBatteryCritical()

Bug #231163 reported by Jon Skanes
18
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Undecided
Andreas Wenning

Bug Description

Binary package hint: kde-guidance-powermanager

New install of kubuntu 8.04 on a HP Compaq TC1100 PM079PS#UUF tablet notebook
Installed: 0.8.0svn20080103-0ubuntu16

ProblemType: Crash
Architecture: i386
Date: Fri May 16 15:39:35 2008
Dependencies:
 libgcc1 1:4.2.3-2ubuntu7
 gcc-4.2-base 4.2.3-2ubuntu7
 zlib1g 1:1.2.3.3.dfsg-7ubuntu1
 libc6 2.7-10ubuntu3
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/python2.5
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: python2.5-minimal 2.5.2-2ubuntu4
PackageArchitecture: i386
ProcCmdline: /usr/bin/python /usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
PythonArgs: []
SourcePackage: python2.5
Title: python2.5 crashed with AttributeError in checkBatteryCritical()
Uname: Linux 2.6.24-16-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Revision history for this message
Jon Skanes (jon-skanes) wrote :
Revision history for this message
Jon Skanes (jon-skanes) wrote :

Playing around with it, I notice it starts fine on battery.

Also, this notebook has a mobile celeron yet Power Manager doesn't show the current CPU speed.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Thank you for your bug report. Please try to start the power manager from command-line. This should give you a python backtrace when it crashes; please attach this as a file to this bug report. You can start the power manager with the command "guidance-power-manager".

Changed in kde-guidance:
status: New → Incomplete
Revision history for this message
Jon Skanes (jon-skanes) wrote : kde-guidance-powermanager backtrace

  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 1125, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 1069, in __init__
    self.pmwidget.prepare()
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 101, in prepare
    self._initLid()
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 140, in _initLid
    self.powerHasBeenUnplugged()
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 928, in powerHasBeenUnplugged
    self.checkBatteryCritical()
  File "/usr/share/python-support/kde-guidance-powermanager/guidance-power-manager.py", line 954, in checkBatteryCritical
    if self.batt_state == "discharging":
AttributeError: batt_state

Revision history for this message
jamesjedimaster (jamesjedimaster) wrote :

I have the same problem than PraysToPan and the same output for guidance-power-manager

Changed in kde-guidance:
assignee: nobody → andreas-wenning
status: Incomplete → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kde-guidance - 0.8.0svn20080103-0ubuntu18

---------------
kde-guidance (0.8.0svn20080103-0ubuntu18) intrepid; urgency=low

  [ Anthony Fok ]
  * kubuntu_32_displayconfig_update_refresh_rate.patch:
    - The refresh rate was not updated for the selected resolution, so
      resolution change could fail. (LP: #82279)
  * kubuntu_33_displayconfig_add_new_video_cards.patch:
    - Added 8086:29b2 for "Intel Q35";
  * debian/copyright: s/FDL/GFDL/;

  [ Andreas Wenning ]
  * kubuntu_34_kde-powermanager_no_lid_special_behaviour_disable.patch:
    - No need to call power plugged/unplugged in init if no lid is
      found; this just make us crash. (LP: #231163)

 -- Andreas Wenning <email address hidden> Mon, 02 Jun 2008 22:20:45 +0200

Changed in kde-guidance:
status: In Progress → Fix Released
Revision history for this message
Jon Skanes (jon-skanes) wrote :

Great work! Any chance of updating Hardy as well?

Thanks,
Jon

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Hi Jon

I'm working on getting it into hardy; see the SRU request at the bottom of bug 82279 . It will at first get into hardy-proposed before going into hardy-updates; so it would be very nice if one that is affected has hardy-proposed enabled to give feedback when it get into hardy-proposed.

Revision history for this message
Scott Kitterman (kitterman) wrote :

We need to have someone affected by this bug install from hardy-proposed and tell us if that package fixes the problem.

Revision history for this message
jamesjedimaster (jamesjedimaster) wrote :

The update is ready for Hardy; I have upgrade it and works fine. Thank you very much!

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.