about providers shutdown

Emanuele Leomanni emanuele183 at gmail.com
Thu Apr 17 04:44:39 PDT 2008


I will try to explain better:
   when I run my application for the first time it will start geoclue-gpsd
provider automatically. Then everything is ok, I can use my application
properly.
When I close my program I have noticed that geoclue-gpsd remains alive (as
expected).
Then, if I try to restart my application again I have this problem:

Using provider 'Gpsd'
Error getting position: Did not receive a reply. Possible causes include:
the remote application did not send a reply, the message bus security policy
blocked the reply, the reply timeout expired, or the network connection was
broken.

But, if I kill geoclue-gpsd and I restart my application everything is ok.

On Thu, Apr 17, 2008 at 1:12 PM, Jussi Kukkonen <jhkukkon at cc.hut.fi> wrote:

> Emanuele Leomanni wrote:
> > I have seen that when I run my application developed using geoclue API
> all
> > providers needed are executed automatically.
>
> The automatic shutdown didn't really work as intended (see my status
> update post couple of days ago): I'm currently working on this on
> "refcount" git branch, will post a mail about it soon.
>
> Still, I don't understand this:
>
> > If I kill my application the provider is still alive and I am not able
> > to run the application again.
> > It seems as if the provider is not able to shutdown.
> > There is a solution for this without killing every time the provider
> > by hand?
>
> You should never have to kill or start providers by hand... and a
> provider does not really "need" to shut down, that's just something I've
> added to keep memory usage down -- it should be able the respond to
> multiple clients. As a matter of fact there could be NO_AUTO_SHUTDOWN
> option (either compile- or run-time) if that's wanted.
>
> Are you sure the dbus autostart works? In other word, you're not
> starting the provider by hand in the first place?
>
> Jussi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/geoclue/attachments/20080417/32288615/attachment.html 


More information about the GeoClue mailing list