Apache OpenOffice (AOO) Bugzilla – Issue 41178
hangs when backwards similarity search is made
Last modified: 2017-05-20 11:25:41 UTC
this is reproducible both in 1.1.4 and 1.9m69. it hangs oo.org, so i file this against stable branch. create a new writer document. input "; (quote, semicolon) press enter. press ctrl+f, select 'backwards' and 'similarity search', enter "darb" (without quotes) into 'find' field. press find. hangs.
reassigned to SBA.
Cannot reproduce this issue in 1.9.71.1/Debian (system does not hang, and does perform the search). (Quick check: did reproduce in 1.1.2 on the same system.)
Forgot adding self to cc.
umm, i can still reproduce this in m71s1 (exactly the same as in m69), so i'll reopen it. i'll test this in future builds and submit my results. btw, isn't hanging important enough to get this also in 1.1 branch (of course, only if the reason/impact turns out to be broader - if it's only this marginal case, it is not probably not important enough)
I have tried it with OOo-1.9.74 under SuSE 9.1. I can search forwards and backwards , no delay, no hanging, no problem here ... ;) Which distribution are you using?
still reproducible with 1.9m74 i'm using slackware (it's almost-current, only latest updates are missing)
Ben Collingsworth, 01/31/05 Configuration: Windows XP, OpenOffice.org 1.9.74 I can reproduce this problem. I have the following information to add: 1) The hang will occur if the document text contains the ["] (ASCII 34) character followed immediately by any printable punctuation or symbol character. The hang will not occur if the ["] is followed by an upper or lower case alphabet character, or the numbers 0-9. Note that punctuation and symbol characters are not contiguous in the ASCII table. 2) The search string can be any string >= 4 characters in length.
This was replicated using OOo1.1.2 and OOo1.1.4 on Windows XP, Intel Pentium 4. The problem seems to be in searching as a whole. Even testing for words that are present will return wrong results. Further testing shows that similarity search can’t even find “parts†of a word. Note that OO does not hang if only similarity search or only backward search is selected. I agree with Collingsworth that if " is followed by a symbol or punctuation marks it hangs, letters do not seem to cause this problem. The following test cases will clarify further: Case A: 1. Start a new document and insert the text (“;) without the parenthesis. 2. Press ctrl + F to open the search utility. 3. Select similarity search and backward search. 4. In the find field, insert a double quotation (“), OO will highlight the semicolon instead. Case B: 1. Start a new document and insert the text (Hello man “â€.) without the parenthesis. 2. Press ctrl + F to open the search utility. 3. Select similarity search and backward search. 4. In the find field, insert the word Dad, OO will highlight the period, then the quotes then the word man and will then prompt that there are no more matches. 5. Insert the word He in the search field, it will do the same thing and will not find the match in the word (Hello). Case C: 1. Start a new document and insert the text (Hello man) without the parenthesis. 2. Press ctrl + F to open the search utility. 3. In the find field, insert the word Dad, and in the replace field, insert the word Mom. 4. Press replace, OO will prompt if you want to search at the end. Press Yes. OO will prompt you that there is no keys found but will still replace the word man with Mom. Case D: 1. Start a new document and insert the text (Hello man. Hello woman. Hello all) without the parenthesis. 2. Press ctrl + F to open the search utility. 3. In the find field, insert the word Hello and press Find. OO will highlight the word all, then will correctly find only the Hello’s. 4. Insert instead the sentence (Hi man. Hi woman. Hi all.) and search for Hi. OO will highlight the period, followed by the word all, then Hi and then woman etc. Search for Hello will return the word all. There doesn’t seem to be a logical pattern to the search results, it seems to be random.
I have been able to reproduce the bug by varying the configuration used. The bug was replicated using Windows 2000 Professional 5.00.2195 on a Pentium 4 1.5 Ghz machine while sticking with the same version of OO ( Ooo1.1.4). I have gone through the original set of replication steps and noticed the hanging problem. In the above comments, bcolling, while testing on a machine with Windows XP observed that the hanging problem occurs when the document text contains [“] followed by any punctuation or symbol character and spouh_r observed the same effect while testing on his/her machine with Windows XP as well. However, under Windows 2000 I noticed that this was not the case for all punctuations and symbols. For some odd reason, when the document text contains a [“] followed by any one of the following punctuations and symbols: . (period) ~ $ ^ + = < > there is NO hanging effect. On my Windows 2k O/S the search string that is to be entered in the 'Search for' field could be any seqeunce of alpha-numeric symbols that is at least 4 characters long, similar to what bcolling experienced and 'similarity search' and 'backwards' must be checked off (as spouh_r mentioned) in order to reproduce this bug. Thus, the bug (hanging effect) is reproducible under Windows 2k if the same set of replication steps is followed and suffers from some of the same setbacks that those who've tested with Windows XP have experienced.
about the post of spouh_r similarity search is made for words not for single characters , it will be to much of an efford to give this routine more intelligence. if you play with the settings of the similarity search you will see that the results are different. You have to search for the right settings for a similarity search to get best results. searching a 2 letter word with the default settings will find nearly everything. example he settings: add two letters XXhe or heXX, remove two letters X XX, exchange two letters XX he find all from "." over "the" to "herd" even man where it exchanged two letters h and e add one letter and you be able to find "man" instead of "he"
i confirmed the hanging problem in any build between OOo1.1.2 and scr680_m77 (i nedded a 5 letter word for the "search for" field in the m77 build) because this just occurs in this single circumstance backward search + similarity search + punktuation marks after a double quote, i lower the priority to P4 set target OOo Later set OS to all set Version to 680m77 reassigned to os to reproduce -open new document -type dt + F3 in the english version -enter some double quotes around a word followed by an ";" -open find&replace enter a search word (f.e. herby) -enable backwards and similaritiy search -click on find all -> loop
target
Reset assigne to the default "issues@openoffice.apache.org".