Description: We are developing a software which create ODT files and then uses lowriter to convert the file to PDF. For some reason this is not working with every document we are giving to writer. It seems to work with some documents but not with others. However, it always works when opening the ODT using the UI and then press the "Export to PDF" button. Steps to Reproduce: There are two versions to reproduce this bug: A) Using convert-to: 1. Save the ODT file stored as attachment to this bug report on your harddrive, say to /tmp/failure.odt 2. Start the following command in the terminal: lowriter --headless --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/failure.odt 3. While the process is running look into htop or a similar utility to see that soffice.bin shows 100% CPU usage and never stops to do that. 4. Wait some minutes or longer if you want to, but even after an hour it will not stop. You can kill it now. B) Using a macro: 1. Save the ODT file stored as attachment to this bug report on your harddrive, say to /tmp/failure.odt 2. Create a new Module in the Standard library, e.g. Module1 and write a simple script to create a PDF: REM ========================= Sub Main(Optional filename As String) Dim storeChanges as Boolean If IsMissing(filename) Then document = ThisComponent filename = ConvertToURL("/tmp/failure.odt") storeChanges = False Else document = StarDesktop.loadComponentFromURL(ConvertToURL(filename), "_blank", 0, Array()) storeChanges = True End If dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") 'Export to PDF dim args1(1) as new com.sun.star.beans.PropertyValue args1(0).Name = "URL" args1(0).Value = filename + ".pdf" args1(1).Name = "FilterName" args1(1).Value = "writer_pdf_Export" msgbox(args1(0).Value) dispatcher.executeDispatch(document.CurrentController.Frame, ".uno:ExportDirectToPDF", "", 0, args1()) If storeChanges Then document.store() document.close(True) End If End Sub REM ================================== 3. Close Writer and every other office process. 4. Call the following command from the terminal: lowriter --headless "macro:///Standard.Module1.Main(\"/tmp/failure.odt\")" 5. While the process is running look into htop or a similar utility to see that soffice.bin shows 100% CPU usage and never stops to do that. 6. Wait some minutes or longer if you want to, but even after an hour it will not stop. You can kill it now. Actual Results: Just 100% CPU usage and no result. Expected Results: A nice PDF within seconds. Reproducible: Always User Profile Reset: No Additional Info: It may have to do with embedded graphics. It seems to work when the attribute svg:height or svg:width of <draw:frame> has a lower value or no value. Maybe there is something going in an infinite loop while layouting these frames which does not go in a loop when using the UI. Version: 6.2.2.2 Build-ID: 1:6.2.2-0ubuntu0.18.04.1~lo1 CPU-Threads: 8; BS: Linux 4.4; UI-Render: Standard; VCL: gtk3; Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE Calc: threaded
Created attachment 150827 [details] ODT file which does not want to be converted to PDF
Some extra information: Just stumbled on unoconv. Using unoconv there seems no problem at all. Exporting to PDF works great but not flawlessly. The fields were not updated before exporting.
Hello Nicolas Göddel, Thank you for reporting the bug. I can confirm that the bug is present in master. Version: 6.3.0.0.alpha0+ Build ID: 98630a0bd49bd80652145a21e4e0d0ded792b36b CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: kde5; TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-05-04_04:44:35 Locale: en-IE (en_IE.UTF-8); UI-Language: en-US Calc: threaded
Bibisected with win32-6.3 to range https://gerrit.libreoffice.org/plugins/gitiles/core/+log/b593634d3cfbb2fc8522d99ce1c3f2a11445ea59..bf8c8699f7ed09519db2041e1ec1554097e94ab4 bf8c869 sd: fix comphelper::OInterfaceCompare build breakage by Michael Stahl 5879351 tdf#122607 sw: restore CalcLayout() call in getRendererCount() by Michael Stahl 3d37463 tdf#122607 sw: fix preservation of text frame cache entries by Michael Stahl 31ae750 tdf#122607 sw: remove deleted SwTextFrame's cache entry by Michael Stahl f6f53f7 tdf#123636 writerfilter: handle deferred breaks on frames by Justin Luth cc899c6 tdf#101826 ww8import: Fly - don't convert XATTR back and forth by Justin Luth The document does not have text frames, but it does have images and a section.
Dear Nicolas Göddel, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Repro 6.2. No repro 6.3 and 7.2+. Closing. Note: instead of --headless --convert-to pdf:writer_pdf_Export enough in newer LO to use simple: --convert-to pdf Interesting sample: ODT is 69 or 70 pages, converted PDF is 72, GUI exported PDF is 70. Not sure why, not images, difference seen on page 3 with just text. Probably worth some analysis, but not to open this bug which was about perf.
6.3: commit 1026e9ba775de87c5654c218d0f922d46d7d8403 Date: Fri Jan 25 13:25:57 2019 +0100 https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=f205e4530ef4245ee29b934d050c4ac5c2ce7257..1ecca673b40fedc53db125e332b087d1c120a254 Can't open link now to see if single, this is the last one: commit 1ecca673b40fedc53db125e332b087d1c120a254 [log] author Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Thu Jan 24 15:52:47 2019 https://bugs.documentfoundation.org/show_bug.cgi?id=122607