Created attachment 80391 [details] Test file to reproduce Problem description: We have had an issue on an applications server running libreoffice to convert documents to PDF where certain documents would cause the soffice process to run at near 100% CPU without ever completing, hanging the associated system. The files being converted were relatively small html files, and similar files from the same source completed without issue. I carried out some experimentation, and was able to determine that the problem appeared to be that the failing html documents contained table elements with a large number (~300) of rows taht included style information. I was working on the assumption that the problem might be due to an odd character, so was trying to search through the file by deleting half of the rows and retrying to zoom in on the failure in, but I found that it didn't matter which half of the rows I deleted, deleting half the rows fixed the issue! I've managed to create a pair of test files that shows this behavior independent of the original documents, which I've attached to this issue - on the test system I'm using, "tableTestWorks.html" completes conversion without issue, while "tableTestBroken.html" hangs as described. I've also attached strace outputs for the successful run of tableTestWorks and the failed run of tableTestBroken (CTRL-C used to break after some time). I've downloaded 4.0.3 windows and cannot reproduce the issue in that environment. However, on Ubuntu I manually installed 4.0.3 and the issue appeared to remain. Steps to reproduce: 1. Download the attached file tableTestBroken.html 2. Create folder Test in ubuntu's home on a server and place file here. 3. Run /usr/bin/soffice --headless --convert-to pdf --strace --outdir /home/ubuntu/Test /home/ubuntu/Test/tableTestBroken.html Current behavior: The soffice process hangs forever at high CPU usage Expected behavior: The conversion completes Operating System: Ubuntu Version: 3.4.0 release
Created attachment 80392 [details] Smaller version of repro file that doesn't cause the issue.
Created attachment 80393 [details] Strace.log from a reproduction of the issue
Created attachment 80394 [details] Strace.log from a run of the file that works
no hanging during HTML to PDF conversion using LibO 4.0.4 on Win7 64bit. bug must be Linux specific as reported by user
@James do you still see this bug in 4.1.1?
I will re-test it when I get a chance, but it might be a few days before I have the time.
Created attachment 85973 [details] Logs 4.1.1.2 I've installed the latest 4.1 build from https://launchpad.net/~libreoffice/+archive/libreoffice-4-1. The behaviour remains the same, and I've attached a zip file containing logs of failure and success (strace.log for failure, stracegood.log for success). I tried running the failure case for significantly longer and the behaviour did not change - and I couldn't use the log file as log generation appears to be massively more space intensive in this version (failure case was generating >1MB of logs per second).
FWIW, my Linux install is Ubuntu 12.04.3.
what about LibO 4.2.x is issue still there?
not problems converting this with 3.6 on Linux luuk@opensuse:~> time soffice --headless --convert-to pdf --strace --outdir /home/luuk/temp /home/luuk/temp/tableTestBroken.html convert /home/luuk/temp/tableTestBroken.html -> /home/luuk/temp/tableTestBroken.pdf using writer_web_pdf_Export real 0m11.793s user 0m10.520s sys 0m0.932s luuk@opensuse:~> ll temp/tableTestBroken.* -rwxr--r-- 1 luuk users 605081 jun 15 16:47 temp/tableTestBroken.html -rw-r--r-- 1 luuk users 326368 jun 15 16:58 temp/tableTestBroken.pdf luuk@opensuse:~> soffice --version LibreOffice 3.6
Created attachment 101099 [details] strace.log of tableTestBroken.html with LO3.6
I've just re-tested with LibreOffice 4.2.3.3 420m0(Build:3), on Ubuntu 12.04.04, and the issue remains.
Does 4.3RC3 improve anything? 4.3RC3: http://www.libreoffice.org/download/pre-releases/ Also Ubuntu 14.04 LTS is out and might be worth being tested.
(In reply to comment #13) > Does 4.3RC3 improve anything? I have tested attachment 80391 [details] under GNU/Linux x86_64 (Debian 7 / Crunchbang 11) using: - v3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b - v4.1.6.2 Build ID: 40ff705089295be5be0aae9b15123f687c05b0a - v4.2.5.2 Build ID: 61cb170a04bb1f12e77c884eab9192be736ec5f5 - v4.3.0.3 Build ID: 08ebe52789a201dd7d38ef653ef7a48925e7f9f7 - v4.4.0.0.alpha0+ Build ID: 4aa9b041de3129f19b48e66d349f48657b73f33e (2014-07-19) All versions apart from v4162 (oddly) hang as described - v4162 produces valid PDF output. I can provide straces if anyone feels it will add anything further to this report. Status set to NEW.
** Please read this message in its entirety before responding ** 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 on a currently supported version of LibreOffice (5.0.0.5 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System 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) http://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: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-09-03
** Please read this message in its entirety before responding ** 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 on a currently supported version of LibreOffice (5.1.5 or 5.2.1 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System 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) http://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: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20160920
Created attachment 147407 [details] PDF from LO 6.2 beta 1
in LO 6.2 beta 1 PDF can be craeted fast and result is fine Status->WFM