Bug 160549

Summary: large objects with complex header&footer may cause loop
Product: LibreOffice Reporter: Mike Kaganski <mikekaganski>
Component: WriterAssignee: Mike Kaganski <mikekaganski>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=76219
Whiteboard: target:24.8.0 target:24.2.3
Crash report or crash signature: Regression By:
Attachments: A large object not fitting the page, shifted down by an object in header
A large object not fitting the page, shifted down by an object in header

Description Mike Kaganski 2024-04-05 15:37:20 UTC
Created attachment 193517 [details]
A large object not fitting the page, shifted down by an object in header

This is basically bug 76219. The latter was closed after a fix to bug 133504; but that bugfix didn't fix the layout loop in 76219, just changed the document model in a way that the large object in the body wasn't shifted down by a header's object.

The attachment here has the problem that previously was in attachment 95878 [details]; it makes sure that the wrap of the object in header is "none", and that reproduces the hang, including OOo 3.2.0.
Comment 1 Mike Kaganski 2024-04-07 10:02:50 UTC
Created attachment 193555 [details]
A large object not fitting the page, shifted down by an object in header

A wrong sample was attached initially; this is the correct one
Comment 2 Commit Notification 2024-04-07 16:48:00 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ae9e8f3f6d10b0be2fe5b9b238a531b17e0d67da

tdf#160526, tdf#160549: fix split conditions at page start

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2024-04-11 09:41:46 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/167be9363ea505b334aa595b273707d7d9217863

tdf#160526, tdf#160549: fix split conditions at page start

It will be available in 24.2.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.