Bug 163891 - Crash when using Find & Replace w/ Format, then switching documents
Summary: Crash when using Find & Replace w/ Format, then switching documents
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, regression
Depends on:
Blocks: Find&Replace-Styles
  Show dependency treegraph
 
Reported: 2024-11-14 04:56 UTC by davijust213
Modified: 2024-11-16 11:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davijust213 2024-11-14 04:56:26 UTC
Description:
There's a bug when using the "Format" functionality of Find & Replace, switching documents, then trying to use Find & Replace again. For some reason, this causes LibreOffice to crash.

Steps to Reproduce:
1) Open two separate documents at once.
2) Open the Find & Replace dialog (Ctrl + H) in either document
3) In the F&R dialog, click "Format." In the Format dialog, set the "Style" field to "italic" and click Okay. The word "Italic" should appear under the "Find" field.
4) Close the dialog.
5) Close the document, and focus the other document.
6) Attempt to open the Find & Replace dialog again.

Actual Results:
The program should crash if these steps are followed.

Expected Results:
Very simply, this should not cause a crash.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
To prevent the crash:
3) Style" field to "italic" and click Okay.
3.1) Click the "No Format" button first, and then close the dialog.
4) Upon closing the document and opening the dialog again, the program should not crash.
Comment 1 Mike Kaganski 2024-11-14 06:44:34 UTC
Repro in master. Was file in 7.0.
Comment 2 Xisco Faulí 2024-11-14 09:00:56 UTC
I can't reproduce it in

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7a7ba9cbee91485a9254949d1594352b3629c070
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: x11
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 3 Mike Kaganski 2024-11-14 17:42:17 UTC
Regression after commit 2984dd49fb9fb2f8d3d56fba0db34a7b95666ce1.
Comment 4 Mike Kaganski 2024-11-14 17:49:32 UTC
I confirm that it's not reproducible using Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 24; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (C.UTF-8); UI: en-US
Ubuntu package version: 4:24.8.1-0ubuntu0.22.04.1~lo1
Calc: threaded

Also no repro using Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 24; OS: Linux 5.15; UI render: default; VCL: x11
Locale: en-US (C.UTF-8); UI: en-US
Ubuntu package version: 4:24.8.1-0ubuntu0.22.04.1~lo1
Calc: threaded

But repro using Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
CPU threads: 24; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

So => Windows only.