<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Text flow not correct after loading a large document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132212#c20">Comment # 20</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Text flow not correct after loading a large document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132212">bug 132212</a>
              from <span class="vcard"><a class="email" href="mailto:glogow@fbihome.de" title="Jan-Marek Glogowski <glogow@fbihome.de>"> <span class="fn">Jan-Marek Glogowski</span></a>
</span></b>
        <pre>(In reply to Telesto from <a href="show_bug.cgi?id=132212#c18">comment #18</a>)
<span class="quote">> @Jan-Marek. 

> Adding again.. this is related to timer/scheduler anyhow.</span >

Maybe, but more likely it's Writer's idle layouter to blame. It's probably not
a problem of the scheduler per-se.

<span class="quote">> * The bug doc has 366 pages after bunch of Timer/scheduler changes by Tobias
> Madl. Before 469/471
> * There are cases of text behind images.. which likely correlate with number
> of pages (however didn't notice the issue in some cases; or didn't look good
> enough for them)..</span >

So I opened the attached document. What I see is:

* Generally, on open, the TOC has the last entry as "Release information -
363".
* The TOC changes on TOC update (context menu -> "Update Index/Table").
* LO 4.4.7:
  * On open, LO claims the document has 467 pages
  * After TOC update: 371 pages; last TOC entry is "Release information - 366"
  * The layout will sometimes be updated by scrolling with PgUp / PgDn, if LO
detects a wrong layout
* LO 7.0 / master a few days old:
  * On open, the document instantly shows as 367 pages
  * After TOC update: still 367 pages; last TOC entry is "Release information -
362"

So we have 371 vs 367, which is IMHO still a lot, but currently I would just
claim bug fixes and better layout, eventually from changing to Harfbuzz test
rendering or our own fixes.

Some observation:
* A particular bad page here is 23. In 4.4 it just contains a single line here,
which moves to page 22 in 7.0.
* I also saw some overlapping image problems in 4.4, even after triggering the
TOC update. But generally they are hard to spot here.

So currently my conclusion is that 4.4 is more buggy then current master w.r.t
this document. The initial scheduler rewrite might even have fixed some stuff.
Actually I don't see a problem here with master.

Eventually related bug: there was <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - FILEOPEN DOCX Chart covers text often"
   href="show_bug.cgi?id=123257">bug 123257</a> / <a class="bz_bug_link 
          bz_status_VERIFIED  bz_closed"
   title="VERIFIED FIXED - Pasting image in a DOC(X) document shows it with wrong wrapping"
   href="show_bug.cgi?id=119748">bug 119748</a> / <a class="bz_bug_link 
          bz_status_VERIFIED  bz_closed"
   title="VERIFIED FIXED - FILEOPEN: DOCX: Incorrect textwrap around image"
   href="show_bug.cgi?id=131707">bug 131707</a>, which
is hopefully finally fixed in master since 2020-04-03, which originally looked
like a scheduler bug, but turned out to be a Writer layouter bug. The exact
triggering condition was indeed the flow setting of the images, which was
ignored in some obscure circumstances, I still don't fully understand. The
default setting in the code is flow-through, so that's why the bug manifested
(actually that is good, as these bugs would go unnoticed otherwise, I guess).

BTW: the fix is small, but since 6.4 is almost still and layout changes tend to
regress, no backport was done. 

P.S. it still might be a scheduler bug on Windows, since I've done all this on
Linux.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>