[Libreoffice-bugs] [Bug 131203] New: In the case of import of some DOCX documents with tables with specified table column width, created with Apache POI library, LO crashes

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Mar 7 12:31:48 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=131203

            Bug ID: 131203
           Summary: In the case of import of some DOCX documents with
                    tables with specified table column width, created with
                    Apache POI library, LO crashes
           Product: LibreOffice
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: Artur.Linhart at centrum.cz

Created attachment 158466
  --> https://bugs.documentfoundation.org/attachment.cgi?id=158466&action=edit
ZIP file containing all files mentioned in the error description

In the case of the documents, created by the Apache POI library from Java
(version 4.1.2), where are specified the sizes of the table columns
(used statement in java - loop over columns j and rows i - are 

XWPFTableRow row = locTable.getRow(i);
XWPFTableCell cell = row.getCell(j);
cell.getCTTc().addNewTcPr().addNewTcW().setW(BigInteger.valueOf(aColumnSize[j]));

the produced document is readable by MS Word and the columns are set corectly,
but in the case the document is imported into LibreOffice, the program crashes
(disappears) and if opening in the already opened Libre Office, Error about the
incorrect file content is displayed and if the answer is "No" to the conencted
question if the error has to be ignored, then the second error is shown with
the error N4o3tl14divide_by_zeroE: divide by zero.

If I select the option "yes" to ignore the error, then the document is opened
and displays something different - after the header of the first table is
displayed nothing, also the first table headers are written not in table
columns, but below themselves and the rest of the document is not displayed at
all.

In the attachments are screenshots of both error messages, and the document,
where the problem occurs. I have also generated the document again, where the
only difference is, the group properties of the tables are not specified
explicitly (then the file is opened in LE as expected), so the content of the
both files can be compared in order to locate the exact problem.

I thought this could be problem of the POI library, but because MS Word
displays the file without problems and LibreOffice crashes with this ugly
error, I guess the problem can be in the importer module of DOCX files.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200307/4babda7c/attachment.htm>


More information about the Libreoffice-bugs mailing list