Re: [Tracker] strange bugs and test script
- From: Laurent Aguerreche <laurent aguerreche free fr>
- To: Samuel Cormier-Iijima <sciyoshi gmail com>
- Cc: Tracker List <tracker-list gnome org>
- Subject: Re: [Tracker] strange bugs and test script
- Date: Fri, 15 Sep 2006 21:05:40 +0200
Le vendredi 15 septembre 2006 Ã 14:56 -0400, Samuel Cormier-Iijima a
Ãcrit :
Yea, I thought the same thing, but it's declared with the same typo in
tracker-utils.[hc] :-)
Yes, but we can fix it. :-)
And "extern" is missing if I remember correctly (I fix it yesterday on
my code while I worked on email indexing).
On 9/15/06, Laurent Aguerreche <laurent aguerreche free fr> wrote:
Le vendredi 15 septembre 2006 Ã 18:21 +0100, Jamie McCracken a Ãcrit :
Samuel Cormier-Iijima wrote:
here's the python test script i was using to find bugs in tracker. it
starts sending random stuff at the end just to make sure tracker never
segfaults or anything. however, sometimes it doesn't even get that
far. it seems that tracker has some bugs with maybe a race condition
and dbus? for me, the client will stall at some random point in the
test, but tracker keeps on running (ie it's not sending a reply). you
guys should try this script and see if it works for you....
its failing on this line for me
metadata = ifacem.Get('Music', file, ['audio.artist', 'audio.title',
'audio.album'])
as it says "Entity with ID /home/jamie/music/Gustav Holst - Mars, the
Bringer of War.ogg not found in database" in log file
This would cause an exception in python and so halt the client (as its a
dbus error)
Fix should be to use "Files" instead of "Music" for the service
parameter in metadata get method (this is a bug in tracker_db_get_id in
tracker-db.c as its hardcoded to reject any service thats not "Files".)
patch welcome to fix tracker_db_get_id (and tracker_db_get_file_id)
I didn't take a look at tracker_db_get_file_id() but tracker_db_get_id()
uses "service_index_array" (there is a typo in sources...) and this
global variable isn't declared. So it is needed to add:
extern char *service_index_array[];
at the top of file tracker-db.c
jamie.
_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]