Bug 164056 - Assertion `GetPageFrame().GetPhyPageNum() == GetPgNumOfCollected(nIdx)' failed
Summary: Assertion `GetPageFrame().GetPhyPageNum() == GetPgNumOfCollected(nIdx)' failed
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-26 09:10 UTC by Caolán McNamara
Modified: 2024-11-26 09:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caolán McNamara 2024-11-26 09:10:38 UTC
Description:
This is a frequent assert seen in crashtesting when reimporting content exported by LibreOffice

Steps to Reproduce:
1. wget https://bz.apache.org/ooo/attachment.cgi?id=61111 -O ~/Downloads/ooo100227-1.sxw
2. ./instdir/program/soffice --headless --convert-to docx ~/Downloads/ooo100227-1.sxw
3. ./instdir/program/soffice --headless --convert-to pdf ./ooo100227-1.docx

Actual Results:
core/sw/source/core/layout/objectformattertxtfrm.cxx:237: virtual bool SwObjectFormatterTextFrame::DoFormatObj(SwAnchoredObject &, const bool): Assertion `GetPageFrame().GetPhyPageNum() == GetPgNumOfCollected(nIdx)' failed.


Expected Results:
no assert


Reproducible: Always


User Profile Reset: No

Additional Info:
unsure if this is bisectable
Comment 1 Caolán McNamara 2024-11-26 09:12:19 UTC
The assert itself was introduced with

https://cgit.freedesktop.org/libreoffice/core/commit/?id=533a998e540b0f04068c876dde0e74adc3f79c93

tdf#138518 sw: layout: fix assert on ooo43913-1.doc