Created attachment 196057 [details] Minimal reproducer Steps to reproduce the problem: 1) Open the attached bugdoc. 2) Check the import result. Expected result: 2 pages, first page is ~empty, second page has a full-page complex group shape with 17 child text frames, like in Word. Actual result: the layout loops / never finishes (stopped waiting after 1 minute).
Created attachment 196059 [details] Reproducer in MSO Reproducer opens in MSO with 2 pages.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5bd78c7dc4d17378c31207e6640e4d141d2ef5c3 tdf#162662 sw: fix layout loop with full-page anchored shape that wants to wrap It will be available in 25.2.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.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-24-8": https://git.libreoffice.org/core/commit/aa291933b41c90e93e40063c59f39e275e78829a tdf#162662 sw: fix layout loop with full-page anchored shape that wants to wrap It will be available in 24.8.2. 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.
can you please explain "Page 2" text that is seen in MSO but not in LO?
Created attachment 196184 [details] Word 2021 desktop rendering (In reply to Timur from comment #4) > can you please explain "Page 2" text that is seen in MSO but not in LO? Not fully. My Word 2021 renders that "page 2" at the bottom of the page, while your MSO shot puts it to a different place, perhaps you used office.com, and Word itself is inconsistent between desktop vs web? Anyhow, I think what happens on the Writer side is that the doc is buggy, it both requests wrapping and also sets a size that covers the whole body area, so no layout can please both requirements. Writer resolved this conflict by respecting the wanted size, but gives up on the wrap type and goes with no wrapping (wrap through). Now what Word does, we can only guess. I think what desktop Word does is also giving up on the wrap type, but it seems to have some additional tweak, so it pushes down the conflicting text on the page as much as possible, while we just leave the text as-is. The whole situation is a bit of a garbage-in-garbage-out (as long as we don't loop or crash), but if you want, you could file a follow-up bug for this remaining difference. (The original confidential document had an empty paragraph there I think, I only added these strings to help debugging.) Does that help?