Bug 134197 - Inserting an heading at the first page will increase the page count with 1-10 pages
Summary: Inserting an heading at the first page will increase the page count with 1-10...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Anchor-and-Text-Wrap VCL-Scheduler Additional-Blank-Pages
  Show dependency treegraph
 
Reported: 2020-06-21 15:14 UTC by Telesto
Modified: 2022-07-14 08:57 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Example file (880.09 KB, application/vnd.oasis.opendocument.text)
2020-06-21 15:15 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-06-21 15:14:24 UTC
Description:
Inserting an heading at the first page will increase the page count with 1-10 pages

Steps to Reproduce:
1. Open the attached file
2. Select "Hello World" and change it to heading 1
3. Wait -> page count of 200 will change.. and/or update index (which could cause again a different page count


Actual Results:
Page count changes.. 

Expected Results:
No change at all..


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 43c60ce1ac7629a1462e927e6ff937469f58f743
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

and in
Version: 6.0.6.0.0+
Build ID: c30963b8b4bbbe42a24b97aafa161eff9d7ccdd4
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL

and in
Version: 5.2.5.0.0+
Build ID: a4d4fbeb623013f6377b30711ceedb38ea4b49f8
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:libreoffice-5-2, Time: 2016-12-24_14:43:55
Locale: nl-NL (nl_NL); Calc: group

and in
Version: 5.0.6.3
Build ID: 490fc03b25318460cfc54456516ea2519c11d1aa
Locale: en-US (nl_NL)

but not in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 1 Telesto 2020-06-21 15:15:35 UTC
Created attachment 162260 [details]
Example file
Comment 2 BogdanB 2020-06-21 20:19:19 UTC
Confirm it with
Version: 6.4.4.2
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US
Calc: threaded

200 before... 209 pages after...
Comment 3 Telesto 2020-07-03 10:38:50 UTC
Probably related to the idle loop (or in the same area)
Comment 4 Ahmad Haris 2020-07-04 12:28:35 UTC
Comfirmed with
Version: 6.4.5.2
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 4; OS: Mac OS X 10.15.4; UI render: default; VCL: osx; 
Locale: en-ID (en_ID.UTF-8); UI-Language: en-US
Calc: threaded

and

Version: 7.1.0.0.alpha0+
Build ID: 7dc3a20cab712ee987ea25a8f5728529521485b7
CPU threads: 4; OS: Mac OS X 10.15.4; UI render: default; VCL: osx
Locale: id-ID (en_ID.UTF-8); UI: en-US
Calc: threaded
Comment 5 Buovjaga 2020-07-04 12:53:49 UTC
Bibisected with Linux 50max. Had to do one skip due to crash.

Seems to be the timer/idle stuff.

https://git.libreoffice.org/core/+log/e6e8a060ecc6e4fd51cfe88e00d841d546ed5915..01f406bc28f53acc5a2734af637aa8074a5d1813

commit 891b689ba95b9e53609194ee2a1a2d3b8955843c
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Wed May 27 19:50:53 2015 +0800

    source-hash-01f406bc28f53acc5a2734af637aa8074a5d1813
    
    Bibisect: This commit covers the following source commit(s) which failed to 
    e6e8a060ecc6e4fd51cfe88e00d841d546ed5915
    a74efa665c8199899cd778900de686e2b8710fee
    d8305248f687ffa522b56955508d82d60ad5b8c6
    826143684d2697a8620373dce18fa5f24332d5cb
    49524c6dcf04b9dadef8d2b084cf26abcf70b8a9
    57656eb1fae5ae6c4d3b7542a385a93ff434e4e7
    256c5c3f28ef70b70d38e2e07dfca4baab654612
    4c3cea26b84cc70a67ff4eda99b842d8786a3628
    3f64e7c16a63fdc330e108cd74182c615d229bb6
    5bd1106c3758c8cb0c19b09799970440501fde02
    b380220bc1404ed5a9daa1a28f70696e84543f61
    0e10b34342bd7b94b69f2eac8c9b1df89a2725f3
    ddd4a787ebde1b47e5ddfbd5995e2a0fe6b22ee2
    2d95bc0510d43c11bb3bd03f590e24ba3d7ca30f
    00717355c2d10bacbae46941b82247d74fd89108
    8f9b0c869222e57f738bc25d51cc6364e3c6a65a
    f33d6800fbdc42aa75477e31be0bba5a4a5a52c1
    f384496d125255a94bfd5978e0cbe44d6d046adb
    d411dca1ea6bfccb7090d4ceab15119253cac5bf
    ff52f4e417eb4de5e85388a48a650429b1880762
    49439d4a67b06227e56a2855c856e3482323a28a
    b11dba5be288ca5aaed1403093033708f7091c42
    7e2a0df7e7b4551698d1d7172ef12ad1e0fd8826
    d851e1e3c29afd3315cc763144c6eb92fbef5054
    b6bb2e9315c9bc3338eaf066df40a969eb4774aa
    01f406bc28f53acc5a2734af637aa8074a5d1813

commit 18afb8632caa524fbc70ed5ce3808e23e5dad16f
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Wed May 27 19:51:03 2015 +0800

    source-hash-d05a64df34fd143670cb939b72abfb32d6b714c7
    
    commit d05a64df34fd143670cb939b72abfb32d6b714c7
    Author:     Tobias Madl <tobias.madl.dev@gmail.com>
    AuthorDate: Fri Mar 6 14:48:18 2015 +0100
    Commit:     Tobias Madl <tobias.madl.dev@gmail.com>
    CommitDate: Fri Mar 6 14:51:48 2015 +0100
    
        Timer/Idle: adapted inherited funktions
Comment 6 Telesto 2020-07-04 12:59:05 UTC Comment hidden (obsolete)
Comment 7 Telesto 2020-07-04 12:59:57 UTC
Sorry, should be bug 133975
Comment 8 Telesto 2020-07-04 14:14:48 UTC
@Jmux
To keep you in the loop. Timer + blank pages. Sound familiar, I think :-). Root cause could be bug 133975.
Comment 9 QA Administrators 2022-07-06 03:36:45 UTC Comment hidden (obsolete)
Comment 10 Gabor Kelemen (allotropia) 2022-07-14 08:57:20 UTC
Can't reproduce the page number change in 7.1 after

https://git.libreoffice.org/core/+/810f7e4e0b61ee7cb3a7d6a1b503782d7248a4b1

author	Michael Stahl <michael.stahl@allotropia.de>	Tue Apr 13 20:13:51 2021 +0200
committer	Thorsten Behrens <thorsten.behrens@allotropia.de>	Fri Apr 23 17:03:13 2021 +0200

sw: layout: if fly's anchor moves forward, move fly off SwPageFrame

200 pages became 202 after this commit. 

Then after:
https://git.libreoffice.org/core/+/8feac9601cfe35ee0966776bab15d122206f154e

author	Michael Stahl <michael.stahl@allotropia.de>	Thu Apr 22 13:43:07 2021 +0200
committer	Thorsten Behrens <thorsten.behrens@allotropia.de>	Fri Apr 23 17:04:27 2021 +0200

tdf#138518 sw: layout: avoid moving flys forward prematurely

The 200 pages become 201, this is still the case in fresh master:

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a4ab155ae15e9e6d4deb157634f8b86c87fcbde4
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

I can't spot where the change happens in the layout.