Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||hangs when backwards similarity search is made|
|Component:||code||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description richlv 2005-01-24 08:53:49 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.
Comment 1 michael.ruess 2005-01-24 09:47:14 UTC
reassigned to SBA.
Comment 2 askoning 2005-01-27 13:15:53 UTC
Cannot reproduce this issue in 18.104.22.168/Debian (system does not hang, and does perform the search). (Quick check: did reproduce in 1.1.2 on the same system.)
Comment 3 askoning 2005-01-27 13:19:43 UTC
Forgot adding self to cc.
Comment 4 richlv 2005-01-27 13:39:28 UTC
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)
Comment 5 thackert 2005-01-30 15:41:50 UTC
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?
Comment 6 richlv 2005-01-31 12:51:03 UTC
still reproducible with 1.9m74 i'm using slackware (it's almost-current, only latest updates are missing)
Comment 7 bcolling 2005-02-01 16:03:51 UTC
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.
Comment 8 spouh_r 2005-02-02 13:41:40 UTC
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.
Comment 9 hua_d 2005-02-03 22:58:54 UTC
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.
Comment 10 jack.warchold 2005-02-04 15:47:09 UTC
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"
Comment 11 jack.warchold 2005-02-04 16:11:14 UTC
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
Comment 12 jack.warchold 2005-02-04 16:17:22 UTC
Comment 13 Marcus 2017-05-20 11:24:59 UTC
Reset assigne to the default "firstname.lastname@example.org".