Freezes when searching for "lib"
Bug #634449 reported by
Austin Adams
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
Mohamed Amine Ilidrissi |
Bug Description
Binary package hint: software-center
Rather funny:
All other searches work fine, but if I search for "lib" in the Ubuntu Software Center 2.0.7 it locks up (in either "Installed Software" or "Get Software"); I have to "Force Quit" it. Installed packages starting with "lib" are also not showing up in "Installed Software" (specifically a package called "libticalcs2-7", which shows up in Synaptic Package Manager).
I'm using Ubuntu 10.04.1 on a Compaq Presario CQ60-419wm (Info about my hardware here: http://
Sorry if this bug is invalid or already mentioned.
Related branches
lp:~ilidrissi.amine/software-center/no-crash-when-searching
- Gary Lasker (community): Approve
Changed in software-center (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in software-center (Ubuntu): | |
milestone: | none → ubuntu-10.10 |
summary: |
- Searching for "lib" crashes Ubuntu Software Center + Freezes when searching for "lib" |
Changed in software-center (Ubuntu): | |
assignee: | nobody → Mohamed Amine IL Idrissi (ilidrissi.amine) |
To post a comment you must log in.
The problem is that the query parser can generate way too big querries, for lib its a 5000 entry long query. One possible fix is this, or we can limit it in appview.py and use the number there as a estimate for the amount of hits we probably get.
=== modified file 'softwarecenter /db/database. py' db/database. py 2010-08-20 13:06:38 +0000 db/database. py 2010-09-09 21:16:30 +0000
fuzzy_ query = self.xapian_ parser. parse_query( search_ term,
xapian. QueryParser. FLAG_PARTIAL|
xapian. QueryParser. FLAG_BOOLEAN) get_length( ) > 1000: parser. parse_query( QueryParser. FLAG_BOOLEAN)
fuzzy_ query = _add_category_ to_query( fuzzy_query) fuzzy_query]
--- softwarecenter/
+++ softwarecenter/
@@ -198,6 +198,12 @@
+ # if the query size goes out of hand, omit the FLAG_PARTIAL
+ # (LP: #634449)
+ if fuzzy_query.
+ fuzzy_query = self.xapian_
+ search_term, xapian.
+ # now add categories
return [pkg_query,