Bug 152982 - FILEOPEN DOCX LibreOffice Writer hangs while opening certain docx files
Summary: FILEOPEN DOCX LibreOffice Writer hangs while opening certain docx files
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, regression
Depends on:
Blocks: DOCX-Opening Crash
  Show dependency treegraph
 
Reported: 2023-01-11 15:16 UTC by Vedarth Kulkarni
Modified: 2024-08-04 09:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice is not able to open or convert this docx file (168.44 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-01-11 15:16 UTC, Vedarth Kulkarni
Details

Note You need to log in before you can comment on or make changes to this bug.
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!
Comment 3 Buovjaga 2024-08-04 09:12:39 UTC
Hangs in 7.6, but not with master

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ed9a557e1ceb4ffa4060024b20785f04d227e06c
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded