The attached docx file could not be open.
Document loading is looping and CPU usage takes 100% on one core.
To reproduce this bug, you just have to open 'bug.docx' attached file.
According to console output, this bug is different from tdf#55196 and tdf#96102.
This document has been created with MS Office 2010. It contains arrow shapes and png images.
If you unzip document, you have:
* In bug/word/_rels/document.xml.rels:
<Relationship Id="rId9" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image1.png"/>
* In bug/word/document.xml:
<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>
If you remove images and keep only arrow shapes, file is opening correctly.
I suspect an embedded image bug.
Reproducible on Fedora 24 x86_64
LibreOffice 220.127.116.11, 18.104.22.168, 22.214.171.124.beta1
*** Bug 104491 has been marked as a duplicate of this bug. ***
Created attachment 129392 [details]
docx file with shape and embedded image
Build ID: 2bad9f1cd8da0cd3d8ff33e875eaf10c1fd9d0bf
CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default;
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-11-29_01:04:44
Locale: nl-NL (nl_NL.UTF-8); Calc: group
I tried to measure a roundtrip from command line and I had to stop it after 38 minutes...
time instdir/program/soffice --headless --convert-to docx --outdir /home/xisco/Escriptori/ /home/xisco/Baixades/bug.docx
convert /home/xisco/Baixades/bug.docx -> /home/xisco/Escriptori//bug.docx using filter : MS Word 2007 XML
+ Aturat instdir/program/soffice --headless --convert-to docx --outdir /home/xisco/Escriptori/ /home/xisco/Baixades/bug.docx
Build ID: 7fc84a8e6678e3d0399983f5a078c9b2beb6ee4b
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Created attachment 129476 [details]
LO spits out many of this:
warn:sw.core:5751:1:sw/source/core/text/porlay.cxx:404: SwLineLayout::CalcLine: bad ascent or height
It looks like SwTextFrame::Format consumes a lot of CPU time.
Build ID: f35d29c8388744be1f95ec4acfca12eec706911a
CPU Threads: 2; OS Version: Linux 4.9; UI Render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group
Dimitri Bouron committed a patch related to this issue.
It has been pushed to "master":
tdf#104492: Fix bad docx opening and bad layout
It will be available in 5.4.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Is this bug fixed?
If so, could you please close it as RESOLVED FIXED?
Yes this is fixed. I change the status of the bug.