Bug 135225 - layout glitch in gigantic paragraph: text wraps through image set to optimal wrap b/c another image anchored to follow page
Summary: layout glitch in gigantic paragraph: text wraps through image set to optimal ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: lowest normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
: 147155 (view as bug list)
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-07-28 11:55 UTC by Telesto
Modified: 2023-04-19 12:27 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (977.14 KB, application/vnd.oasis.opendocument.text)
2020-07-28 15:49 UTC, Telesto
Details
Example file 2 (only slow loading. no wrap issue) (975.45 KB, application/vnd.oasis.opendocument.text)
2020-07-30 19:22 UTC, Telesto
Details
How the document looks before the commit (180.49 KB, image/png)
2021-04-14 19:11 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-28 11:55:49 UTC
Description:
Image before text on file open

Steps to Reproduce:
1. open the attached file


Actual Results:
Image before text on file open (no wrap)

Expected Results:
Wrap


Reproducible: Always


User Profile Reset: No



Additional Info:
Repro with
Version: 7.1.0.0.alpha0+ (x64)
Build ID: <buildversion>
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 with
6.0

and with
4.4.7.2

not with
4.3.7.2
Comment 1 Xisco Faulí 2020-07-28 15:23:24 UTC
No attached document
Comment 2 Telesto 2020-07-28 15:49:04 UTC
Created attachment 163704 [details]
Example file
Comment 3 Aron Budea 2020-07-30 00:06:10 UTC
Confirmed with 7.1.0.0.alpha0+ (abea0d6647c7f1f7e76c73c26cb80e6a67dc5111) / Ubuntu.

Bibisected to the following commit using repo bibisect-44max. It's the same result as for bug 133975.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=133d6d8d4dec497276c3a9b0ba6761cffd322f81
author		Oliver-Rainer Wittmann <orw@apache.org>	2014-07-15 12:15:37 +0000
committer	Caolán McNamara <caolanm@redhat.com>	2014-07-16 09:01:02 +0100

Resolves: #i121443# register text frames and graphics...
Comment 4 Telesto 2020-07-30 19:22:24 UTC
Created attachment 163792 [details]
Example file 2 (only slow loading. no wrap issue)
Comment 5 Telesto 2020-07-30 19:44:06 UTC
@Caolán
Any idea why this and bug 133975 is happening. You're not the author, but did commit this. 

As for bug 133975, I assume this commit only accelerating something. They empty page issue is certainly not new (Enough goes back to OoO days based on my reported bugs); but the commit isn't helping either
Comment 6 Caolán McNamara 2020-07-31 09:36:11 UTC
no idea, those are just merges of the AOO work when it was still an active project
Comment 7 Xisco Faulí 2021-04-14 19:11:52 UTC
Created attachment 171207 [details]
How the document looks before the commit
Comment 8 Xisco Faulí 2021-04-14 19:12:29 UTC
Still reproducible in

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: a199e4ea389c934d169a178433f4b94033e60f93
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 9 Xisco Faulí 2021-04-14 19:15:08 UTC Comment hidden (no-value)
Comment 10 Justin L 2023-03-27 23:16:53 UTC
This is an extremely fake example, where one paragraph takes up multiple pages, and images aren't anchored intelligently at all. So we get layout glitches.

It seems pointless to have this bug report existing. There is a LOT of layout churn just trying to get the algorithm to stabilize.
Comment 11 Justin L 2023-04-18 15:24:01 UTC
*** Bug 147155 has been marked as a duplicate of this bug. ***
Comment 12 Justin L 2023-04-19 12:27:43 UTC
https://gerrit.libreoffice.org/c/core/+/150637 is debug statements for related META bug 154703 comment 11's attachment 186670 [details] layout issues. Too many pathways for my brain to handle, and to much wrong on a grand scale - not just a minor wrong calculation but fundamental issues here. Fundamental issues on a fragile base is not somewhere I should be.