tracker_get_hit_counts: assertion `query->words' failed

Bug #155700 reported by Tormod Volden
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tracker
Invalid
Low
tracker (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: tracker

When I start typing something in the Search field of the deskbar applet, these messages appear in .xsession-errors:

** (trackerd:19109): CRITICAL **: tracker_indexer_get_hits: assertion `query->words' failed

Revision history for this message
Bryan (brywilharris) wrote :

I am getting this error and tracker is not getting any hits. I can look at tracker-stats and the program is indexing: (see below) but even if I search for something it should find like "grub" nothing comes up.

-------fetching index stats---------

default : 0
Files : 2235
Folders : 355
Documents : 114
Images : 156
Music : 916
Videos : 40
Text : 270
Development : 146
Other : 238
Emails : 0
EvolutionEmails : 0
ThunderbirdEmails : 0
KMailEmails : 0
EmailAttachments : 0
EvolutionAttachments : 0
KMailAttachments : 0
Conversations : 0
GaimConversations : 0
Applications : 648
------------------------------------

Revision history for this message
Bryan (brywilharris) wrote :

I take that back it is indexing. I restarted the tracker daemon with the "trackerd -R" command. I do get this error message, but it seems to be working.

Revision history for this message
Conrad Knauer (atheoi) wrote :

I had a similar error that caused the "Bug Buddy" to pop up and ask me to send my data to Gnome:

http://bugzilla.gnome.org/show_bug.cgi?id=489094

** (trackerd:5479): CRITICAL **: tracker_indexer_get_hits: assertion
`query->words' failed

But they market it as a duplicate of http://bugzilla.gnome.org/show_bug.cgi?id=474131

** (trackerd:6248): CRITICAL **: scan_directory: assertion
`tracker_is_directory (uri)' failed

and they noted that:

"it's from tracker returning a file that does not exist anymore. It's
fixed in 2.20.1"

so the fix is ready upstream...

Changed in tracker:
status: New → Confirmed
Conrad Knauer (atheoi)
description: updated
Revision history for this message
Tormod Volden (tormodvolden) wrote : Re: trackerd [...] CRITICAL [...] assertion [...] failed

Conrad, I think your crash was not caused by the "tracker_indexer_get_hits: assertion`query->words' failed" message. I get the message after typing one letter in the search box, and no crash. I would have preferred if you left my description as is, and rather filed a new bug which we could have duped or unduped.

What do they mean by "in 2.20.1"? My tracker is 0.6.3-0ubuntu3, and I already have some gnome 2.20.1 packages.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I usually get 10 repetitions of the message for each letter I type.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Ok, I think I understand the versions they were talking about: I have deskbar-applet 2.20.0-0ubuntu2 only.

Revision history for this message
Conrad Knauer (atheoi) wrote :

Did you want me to still file my bug description as a separate bug?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Well, I hope both issues are solved in deskbar-applet 2.20.1 :) But I think this is a tracker problem. I had a closer look with gdb:

When I type a letter, it get down as "search_string" to tracker_db_search_text():
        array = tracker_parse_text_into_array (search_string);
The returned array is empty*, so when "query" is built up with
        for (pstr = array; *pstr; pstr++) {
                tracker_add_query_word (query, *pstr, WordNormal);
query->words will be empty and calling tracker_indexer_get_hits(query) will complain.

*) Inside tracker_parse_text_into_array(), tracker_parse_text_to_string() with one letter just returns a space:
 tracker_parse_text_to_string("d",1,0) -> " "
It seems like strings of 1 or 2 characters are stripped away.

I can just tell what's happening, I don't know if this is intended behaviour.

Revision history for this message
Jamie McCracken (jamiemcc-blueyonder) wrote :

minimum search word length is 3 by default

Revision history for this message
Tormod Volden (tormodvolden) wrote :

So I guess is shouldn't check for hits before I have typed 3 letters then?

Revision history for this message
Conrad Knauer (atheoi) wrote :

Based on your filing of a separate Gnome bug, I'm going to split off my bug report into its own and revert the description.

Revision history for this message
Conrad Knauer (atheoi) wrote :

If its not the same bug, this one isn't confirmed...

description: updated
Changed in tracker:
status: Confirmed → New
Revision history for this message
Conrad Knauer (atheoi) wrote :

Mine is now Bug #156358 BTW...

Changed in tracker:
status: Unknown → New
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in tracker:
status: New → Incomplete
Revision history for this message
Tormod Volden (tormodvolden) wrote :

No, there's nothing in .xsession-errors now. BTW, the Deskbar applet is not in the panel by default any longer.

Revision history for this message
Akdo (menoft) wrote :

I'm on ubuntu intrepid and this bug appear when I make a research with one letter ! Obviously GUI is not able to display results and trackerd crashes because GUI has a short respond time window, but trackerd is still searching all case with this letter ( and use huge processor works ).

For example I make one research with "a" case ( same results with other letters )

$trackerd -f

Tracker version 0.6.6 Copyright (c) 2005-2007 by Jamie McCracken (<email address hidden>)

This program is free software and comes without any warranty.
It is licensed under version 2 or later of the General Public License which can be viewed at http://www.gnu.org/licenses/gpl.txt

Initialising tracker...
starting HAL detection for ac adaptors...found /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ACAD
Throttle level is 99

** (trackerd:12325): CRITICAL **: tracker_get_hit_counts: assertion `query->words' failed

And tracker still searching !

GUI ask "Did you mean" but proposal !

I'm waiting.... I'm waiting.... I'm waiting, but not proposal.

Trackerd have to stop proposal feature if submitted case are too short for avoid this bug !

Revision history for this message
Akdo (menoft) wrote :

More precision on this bug

Changed in tracker:
assignee: nobody → boss-bosseur
status: Incomplete → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Do not assign bugs to yourself unless you have the intention to fix the bug.

Changed in tracker:
assignee: boss-bosseur → nobody
Revision history for this message
Akdo (menoft) wrote :

oh sorry !

Changed in tracker:
status: New → Invalid
Changed in tracker:
importance: Unknown → Low
status: Invalid → Unknown
Changed in tracker:
status: Unknown → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.