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: [email protected]
> To: [email protected]
> CC: [email protected]
> 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.
                                          
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to