Bug 113425 - Convert-to goes into infinite loop if the image's "wrap test" is "square"
Summary: Convert-to goes into infinite loop if the image's "wrap test" is "square"
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
4.1 all versions
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: haveBacktrace, perf
Depends on:
Blocks: Commandline PDF-Export
  Show dependency treegraph
Reported: 2017-10-24 23:58 UTC by jodell
Modified: 2019-04-22 09:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

bad file (243.34 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-10-24 23:59 UTC, jodell
same file with image "wrap text" set to "inline" (242.98 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-10-25 00:00 UTC, jodell
GDB trace (16.52 KB, text/plain)
2017-10-26 16:50 UTC, Buovjaga
bt with debug symbols (15.10 KB, text/plain)
2019-04-22 09:53 UTC, Julien Nabet

Note You need to log in before you can comment on or make changes to this bug.
Description jodell 2017-10-24 23:58:06 UTC
This command from cli causes the program to go into an infinite loop
"/opt/libreoffice5.4/program/soffice --norestore --nodefault --convert-to pdf convert_buster_ok.docx"

Actual Results:  
CPU 100%, never returns

Expected Results:
return in less that 10 sec with converted PDF file

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Comment 1 jodell 2017-10-24 23:59:39 UTC
Created attachment 137265 [details]
bad file
Comment 2 jodell 2017-10-25 00:00:48 UTC
Created attachment 137266 [details]
same file with image "wrap text" set to "inline"
Comment 3 jodell 2017-10-25 00:03:28 UTC
This breaks the program

"/opt/libreoffice5.4/program/soffice --norestore --nodefault --convert-to pdf convert_buster.docx"

Same file - with small modification works

"/opt/libreoffice5.4/program/soffice --norestore --nodefault --convert-to pdf convert_buster_ok.docx"
Comment 4 Xisco Faulí 2017-10-25 10:28:52 UTC
Confirmed in

Build ID: 43d6b11a5c1dda0cc2c1e06c768eece25051a56c
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

- Version:
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

- Version:
Build ID: 0db96caf0fcce09b87621c11b584a6d81cc7df86
Locale: ca-ES (ca_ES.UTF-8)

- Version:
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

- Version (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 5 Buovjaga 2017-10-26 16:50:52 UTC
Created attachment 137308 [details]
GDB trace

Trace was requested, I hope this has something useful.. I just Ctrl-C'd out of the looping.

Arch Linux 64-bit, KDE Plasma 5
Build ID: 02a3abcceeb9be7f101b0bcaf55accc7fb6bfcf7
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on October 26th 2017
Comment 6 QA Administrators 2018-10-29 03:57:56 UTC Comment hidden (obsolete)
Comment 7 Julien Nabet 2019-04-22 09:53:42 UTC
Created attachment 150913 [details]
bt with debug symbols

On pc Debian x86-64 with master sources updated today, I could reproduce this.