Bug 134653 - Undo produces different number of pages (large view/ lots of image anchored + footnotes) (steps in comment 4)
Summary: Undo produces different number of pages (large view/ lots of image anchored +...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2020-07-08 12:48 UTC by Telesto
Modified: 2022-11-02 07:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (925.69 KB, application/vnd.oasis.opendocument.text)
2020-07-08 12:48 UTC, Telesto
Details
Example file (866.46 KB, application/vnd.oasis.opendocument.text)
2020-11-01 16:10 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-08 12:48:06 UTC
Description:
Undo produces different number of pages (large view/ lots of image anchored)

Steps to Reproduce:
1. Open the attached file
2. Update index to get a proper page count
3. Go to the bottom
4. Select from bottom to +/- middle of the document
5. Press Backspace
6. Undo
7. Update index an check page count 

Actual Results:
Different page number from start (a different between versions)

Expected Results:
A little more stability would be nice


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: c48e4d795e37f23b71d647247590807ab9e52223
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-07-08 12:48:23 UTC
Created attachment 162800 [details]
Example file
Comment 2 Dieter 2020-11-01 11:17:52 UTC
I can't confirm it with

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

Document has always 595 pages
Comment 3 Telesto 2020-11-01 15:26:35 UTC
looks fine indeed
Version: 7.1.0.0.alpha1+ (x64)
Build ID: ec1f4d3253963ac16d638734ac70dde033e82154
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

Expect being pretty slow on the second update index step
Comment 4 Telesto 2020-11-01 16:10:05 UTC
Created attachment 166908 [details]
Example file

1. Retry (as I notice it again)
2. Open the attached file
3. Update index -> 74 pages will be 71 (looks OK)
4. CTRL+Z -> result 80 pages
5. Update Index 74 pages
Comment 5 Dieter 2020-11-01 17:21:53 UTC
(In reply to Telesto from comment #4)
> 1. Retry (as I notice it again)
> 2. Open the attached file
> 3. Update index -> 74 pages will be 71 (looks OK)
75 pags will be 71
> 4. CTRL+Z -> result 80 pages
result 79 pages
> 5. Update Index 74 pages
71 pages

So I confirm the behaviour, but I'm not sure, if this is a sufficient bug report. What causes the different number of pages?I don't have the tme for further investigations.

So I change status to NEW, but perhaps we can get a third opinion.

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded
Comment 6 Telesto 2020-11-01 17:55:37 UTC
I would go for randomly splitting footnotes, pushing images around (anchoring).. 
Somehow the result is different depending on they way things are done

And there is they lovely timing aspect.. so depends on how fast everything being processed and such.
Comment 7 Telesto 2020-11-01 18:05:31 UTC
Adding Michael Stahl
> So I confirm the behaviour, but I'm not sure, if this is a sufficient bug
> report. What causes the different number of pages?I don't have the tme for
> further investigations.
> 
> So I change status to NEW, but perhaps we can get a third opinion.

I'm betting on attempt to layout footnotes + timing factor at undo (or they layout cache)
Anyhow the exact steps can't be used in older versions (as undo is blocked for update index).

It's already broken 
Version: 6.4.0.0.beta1+ (x64)
Build ID: 20be5cd0bdc57d812bf34a2debfe48caa51de881
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: GL; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL

can't be reproduced with 6.3 and older because lacking undo steps
Version: 6.3.0.0.alpha0+
Build ID: da881f38c088c439f034e340bbbb4ca53e67389f
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 8 QA Administrators 2022-11-02 03:35:01 UTC Comment hidden (obsolete)
Comment 9 Dieter 2022-11-02 07:10:36 UTC
RESOLVED WORKSFORME with
Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

1. Open attachment 166908 [details]
2. Update index -> 75 pages will be 72
3. CTRL+Z -> result 75 pages
4. Update index -> again 72 pages