guidance-power-manager crashes on startup

Bug #244830 reported by Stas Verberkt
6
Affects Status Importance Assigned to Milestone
guidance-power-manager (Ubuntu)
Fix Released
Undecided
Scott Kitterman

Bug Description

Binary package hint: guidance-power-manager

Backtrace:

Traceback (most recent call last):
  File "/usr/bin/guidance-power-manager", line 1139, in <module>
    main()
  File "/usr/bin/guidance-power-manager", line 1114, in main
    mainWindow = PowermanagerApp(None)
  File "/usr/bin/guidance-power-manager", line 1042, in __init__
    self.pmwidget.prepare()
  File "/usr/bin/guidance-power-manager", line 85, in prepare
    self.poll(False)
  File "/usr/bin/guidance-power-manager", line 630, in poll
    self._updateBatteryWidget(batt, state, level, remain, rate)
  File "/usr/bin/guidance-power-manager", line 786, in _updateBatteryWidget
    self.BattProgress[batt].setFormat(ki18nc("%1 is discharge rate in Watts", "Discharging (%p%) - %1 W").subs(showrate, 0, "g", 0).toString())
TypeError: argument 3 of KLocalizedString.subs() has an invalid type
guidance-power-manager(16477): Communication problem with "guidance-power-manager" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" "

Revision history for this message
Richard Seguin (sectech) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" [WWW] http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at [WWW] http://wiki.ubuntu.com/DebuggingProcedures

At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).
Thanks!

Revision history for this message
Richard Seguin (sectech) wrote :

* Marking as incomplete pending enough information to complete triage

Changed in guidance-power-manager:
status: New → Incomplete
Revision history for this message
Stas Verberkt (legolas) wrote :

1. the specific steps or actions you took that caused you to encounter the problem,
I ran "guidance-power-manager &" in a shell window.

2. the behavior you expected, and
I expected the power-manager widget to startup and go act as it used to do (be on my taskbar and measure my power usage and batery state etc.)

3. the behavior you actually encountered (in as much detail as possible).
It didn't start, but put the backtrace I mentioned earlier on on my terminal.

Revision history for this message
Stas Verberkt (legolas) wrote :

Actually, if you look at the backtrace you see "g" where as when you look in the API of PyKDE it has to be 'g'. So a Char instead of a String. Fixes the problem if you change those quotes.

Revision history for this message
Stas Verberkt (legolas) wrote :
Revision history for this message
Stas Verberkt (legolas) wrote :

After taking a closer look, as the wanted behaviour by the developer is the default one, the best fix would be omitting the last three arguments on the given line (line 786 of guidance-power-manager.py or in ubuntu /usr/bin/guidance-power-manager). Resulting in:
self.BattProgress[batt].setFormat(ki18nc("%1 is discharge rate in Watts", "Discharging (%p%) - %1 W").subs(showrate).toString())

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

In Python single or double quotes are equivalent as long as you are consistent. 'g' or "g" are fine. "g' is not. The larger problem is that that method is marked 'Not implemented' in the documentation. I'll take a stab at this.

Changed in guidance-power-manager:
assignee: nobody → kitterman
status: Incomplete → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package guidance-power-manager - 4:4.0.83-0ubuntu3

---------------
guidance-power-manager (4:4.0.83-0ubuntu3) intrepid; urgency=low

  * Add debian/patches/kubuntu01-no-ixf86misc.patch to remove ixf86misc
    files from modules/CMakeLists.txt (LP: #245339)
    - ixf86misc is supplied by guidance-backends and is part of Guidance's
      display functionality and not power management
  * Add debian/patches/kubuntu02-klocalize-crash.patch to remove unimplemented
    call to python-kde4 (LP: #244830)
  * Drop ixf86misc related build-deps and depends:
    - libxxf86vm-dev, x11proto-scrnsaver-dev, libxrandr-dev, libxss-dev
    - ${shlibs:Depends} (package is pure Python now)
  * Change guidance-power-manager from arch any to arch all
  * Drop unused build-dep on quilt and remove /usr/share/cdbs/1/rules/quilt.mk
    from debian/cdbs/kde.mk
  * Add simple-patchsys.mk to debian/rules

 -- Scott Kitterman <email address hidden> Sat, 05 Jul 2008 12:13:42 -0400

Changed in guidance-power-manager:
status: In Progress → Fix Released
Revision history for this message
Stas Verberkt (legolas) wrote :

Strange that those edits did fix the problem for me on my local computer. Anyway, thanks for the fix.

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.