https://bugs.freedesktop.org/show_bug.cgi?id=65454

          Priority: medium
            Bug ID: 65454
          Assignee: [email protected]
           Summary: : Html > PDF Conversion Hangs When HTML Table Contains
                    Large Number of Rows with Formatting Info
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 3.4.0 release
         Component: Printing and PDF export
           Product: LibreOffice

Created attachment 80391
  --> https://bugs.freedesktop.org/attachment.cgi?id=80391&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to