Re: Trouble with udisks-daemon caused by solid

2011-08-02 Thread Andreas Roth
On Thursday 28 July 2011 07:45:45 Kevin Ottens wrote:
 
 OK, that is more problematic now. Forwarding to the relevant list.
 

To which list did you forward the issue?

Andreas


Re: Trouble with udisks-daemon caused by solid

2011-07-27 Thread Kevin Ottens
On Tuesday 26 July 2011 19:48:06 Andreas Roth wrote:
 With the help of the amarok developers is found the piece of code, which
 triggers this issue. In amarok/src/MediaDeviceCache.cpp, function
 MediaDeviceCache::slotTimeout() calls Solid::Device::listFromType, which
 does some dbus/udisks magic and this causes the trouble. I haven't gone
 into the solid code to check what might be wrong there.

Well, I guess the real question is why does Amarok poll in the first place?
libsolid is doing what it's supposed to do: if you query a list is asks the
system for it (in that case udisks). So obviously if you constantly ask the
system you get the system component always eating CPU.

I would advise against having this kind of libsolid call triggered by a timer.
libsolid provides the necessary signals to let you know when a new device
appeared or disappeared.

Regards.
--
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud patron of KDE, http://www.kdab.com


signature.asc
Description: This is a digitally signed message part.


Re: Trouble with udisks-daemon caused by solid

2011-07-27 Thread Kevin Ottens
On Wednesday 27 July 2011 17:04:37 Andreas Roth wrote:
 On 2011-07-27 10:34, Kevin Ottens wrote:
  On Tuesday 26 July 2011 19:48:06 Andreas Roth wrote:
  With the help of the amarok developers is found the piece of code,
  which
  triggers this issue. In amarok/src/MediaDeviceCache.cpp, function
  MediaDeviceCache::slotTimeout() calls Solid::Device::listFromType,
  which
  does some dbus/udisks magic and this causes the trouble. I haven't
  gone
  into the solid code to check what might be wrong there.
 
  Well, I guess the real question is why does Amarok poll in the first
  place? libsolid is doing what it's supposed to do: if you query a list
  is asks the system for it (in that case udisks). So obviously if you
  constantly ask the system you get the system component always eating
  CPU.

 I don't know, but this you have to ask the amarok developers.

 But one problem still remains:
 udisks-daemon complains about a invalid command/messages. It returns the
 error

 //org.freedesktop.DBus.Error.UnknownMethod:///Method \GetAll\ with
 signature \\ on interface//\org.freedesktop.DBus.Properties\ doesn't
 exist

 Any ideas on this one?

OK, that is more problematic now. Forwarding to the relevant list.

Thanks.
--
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud patron of KDE, http://www.kdab.com


signature.asc
Description: This is a digitally signed message part.