Bug 163693 - CRASH of LO by certain steps with Comments and TrackChanges
Summary: CRASH of LO by certain steps with Comments and TrackChanges
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2024-10-30 18:15 UTC by Orwel
Modified: 2025-01-07 15:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (17.42 KB, application/vnd.oasis.opendocument.text)
2024-10-30 18:15 UTC, Orwel
Details
Capture of screen (18.07 MB, video/avi)
2024-11-26 21:48 UTC, Orwel
Details
shortcut keys (2.78 KB, application/zip)
2024-11-27 09:51 UTC, Orwel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Orwel 2024-10-30 18:15:13 UTC
Description:
If you work with comments and track changes, LO crash.

Steps to Reproduce:
1. Open attached document. Make sure TrackChanges is turned on.
2. Delete comment (by menu of the comment - small arrow - Delete comment).
3. Undo last action
4. Turn off TrackChanges
5. Delete comment (same way as step 2)
Sometimes LO crashes here, if not, continue
6. Undo last action
7. Turn on TrackChanges
8. Repeat steps 2 - 5
Here LO crashes everythime in my environment.

Actual Results:
LO crashes.

Expected Results:
should not crash.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I firstly notice such behaviour on LO 24.2.5 (before I was on 7.6 and there was no such problem, I use LO in the same way for many years). The bug is present on 24.8.3.1 also, I have tested it with Separate Installation GUI and also with clear profile.
Comment 1 Orwel 2024-10-30 18:15:42 UTC
Created attachment 197309 [details]
test file
Comment 2 raal 2024-10-30 22:58:01 UTC
No repro with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b0195d40f3abc343b88f767f4fe109a9c1d44347
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 3 mkt 2024-11-26 05:27:14 UTC
Hi Orwel,

I could not reproduce this issue in both 24.8.2.1 and 25.2.0.0. I have cycled through steps 2 to 5 multiple times.

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 2; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ce4ae4f082d8fe80da242836c57d55a456eac5e0
CPU threads: 2; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 4 Orwel 2024-11-26 21:48:09 UTC
Created attachment 197814 [details]
Capture of screen
Comment 5 Orwel 2024-11-26 21:51:06 UTC
Thank you for your attention to this issue. 
I have done some more research and found that you need to repeat the steps very quickly. If you do it slowly, nothing happens. The crash occurs when you press the little arrow on the bottom right of the comment right after you have performed an Undo action (best done with CTRL+Z) or Accept/Reject change action (also by shortcuts, in my case CTRL+A / CTRL+R). If you wait too long (we're talking about difference of miliseconds here)  and upper the small arrow I speak about the "Active this button to open a list..." appears, it is too late. But if you work quickly, the crash occurs (see new attachement). As mentioned the same happens if you use the shortcut for accepting/rejecting changes and quickly press the arrow in the comment.
Comment 7 mkt 2024-11-27 05:09:27 UTC
Hi Orwel,

I watched your video and tried many times with ctrl+z/ctrl+a/ctrl+r then quickly followed by clicking the small arrow right after, and it did not happen.

When I pressed ctrl+r, the text became aligned right.

I am testing with version 24.8.2.1. Do you think you can make it happen again with our newest version? Please download our newest version below.

https://www.libreoffice.org/download/download-libreoffice/

Kindly let us know.
Comment 8 Orwel 2024-11-27 09:41:46 UTC
Thank you, I remember this problem occurs in my environment with the version 24.2. 
I do not know why this happens in my environment and not yours, but I am pretty sure, this was not an issue in 7.6.5 - I have tested it today one more time with old version 7.6.5 (using the same user profile). In 7.6.5 (same file, same profile) I do not face the crash. 
In versions 24.2 and above, I do.
Now I am on:
Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
under Win10. Java: (build 1.8.0_431-b10)
Here is a crash report:
https://crashreport.libreoffice.org/stats/crash_details/8633826b-baf4-4147-b095-630b3afa2dad

I face the problem much more often (better to say always), if you enter a new comment. So maybe you can try these steps: 

1. Open attached document. Make sure Track Changes is turned on.
2. Insert a new comment, write some text into it. 
3. Go back to document itself and keep on writing (maybe some text with Track changes on and some with of, end with track changes on).
4. Use some commands with shortcuts (Undo last action, accept change, Reject change). Shortcuts are important, as doing it through the menu does not force LO to crash.
5. After step 4 quickly press small arrow button on comment. If needed, repeat steps 3-5.
To be sure about step 5 - I have tested in the way I double-click some word, move the cursor close to the comment, press shortcut (Accept, Reject, Undo) and press the small arrow.

I'm afraid I can't give more details. :-(
Comment 9 Orwel 2024-11-27 09:51:00 UTC
Last thing I can mention: 
I have rearranged shortcuts (not default values), so I have:
CTRL+Z = Undo last action
CTRL+A = accept change
CTRL+R = reject change,
maybe this must be also done? 
I upload the .cfg file for my shortcut keys.
Comment 10 Orwel 2024-11-27 09:51:18 UTC
Created attachment 197822 [details]
shortcut keys