Apache OpenOffice (AOO) Bugzilla – Issue 115528
Freeze on simple Find/Replace involving formatting
Last modified: 2017-05-20 10:31:01 UTC
1. Create a new Writer Document. 2. Change the current font size to 14 and write "Aaa Bbb Ccc", then Enter. 3. Double-click on "Bbb", change its font size to 18. 4. Place the cursor at the beginning of document, before "Aaa". [ I'll shortly attach a file with steps 1-4 already done ] 5. Edit - Find & Replace - enable "More Options". 6. Click in the "Search for" field, leave it empty, Format - Font - Size - 14. 7. Click in the "Replace" field, leave it empty, Format - Font - Size - 24. 8. Click the "Replace All" button. Expected: text having size 14 is changed to size 24. Actual result: OOo freezes. It actually asks whether to disable the Undo function or not, answering No leads to the message "Replaced 60.000 times" while answering Yes causes a freeze, with OOo entering a seemingly infinite loop. [Found during Italian QA tests; the simplified example is due to Renzo Bianchi]
Created attachment 74412 [details] Executing the "Find and Replace" command from step 5 onwards causes a freeze
Adding me to CC
@SBA: please proceed.
SBA: Happens since OOo 3.0 at least, so not a "young" regression. SBA->MST: Please proceed, thx. In my opinion, issue 102333 "Search and replace Empty paragraphs ends in a loop" is worth to look at while dealing with this one. It looks quite similar and CMCs comment in that one should be "motivating" :-)
Reassigned to MST.
Setting target 3.4 as per http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=16393
note that there are actually 2 bugs: - searching forward can loop (as described by reporter) - searching backward can also loop to reproduce the latter, load the bugdoc, then insert a paragraph _before_ the first, then search&replace as described except additionally check the "Backwards" box.
fixed in CWS sw34bf04 http://hg.services.openoffice.org/hg/cws/sw34bf04/rev/24826d5f269e
Verified in CWS sw34bf04.