Bug 165447 - LibreOffice Writer hangs when using Find & Replace to find single-underlined text to then apply yellow highlighting
Summary: LibreOffice Writer hangs when using Find & Replace to find single-underlined ...
Status: RESOLVED DUPLICATE of bug 131431
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-26 03:16 UTC by christopherlum334
Modified: 2025-08-01 15:28 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot Find & Replace pop up window not responding (29.96 KB, image/jpeg)
2025-02-26 03:18 UTC, christopherlum334
Details
Sample MS Word doc for bug testing (13.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-26 22:01 UTC, christopherlum334
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christopherlum334 2025-02-26 03:16:41 UTC
Description:
When using Find and Replace to find all single-underlined text and then apply yellow highlighting, the application hangs.


Steps to Reproduce:
1. Start LibreOffice Writer > Enter a text string "TestTestTest" > highlight text string > in Ribbon, click on "underline"
2. Edit > Find & Replace 
3. Click on Find: entry field > Click on Attributes > Click Underline > Click OK
4. Click on Replace: entry field > Click on Format > Click on Highlighting > Click on Color > Click Yellow > Click OK
5.  Click on "Replace All"
6.  A pop-up window appears "To proceed with this action, you must first turn off the "undo" function.  Do you want to turn off the "undo" function?   Click "Yes"
7.  Cursor is now an "hourglass" icon and application hangs.

Actual Results:
Application hangs.  Cursor becomes an hourglass icon.  Find and Replace window title says "Find and Replace (Not Responding).  I click on a red X, and a pop up window "LibreOffice is not responding", asking if I want to close the program.

Expected Results:
All underlined text strings in the document are highlighted yellow.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
This does not happen when using Find and Replace to find bold or italicized text and then apply yellow highlighting.  Application does not hang.  The bold and italicized text is correctly highlighted in yellow.

I discovered this issue when attempting to record a macro that will automatically apply yellow highlighting to bold, italic, and underlined text within a document.
Comment 1 christopherlum334 2025-02-26 03:18:52 UTC
Created attachment 199452 [details]
Screenshot Find & Replace pop up window not responding
Comment 2 Bogaboga Man 2025-02-26 07:24:17 UTC
Step 6:

A pop-up window appears "To proceed with this action, you must first turn off the "undo" function.  Do you want to turn off the "undo" function?   Click "Yes"


Did not appear for me! Therefore I could not reproduce.

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-GB
Calc: CL threaded
Comment 3 mikhail.machine 2025-02-26 07:51:22 UTC
Hello,

I can't confirm that the bug is present in master.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a8ec21adf255b70bb6eeb0a1717190df303d8b26
CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 4 christopherlum334 2025-02-26 22:00:03 UTC
I'm an idiot.  I messed up on the "steps to reproduce".   This issue does NOT occur if I create a LibreOffice Writer document containing single-underlined text.

Instead, this issue occurred when I opened a .docx file previously created with MS Word (Microsoft® Word 2021 MSO (Version 2501 Build 16.0.18429.20132) 64-bit).  This MS Word document contained single-underlined text.  

Therefore, Step 1 should instead read, "Use LibreOffice to open an MS Word document containing text strings that are underlined with a single underline"

Then continue with Steps 2-7
Comment 5 christopherlum334 2025-02-26 22:01:31 UTC
Created attachment 199481 [details]
Sample MS Word doc for bug testing

MS Word file contained text in bold, italics and underline.
Comment 6 christopherlum334 2025-02-26 22:02:16 UTC
I've uploaded an MS Word .docx file for use in reproducing this issue.
Comment 7 Jessica 2025-03-12 08:31:34 UTC
Hi,

I also can't reproduce the bug with the attached doc in 

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded
Comment 8 Mateusz Wlazłowski 2025-03-13 16:50:59 UTC
I was able to reproduce the bug with the attached docx file.

When asked "To proceed with this action, you must first turn off the "undo" function.  Do you want to turn off the "undo" function?"
If we answer "Yes", the cpu usage goes very high and writer is unresponsive
If we answer "No", a blue message appears with the message "Search key replaced 60000 times"

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 9 Mateusz Wlazłowski 2025-03-13 23:21:40 UTC
Actually, I was able to reproduce without the use of the .docx file.


Here are my updated steps to reproduce : 

1. Start LibreOffice Writer > Enter a text string "TestTestTest" > highlight text string > in Ribbon, click on "underline"
2. Deselect the text, make a new line (important)
3. Edit > Find & Replace 
4. (in case if the entry field has formats) Click on Find: entry field > No Format
5. Click on Find: entry field > Click on Attributes > Click Underline > Click OK
6. Click on Replace: entry field > Click on Format > Click on Highlighting > Click on Color > Click Yellow > Click OK
7.  Click on "Replace All"
8.  A pop-up window appears "To proceed with this action, you must first turn off the "undo" function.  Do you want to turn off the "undo" function?   Click "Yes"
9.  Writer is unresponsive, the cpu core usage is at around 100%.

When pressing "No" to the previous dialog, it will display "Search key replaced 60000 times"

Tested on the master branch

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 477138a0570589e8dcecdbfe104a055f432638ce
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded
Comment 10 Mateusz Wlazłowski 2025-04-28 17:04:56 UTC
*** Bug 166278 has been marked as a duplicate of this bug. ***
Comment 11 Mateusz Wlazłowski 2025-08-01 15:28:11 UTC

*** This bug has been marked as a duplicate of bug 131431 ***