Issue 115528 - Freeze on simple Find/Replace involving formatting
Summary: Freeze on simple Find/Replace involving formatting
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOO330m14
Hardware: Unknown All
: P2 Trivial (vote)
Target Milestone: 3.4.0
Assignee: mst.ooo
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 09:04 UTC by Andrea Pescetti
Modified: 2017-05-20 10:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Executing the "Find and Replace" command from step 5 onwards causes a freeze (8.05 KB, application/vnd.oasis.opendocument.text)
2010-11-11 09:07 UTC, Andrea Pescetti
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Andrea Pescetti 2010-11-11 09:04:38 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]
Comment 1 Andrea Pescetti 2010-11-11 09:07:37 UTC
Created attachment 74412 [details]
Executing the "Find and Replace" command from step 5 onwards causes a freeze
Comment 2 vitriol 2010-11-11 09:20:45 UTC
Adding me to CC
Comment 3 eric.savary 2010-11-11 09:56:08 UTC
@SBA: please proceed.
Comment 4 stefan.baltzer 2010-11-15 15:36:05 UTC
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" :-)
Comment 5 stefan.baltzer 2010-11-15 15:38:27 UTC
Reassigned to MST.
Comment 6 Andrea Pescetti 2011-02-19 20:35:17 UTC
Setting target 3.4 as per
http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=16393
Comment 7 mst.ooo 2011-03-01 14:54:35 UTC
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.
Comment 8 mst.ooo 2011-03-01 15:36:49 UTC
fixed in CWS sw34bf04
http://hg.services.openoffice.org/hg/cws/sw34bf04/rev/24826d5f269e
Comment 9 stefan.baltzer 2011-03-16 13:48:07 UTC
Verified in CWS sw34bf04.