buxeasywork / batti-gtk

Automatically exported from code.google.com/p/batti-gtk
0 stars 0 forks source link

DBUS exceptions and runaway upowerd #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please see the Arch Linux bug report:
https://bugs.archlinux.org/task/28820

Here's a copy of the text from that bug report:

Description:
batti keeps spitting out these errors:-
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 214, in 
maybe_handle_message
self._handler(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/batti/Battery.py", line 273, in 
__on_property_modified
state = self.__properties.Get(self.dbus_iface, 'State')
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 143, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in 
call_blocking
message, timeout)
DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with 
signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

It spawns many copies of the notification for battery power and the tray icon, 
while upowerd goes crazy writing to my HD root partition (couldn't find 
anything abnormal in error logs though, so not sure where its writing to).

Additional info:
* package version(s)
upower-0.9.15-1
batti-0.3.8-3
* config and/or log files etc.

Steps to reproduce:
Just run batti. Noticed the problem after a system update (I'm using [testing]) 
of the following:-
bluez
chromium
feh
git
libxmu

None of which seem related. It may have been an earlier update though, but I 
only noticed the symptoms after the update of the above.

---

Additional comment based on testing since then, this only occurs when the 
laptop is currently charging. It does not occur when:-

1. Laptop is on battery power
2. Laptop is fully charged but plugged in to AC

Hope that's useful.

---

Thanks.

Original issue reported on code.google.com by rods...@gmail.com on 12 Mar 2012 at 10:29

GoogleCodeExporter commented 9 years ago
I have the same error from .xsession-errors when I use notification-daemon for 
the pop notification and notification-daemon does not work with batti

ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/batti/Battery.py", line 291, in __on_property_modified
    self.set_value(info)
  File "/usr/lib/python2.7/site-packages/batti/Battery.py", line 111, in set_value
    self._notify(False, icon, _('Charging battery'), notification)
  File "/usr/lib/python2.7/site-packages/batti/Battery.py", line 165, in _notify
    self.__notifer.show(icon, subject, msg)
  File "/usr/lib/python2.7/site-packages/batti/Notificator.py", line 65, in show
    self.__show(icon, subject, msg, 1)
  File "/usr/lib/python2.7/site-packages/batti/Notificator.py", line 61, in __show
    self.__last_id = self.__notify.Notify(self.__name, self.__last_id, icon, subject, msg, [], hints, self.__duration)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.15 was 
not provided by any .service files

Once I use xfce4-notifyd, the pop notification work and the above error no more 
appear in my .xsession-errors...

I am using VectorLinux 7 Standard version, batti-0.3.8, 
notification-daemon-0.5.0 and xfce4-notifyd-0.2.2

Original comment by hata...@gmail.com on 29 Aug 2012 at 2:33

GoogleCodeExporter commented 9 years ago
Hi.

Is this issue still relevant? Could you check the version number of your 
notification daemon (notify-osd, notification-daemon, xfce4-notifyd, 
gnome-shell, ....).
Batti is using the basic DBUS interface of that daemon to send notifications.

Original comment by arthapex on 14 Oct 2012 at 6:37