Bug 130868 - Writer hangs when trying to convert specific ODT with footnotes to PDF
Summary: Writer hangs when trying to convert specific ODT with footnotes to PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf, perf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2020-02-22 14:05 UTC by lesliek
Modified: 2021-09-22 18:48 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
It's document 1 of the two (62.92 KB, application/vnd.oasis.opendocument.text)
2020-02-22 14:07 UTC, lesliek
Details
Here's the odt document that crashes on attempted conversion to pdf (63.44 KB, application/vnd.oasis.opendocument.text)
2020-02-22 15:02 UTC, lesliek
Details
Flamegraph (229.03 KB, application/x-bzip)
2020-04-09 19:05 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lesliek 2020-02-22 14:05:37 UTC
Description:
I have two odt documents. I can convert each to pdf individually. However, when I insert the content of the second document into the first, save the first document as odt and then try to convert the edited document to pdf, LO crashes.

Steps to Reproduce:
1.Already explained in description
2.
3.

Actual Results:
LO crashes.

Expected Results:
Converted the document.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.5.2
Build ID: dd0751754f11728f69b42ee2af66670068624673
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3; 
Locale: en-CA (en_CA.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 lesliek 2020-02-22 14:07:51 UTC
Created attachment 158099 [details]
It's document 1 of the two

I don't seem to be able to upload document 2 as well.
Comment 2 Mike Kaganski 2020-02-22 14:30:17 UTC
Are the document 1 or the document 2 relevant? I suppose that what we need is the combined document that is failing?
Comment 3 lesliek 2020-02-22 15:02:26 UTC
Created attachment 158100 [details]
Here's the odt document that crashes on attempted conversion to pdf

Please look at footnote 34 of the document just uploaded, containing two paragraphs. It's adding that content that makes the attached document crash when trying to convert it to pdf.

I should add that, if I just add the first paragraph of the footnote, the document converts properly. It's when I add the second paragraph that LO crashes.

I also tried to add the material as one paragraph, rather than two. When I add the first sentence only of paragraph two to the end of paragraph one, the document converts properly. However, when I add as well the second sentence of paragraph two to the end of paragraph one, I get the crash.

This can't have anything to do with exceeding some maximum length for footnote text, since the document has in it many footnotes longer than the one I'm trying to add.
Comment 4 Mike Kaganski 2020-02-22 17:37:07 UTC
I cannot reproduce a crash on Windows, but I see LibreOffice hang there.

Reproducible with Version: 7.0.0.0.alpha0+ (x64)
Build ID: 9c2b6e8c43e382fe0b9060cbb1d946aee366fee4
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

and with OpenOffice.org 3.3.0 OOO330m20 (Build:9567).
Comment 5 Xisco Faulí 2020-04-09 13:48:56 UTC
@Julien, would it be possible to have a perf graph for this issue ?
Comment 6 Julien Nabet 2020-04-09 18:42:05 UTC
Xisco: no problem but I got a crash for the moment following https://cgit.freedesktop.org/libreoffice/core/commit/?id=65404e2c72ea2d5d3f6c074121005b8b9369e7fb
Comment 7 Julien Nabet 2020-04-09 19:05:57 UTC
Created attachment 159452 [details]
Flamegraph

Here's a Flamegraph retrieved on pc Debian x86-64 with master sources.

(I had to workaround the crash indicated in my previous comment).
Comment 8 Telesto 2020-05-26 21:29:02 UTC
Opening the file & copy/pasting the text to a new document solves the problem for some reason
Comment 9 Roman Kuznetsov 2021-09-22 18:48:47 UTC
Still repro in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a9cc066a86c6bd3423c5802c5a4eded55a50c754
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded