Bug 113425 - Export to PDF or Convert-to go into infinite loop if the image's "wrap test" is "square" - Linux only
Summary: Export to PDF or Convert-to go into infinite loop if the image's "wrap test" ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, haveBacktrace, perf
Depends on:
Blocks: PDF-Export Performance
  Show dependency treegraph
 
Reported: 2017-10-24 23:58 UTC by jodell
Modified: 2023-04-12 05:06 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
bad file (243.34 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-10-24 23:59 UTC, jodell
Details
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
Details
GDB trace (16.52 KB, text/plain)
2017-10-26 16:50 UTC, Buovjaga
Details
bt with debug symbols (15.10 KB, text/plain)
2019-04-22 09:53 UTC, Julien Nabet
Details
GDB trace 2020 in LO 7.1+ (125.25 KB, text/plain)
2020-10-07 13:35 UTC, Timur
Details

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
Description:
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

Version: 6.0.0.0.alpha1+
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: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

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

- Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

- Version 4.1.0.0.alpha0+ (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
Version: 6.0.0.0.alpha1+
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.
Comment 8 Timur 2020-10-02 09:23:32 UTC
Looks like a wrong report, not clear what was confirmed. 
Because bad file opens wrong 9 pages and hangs with LO 6.3 in Windows.
Opens 6 pages and exports PDF in LO 7.1+.
Even if someone uses --headless or --convert-to , he should test GUI open and save. 
I dislike seeing Blocks for bug 103266, bug 103378 which misses the point of the bug.
Comment 9 Timur 2020-10-02 10:02:22 UTC
Bibisect 7.1:

commit c391d02248a86bfc4a57448859eaf70403a365a7
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Aug 28 20:44:04 2020 +0200

    source d336e6c26012255015d3fc0caf8e7fafe14bd8f2
    previous  source faa36a5310f432a245baa8e9f765e759ab1cba2d

Author	Daniel Arato (NISZ) <arato.daniel@nisz.hu>	2020-08-24 11:05:17 +0200
committer	László Németh <nemeth@numbertext.org>	2020-08-28 13:13:58 +0200
commit d336e6c26012255015d3fc0caf8e7fafe14bd8f2 (patch)
tree 66fd21b95bd80520f8251f30620109f782703605
parent faa36a5310f432a245baa8e9f765e759ab1cba2d (diff)
tdf#69647 sw layout: fix line spacing with inline pictures

So I set Fixed.
Comment 10 Timur 2020-10-02 10:15:34 UTC
attachment 137265 [details] is 5 pages in MSO, strange 2nd page, 2 frames aside that are different if resaved in MSO. 
Not for another bug, LO with 6 pages is OK.
Comment 11 Xisco Faulí 2020-10-06 14:57:46 UTC
The issue is still reproducible in

Version: 7.1.0.0.alpha0+
Build ID: ff5ca4e5fc6a9fb24b0eb6eb629210b024473f67
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

with command: time instdir/program/soffice --headless --convert-to pdf /home/xisco/Downloads/convert_buster.docx --outdir /home/xisco/Downloads/

I killed LibreOffice after

real	42m37,549s
user	0m0,142s
sys	0m0,044s
Comment 12 Timur 2020-10-07 08:12:10 UTC
Right, I missed to check original issue. Also seen with GUI, Linux only.
Comment 13 Timur 2020-10-07 13:35:51 UTC
Created attachment 166159 [details]
GDB trace 2020 in LO 7.1+

I tried with ./soffice --backtrace but LO crashed on opening file. Here is trace.
Comment 14 Vaibhav Malik 2022-01-06 20:39:13 UTC
Confirmed in

Version: 7.4.0.0.alpha0+
Build ID: e970bc67e4967c8d75db1d571283c6b489b080ce
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded