Apache OpenOffice (AOO) Bugzilla – Issue 50510
^$ freezes writer (Find & replace)
Last modified: 2013-08-07 14:38:26 UTC
I tried to remove all blank paragraphs from a writer document using find & replace with regular expressions (^$ in the find textbox, null in the replace textbox). Writer reports that it has done 256 replacements but, when I try to check if everything is all right, Writer freezes as soon as I get to a page where a substitution ought to have been made. Then, when OpenOffice tries to recover the document, crashrep.exe crashes when I attempt to send in a report.
Created attachment 27033 [details] Writer freezes after replacing blank paragraphs with ^$
Reassigned to SBA.
Created attachment 27098 [details] Small test file in which ^$ works just fine
Confirm the crashing behavior described by emav on his nt sample file when using 1.9m104. One additional detail: The bottom status bar for Writer indicated 'fault'. It also said I had 310 pages in the document; but there were only 269 when I loaded the document in the first place. This may be related to document size. I will submit a small test case I built in which the Find/Replace on ^$ works as desired.
The word 'fault', which was mentioned by jonathaneunice, seems to be the word 'Default' missing its first two letters.
Further testing of the ^$ RegEx on other documents caused no problems. Is it possible that the reported crashes are due to the history of the initially attached file (nt.odt)? It started as a MS Word document which was then consecutively transformed to the OpenOffice format versions 1.1 and 2.0.
bahaviour confirmed on an scr680_m118 build after replacing the empty paragraphs the document will be reformated. the page size grows from 269 to 480 and the office crashes reassigned to fme because this just happend with this single document i set the prio to 4
> after replacing the empty paragraphs the document > will be reformated. the page size grows from > 269 to 480 and the office crashes This seems to be related to bug 54640. Almost all changes that cause a complete repagination of documents of that size can crash OOo or (in almost all cases) take from 5 to 20 minutes for writer to finish repagination.
*** Issue 101125 has been marked as a duplicate of this issue. ***