Powermanager crashes

Bug #92550 reported by Georg
8
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Incomplete
Undecided
Luka Renko

Bug Description

Binary package hint: kde-guidance-powermanager

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210750768 (LWP 6144)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6 0xb79a5454 in ?? () from /usr/lib/libXrandr.so.2
#7 0x08571758 in ?? ()
#8 0x0857ea28 in ?? ()
#9 0x00000048 in ?? ()
#10 0xb6708b8a in ?? () from /usr/lib/libX11.so.6
#11 0xb78b1158 in ?? () from /usr/lib/libXext.so.6
#12 0x08578090 in ?? ()
#13 0xbfc45b28 in ?? ()
#14 0x00000062 in ?? ()
#15 0x08571218 in ?? ()
#16 0x08568698 in ?? ()
#17 0xbfc45b48 in ?? ()
#18 0x00000001 in ?? ()
#19 0x08571764 in ?? ()
#20 0x00000000 in ?? ()

Revision history for this message
Sebastian Kügler (sebasje) wrote :

Please start powermanager from a console and post the output from there. The above log is useless.

Changed in kde-guidance:
assignee: nobody → sebas-kde
status: Unconfirmed → Needs Info
Revision history for this message
Georg (georg-an) wrote :

I am not sure how to do it right. I tried it once as a normal user and the second time using sudo.

1)
georg@ubuntu:~$ guidance-power-manager
georg@ubuntu:~$ X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
KCrash: Application 'guidance-power-manager.py' crashing...

2)
georg@ubuntu:~$ sudo guidance-power-manager
Password:
georg@ubuntu:~$ X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
No protocol specified
kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
No protocol specified
kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-6473' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
No protocol specified
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1045, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 982, in __init__
    self.pmwidget = PowerManager(self,name)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 96, in __init__
    self.powermanager = PowerManage()
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 69, in __init__
    xg = xf86misc.XF86Server()
  File "/usr/share/python-support/kde-guidance/xf86misc.py", line 133, in __init__
    raise XF86Error, "Couldn't connect to X server."
xf86misc.XF86Error: Couldn't connect to X server.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport/python_hook.py", line 44, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
IndexError: list index out of range

Original exception was:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1045, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 982, in __init__
    self.pmwidget = PowerManager(self,name)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 96, in __init__
    self.powermanager = PowerManage()
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 69, in __init__
    xg = xf86misc.XF86Server()
  File "/usr/share/python-support/kde-guidance/xf86misc.py", line 133, in __init__
    raise XF86Error, "Couldn't connect to X server."
xf86misc.XF86Error: Couldn't connect to X server.

I hope this is what you meant.

Revision history for this message
Ingo Bruell (ibruell) wrote :

on my laptop hp compaq nc8000 the program /usr/share/python-support/kde-guidance/guidance-power-manager.py crashes, too. i add the output from strace.

Revision history for this message
Sebastian Kügler (sebasje) wrote :

