Issue 118219

Summary: Writer crashes without notice on large search/replace
Product: Writer Reporter: emerald000
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P2 CC: alamm2010, beejal.shah, issues, tyler.litman
Version: OOO320m19   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Example file none

Description emerald000 2011-06-27 13:28:46 UTC
Created attachment 76640 [details]
Example file

I am using Writer from the repositories version: 

OpenOffice.org 3.2.1 
OOO320m19 (Build:9505)
ooo-build 3.2.1.4, Ubuntu package 1:3.2.1-7ubuntu1.1

on Ubuntu 11.04 Natty Narwhal.

I have attached a file where the problem occurs. The problem occurs when you are searching/replacing on that file. If you search for ", " and replace it with "\n" in order to have one word per line, Writer will stop responding. After around a minute or so, the process will simply disappear without notice.

If you remove most of the text (like keeping a page or two) and then apply that search/replace, it won't crash (but it will be unresponsive for a couple of seconds).

PS: This is my first time using this bug system, so please tell me if I did anything wrong or you need more information about this.
Comment 1 emerald000 2011-06-27 13:34:51 UTC
*** Issue 118220 has been marked as a duplicate of this issue. ***
Comment 2 Oliver-Rainer Wittmann 2012-06-13 12:17:33 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 3 beejal.shah 2012-09-23 00:16:26 UTC
Comment by Beejal Shah on September 22, 2012

I could replicate the bug on Windows configuration using Writer of OpenOffice.org 3.4.1 Build: 9593.

Here are the specific bug reproduction steps that cause the bug in which Writer crashes when the Find and Replace feature is used in large documents:
1.  Open the document attached in the original bug report in Writer.
2.  Click Edit in the upper menu bar and select Find & Replace.
3.  Enter "," in the text field labeled "Search for" and "\n" in the text field labeled "Replace with."
4.  Press Replace All.  The software will become unresponsive for a minute and then the error box titled "Runtime Error!" will show.
5.  Press the button labeled "OK" in the error box, and a new message box will appear with the message "OpenOffice.org 3.4.1 has stopped working."
6.  Press the button labeled "Close program" in the message box and the software will crash.

This bug will be important to customers because in large documents, if a frequently used word, phrase, or symbol must be replaced, without a functional Find & Replace feature, the replacement must be done by hand and can cost the user plenty of time.
Comment 4 Tyler Litman 2012-09-29 02:42:31 UTC
I was able to replicate the bug using Writer v.3.4.1 Build:9593 running on windows 7os on a mac bootcamp environment using these steps:
1.	Open the example document provided.
2.	Hit ctrl + f
3.	Typed “,” into the “Search for” textbox
4.	Typed “\n” into the “Replace with” textbox
5.	Clicked “Replace All”
6.	After about 45s, a runtime error appeared saying “This application has requested the Runtime to terminate it in an unusual way.” And writer closes.

This is likely an importanant issue to take care of as it is one feature I know I use frequently.  It is especially important for large documents where the user may have made a spelling mistake and does not want to replace each item individually.
Comment 5 Mahjabin Alam 2012-10-03 00:05:52 UTC
(In reply to comment #0)
> Created attachment 76640 [details]
> Example file
> 
> I am using Writer from the repositories version: 
> 
> OpenOffice.org 3.2.1 
> OOO320m19 (Build:9505)
> ooo-build 3.2.1.4, Ubuntu package 1:3.2.1-7ubuntu1.1
> 
> on Ubuntu 11.04 Natty Narwhal.
> 
> I have attached a file where the problem occurs. The problem occurs when you
> are searching/replacing on that file. If you search for ", " and replace it
> with "\n" in order to have one word per line, Writer will stop responding.
> After around a minute or so, the process will simply disappear without
> notice.
> 
> If you remove most of the text (like keeping a page or two) and then apply
> that search/replace, it won't crash (but it will be unresponsive for a
> couple of seconds).
> 
> PS: This is my first time using this bug system, so please tell me if I did
> anything wrong or you need more information about this.

Configuration:
Operating System: Windows 7 (Service pack 1)
Open Office version: OpenOffice.org 3.4.1 Build 9593
 
How I replicate it:

Test 1:
1. Open the original file.
2. Press ctrl +f.
3. In the "search for" field enter "," and In the "replace with" field enter "\n".
4. Click on the "Replace all" option.
5. It tried to reload the file for a while, and after a while the writer crashed.

Test 2:
1. Open OpenOffice.org Writer.
2. Randomly type something i.e. my name with "," as delimiter.
3. Copy and paste this text again and again to create a very large file.
4. Press ctrl +f.
5. In the "search for" field enter "," and In the "replace with" field enter "\n".
6. Click on the "Replace all" option.
7. Try to reload for a while and prompt me to force close the file.

However, if the file is not very large, it works properly. The file I created is pretty large and it didn't crash at all the attempts.
Comment 6 Mahjabin Alam 2012-10-03 00:06:30 UTC
Configuration:
Operating System: Windows 7 (Service pack 1)
Open Office version: OpenOffice.org 3.4.1 Build 9593
 
How I replicate it:

Test 1:
1. Open the original file.
2. Press ctrl +f.
3. In the "search for" field enter "," and In the "replace with" field enter "\n".
4. Click on the "Replace all" option.
5. It tried to reload the file for a while, and after a while the writer crashed.

Test 2:
1. Open OpenOffice.org Writer.
2. Randomly type something i.e. my name with "," as delimiter.
3. Copy and paste this text again and again to create a very large file.
4. Press ctrl +f.
5. In the "search for" field enter "," and In the "replace with" field enter "\n".
6. Click on the "Replace all" option.
7. Try to reload for a while and prompt me to force close the file.

However, if the file is not very large, it works properly. The file I created is pretty large and it didn't crash at all the attempts.
Comment 7 Edwin Sharp 2013-01-21 16:54:25 UTC
AOO not responding when trying to open the attached file.
Rev. 1372282 Win 7 64.
Comment 8 Edwin Sharp 2013-02-22 09:49:05 UTC
Managed to open (painfully slow) the file in Rev. 1400866 but when find and replace the OOo-dev crashes.
Comment 9 Marcus 2017-05-20 11:29:33 UTC
Reset assigne to the default "issues@openoffice.apache.org".