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.
Created attachment 199452 [details] Screenshot Find & Replace pop up window not responding
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
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
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
Created attachment 199481 [details] Sample MS Word doc for bug testing MS Word file contained text in bold, italics and underline.
I've uploaded an MS Word .docx file for use in reproducing this issue.
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
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
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
*** Bug 166278 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 131431 ***