Bug 165861 - Strange behavior when Recording Changes and Undoing
Summary: Strange behavior when Recording Changes and Undoing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2025-03-22 11:55 UTC by madhavkiran.sodum
Modified: 2025-03-31 14:05 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
sample (11.01 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-03-22 11:55 UTC, madhavkiran.sodum
Details
this what it looks like in LO when the style is changed (140.84 KB, image/png)
2025-03-24 06:05 UTC, madhavkiran.sodum
Details
And this is what Undo does (141.13 KB, image/png)
2025-03-24 06:05 UTC, madhavkiran.sodum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description madhavkiran.sodum 2025-03-22 11:55:09 UTC
Created attachment 199950 [details]
sample

LO is showing strange behavior in the attached document with Changes being recorded.

Steps:
1. Ensure that "Images and Charts" is unchecked under "View"
2. Ensure that "Record Changes" is on
3. Select the text in first line and use the Formatting Bar to change the style to "Heading 1".

Behavior expected: The text just turns to "Heading 1" style.

Actual behavior: The text is inserted in a frame and now the becomes invisible.

Follow-up steps:
4. Check "Images and Charts"
5. Press Ctrl+Z to Undo

Behavior expected: The text returns to "Default paragraph style"

Actual behavior: The text returns to "Default paragraph style" with the last character shifted (at least it is highlighted in green).

Undoing further removes the last characters one by one.
Comment 1 Mateusz Wlazłowski 2025-03-22 14:50:31 UTC
I could not reproduce in

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 2 m_a_riosv 2025-03-22 15:15:02 UTC
I can not reproduce
Version: 25.2.2.1 (X86_64) / LibreOffice Community
Build ID: 38d746d66d9b82fa248a2e90142b9dd3ddd1d6cd
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Please test in safe mode, Menu/Help/Restart in Safe Mode

Please paste here the information on Menu/Help/About LibreOffice (There is an icon to copy)
Comment 3 madhavkiran.sodum 2025-03-24 06:05:07 UTC
Created attachment 199990 [details]
this what it looks like in LO when the style is changed

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 8; 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

What i additionally noticed is that this bug did not show when i had opened only this file yesterday. But today it again repeats.
Comment 4 madhavkiran.sodum 2025-03-24 06:05:35 UTC
Created attachment 199991 [details]
And this is what Undo does
Comment 5 Juan Q. 2025-03-25 04:02:06 UTC
I can not reproduce using 

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1d8ff7bd62249ad0f825eaca18ea524d9d7c6c2e
CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile (<https://wiki.documentfoundation.org/UserProfile>) and
re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 6 madhavkiran.sodum 2025-03-25 08:26:26 UTC
(In reply to Juan Q. from comment #5)
> I can not reproduce using 
> 
> Version: 25.2.1.2 (X86_64) / LibreOffice Community
> Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
> CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render:
> Skia/Vulkan; VCL: win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded
> 
> Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: 1d8ff7bd62249ad0f825eaca18ea524d9d7c6c2e
> CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render:
> Skia/Vulkan; VCL: win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded
> 
> To be certain the reported issue is not
> related to corruption in the user profile, could you please reset your
> Libreoffice profile (<https://wiki.documentfoundation.org/UserProfile>) and
> re-test?
> 
> I have set the bug's status to 'NEEDINFO'. Please change it back to
> 'UNCONFIRMED' if the issue is still present

I reset the profile and the issue is still present.
Comment 7 raal 2025-03-26 17:32:05 UTC
I can confirm with Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2dd493c86e532eea636b1ca8aed35fb1214eb750
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

but not in Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.9
Calc: threaded
Comment 8 raal 2025-03-26 17:43:13 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-25.2.
Adding Cc: to Oliver Specht ; Could you possibly take a look at this one?
Thanks
 67c17fd8e32bfd961505ee03cad92e50b1007360 is the first bad commit
commit 67c17fd8e32bfd961505ee03cad92e50b1007360
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Mon Dec 2 07:55:23 2024 +0100

    source ef4452663d13d0d559356440e71e97a6c282b1ff

171905: tdf#161341 show/hide controls/shapes/pictures in view/print | https://gerrit.libreoffice.org/c/core/+/171905