Can one of the reporters try the following patch? It should catch the error loading the module (I'm unsure about the cause, are you running Xgl or did something else non-default with your X server, maybe?)

It should, however, give me some hint about what needs fixing, too (there's at least two more references in the code that cause problems, but since I can't reproduce it, I'd like to make it at least not crash.)

Thanks!

Revision history for this message
Ingo Bruell (ibruell) wrote :

after adding the patch the powermanager crashes.

here some hopefully infomus sections of my xorg.conf:

Section "Module"
        Load "i2c"
        Load "bitmap"
        Load "ddc"
        Load "extmod"
        Load "freetype"
        Load "int10"
        Load "type1"
        Load "vbe"
        Load "dri"
        Load "glx"
EndSection

Section "Device"
        Identifier "ATI Graphics Adapter connector 0"
        Screen 0
        Driver "radeon"
        BusID "PCI:1:0:0"

        Option "AGPMode" "4"
        Option "no_dri" "no"
        Option "NoTV" "yes"
EndSection

Revision history for this message
Sebastian Kügler (sebasje) wrote :

Can you post powermanager's console output? (It should be different than without the first patch, which only makes it get further. I want to make not being able to detect idle time non-fatal in the first place.)

I'm not sure what your xorg.conf has to do with that, however.

Revision history for this message
Ingo Bruell (ibruell) wrote :

i always get the following message on the console:

KCrash: Application 'guidance-power-manager.py' crashing...

yesterday i pllayed arroung with the xorg.conf, cause i had some problems with kde, the powermanger worked. so i thought that there is a correlation.

Revision history for this message
Sebastian Kügler (sebasje) wrote :

Do you still get the same trace when running powermanager from the commandline?

Revision history for this message
Ingo Bruell (ibruell) wrote :

Yes, i have installed all patches but nothing has changed.

Revision history for this message
Ingo Bruell (ibruell) wrote :

i found out that the powermangager only crashes when i use my xorg.conf eith multihead enabled. i will add the xorg.conf with which the powermangager will not crash and the one when it craches.

Revision history for this message
Ingo Bruell (ibruell) wrote :

NOT crashing xorg.conf

Revision history for this message
Ingo Bruell (ibruell) wrote :

NOT crashing xorg.conf

Revision history for this message
redpoint (redpoint7) wrote :

I have exactly the same problem here and I'm using Xinerama and multihead too
Notebook: Sony Vaio VGN-FE11S

output from sudo guidance-power-manager:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Problem connecting to X server for idletime detection.
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1077, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1021, in __init__
    self.pmwidget.prepare()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 116, in prepare
    self.poll(False)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 668, in poll
    self.checkIdletime()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 942, in checkIdletime
    idlesec = round(self.powermanager.getIdleSeconds()/60, 2)
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 431, in getIdleSeconds
    return self.xscreen.getIdleSeconds()
AttributeError: PowerManage instance has no attribute 'xscreen'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 44, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
IndexError: list index out of range

Original exception was:
Traceback (most recent call last):
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1077, in <module>
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 1021, in __init__
    self.pmwidget.prepare()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 116, in prepare
    self.poll(False)
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 668, in poll
    self.checkIdletime()
  File "/usr/share/python-support/kde-guidance/guidance-power-manager.py", line 942, in checkIdletime
    idlesec = round(self.powermanager.getIdleSeconds()/60, 2)
  File "/usr/share/python-support/kde-guidance/powermanage.py", line 431, in getIdleSeconds
    return self.xscreen.getIdleSeconds()
AttributeError: PowerManage instance has no attribute 'xscreen'

Revision history for this message
winkler (winkler-torsten) wrote :

I have the same problem on a Dell Latitude D-600 Notebook with ATI Mobility Radeon 9000. Only when I use the xorg.conf with multihead-xinerama, powermanager crashes.

I tried to remove guidance-powermanager and used kpowersave instead. That works fine. However, then another guidance module (displayconfig-restore.py) crashes.

Revision history for this message
Luka Renko (lure) wrote :

This looks like another duplicate of bug 91545.

I have prepared test packages (i386 only) with fix from KDE SVN. You can install and test them:

http://muse.19inch.net/~lure/feisty/kde-guidance_0.8.0-0ubuntu6~lure1_i386.deb
http://muse.19inch.net/~lure/feisty/kde-guidance-powermanager_0.8.0-0ubuntu6~lure1_i386.deb

Please report back if it fixes or not your problem. If we get good feedback, this fix will be considered for https://wiki.ubuntu.com/StableReleaseUpdates

Changed in kde-guidance:
assignee: sebas-kde → lure
Revision history for this message
winkler (winkler-torsten) wrote : Re: [Bug 92550] Re: Powermanager crashes

I just installed the test packages for kde-guidance and
guidance-powermanager.

The good thing: Now guidance-powermanager works again! :-)

However, displayconfig-restore.py still crashes... and still, it only
happens when I use the xorg.conf with dual monitors enabled.

Anyway, thanks a lot for the good work!

Torsten Winkler

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.