Re: [Tracker] Using Tracker for a Gnome-Shell-Extension



I don't know if this was the problem, but I figured out an alternative.
Instead of getting the SparqlConnection via new SparqlConnection(), I use SparqlConnection.get_direct().
This worked for me. But thank you for your suggestion.

Regards,
Martin 

> Date: Tue, 24 Apr 2012 19:36:47 +0100
> From: martyn lanedo com
> To: martin_ziel hotmail com
> CC: tracker-list gnome org
> Subject: Re: [Tracker] Using Tracker for a Gnome-Shell-Extension
>
> On 19/04/12 20:55, Martin Ziel wrote:
> > Hi,
>
> Hi,
>
> > I tried to create a simple gnome-shell extension to search for music via
> > the default gnome-shell search-mechanism.
> > Unfortunately, everytime I try to callt the SparqlConnection.query
> > method, my gnome-shell crashes with the following log:
> >
> > (gnome-settings-daemon:8883): GLib-GObject-CRITICAL **: g_object_unref:
> > assertion `G_IS_OBJECT (object)' failed
> > g_dbus_connection_real_closed: Remote peer vanished with error:
> > Underlying GIOStream returned 0 bytes on an async read
> > (g-io-error-quark, 0). Exiting.
> >
> >
> > The query is well formed, I can safely execute it via the tracker-sparql
> > app. Is this a known problem and how can I avoid it?
>
> IT sounds like you're destroying the SparqlConnection before you have
> finished using it. Any code to share here?
>
> --
> Regards,
> Martyn
>
> Founder and CEO of Lanedo GmbH.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]