Bug 152982

Summary: FILEOPEN DOCX LibreOffice Writer hangs while opening certain docx files
Product: LibreOffice Reporter: Vedarth Kulkarni <vedarth.kulkarni>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: 79045_79045, telesto
Priority: medium Keywords: bibisectRequest, filter:docx, regression
Version: 4.3.0.4 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104450, 133092    
Attachments: LibreOffice is not able to open or convert this docx file

Description Vedarth Kulkarni 2023-01-11 15:16:18 UTC
Created attachment 184596 [details]
LibreOffice is not able to open or convert this docx file

Trying to convert or open the attached docx file (issue_resume.docx):
1. LibreOffice desktop either cannot open the file or hangs when we try to scroll to the 2nd page.
2. LibreOffice command line also hangs while converting the document to PDF

After several trial and errors I have observed that the problem occurs when there are multiple tables in the document and they span across pages.
Comment 1 Telesto 2023-01-11 15:29:05 UTC
Confirm
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

and with
Version: 7.0.7.0.0+ (x64)
Build ID: 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

also with
4.4.7.2

and with
Version: 4.3.7.2
Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba

a glance at apparently proper layout followed by crash
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

a glance at apparently proper layout followed by crash
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

broken layout but no freeze/crash
4.0.
Comment 2 Telesto 2023-01-11 15:44:43 UTC
Debug message points to:
Warn:sw.core:1540:5000:sw/source/core/view/vdraw.cxx:246: Trying to move anchor from invalid page - fix layouting!

Comment related to the warning:
// Actually this should never happen but currently layouting
// is broken. So don't move anchors, if the page is invalid.
// This should be turned into an DBG_ASSERT, once layouting is fixed!