Description: We are using LibreOffice for some transformations. A malformed docx transformation to pdf can cause a crash for the LibreOffice instance on macOS (not on Windows and Linux). I will try to attach the faulty file. The faulty part can than be found in problemFootnotes.docx\word\numbering.xml Please have a look on our internally Jira https://issues.alfresco.com/jira/browse/ACE-5792 Steps to Reproduce: 1.Install Alfresco Trial configured with using LibreOffice 2.Go in Share and create a new site 3.In documentLibrary upload the faulty file Actual Results: LibreOffice crashes Expected Results: LibreOffice shouldn't crash Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Created attachment 133390 [details] malformed docx
We are using Jodconverter connects to LibreOffice through TCP and sends control commands to it.
I don't understand, I gave a try on Debian x86-64 with master sources updated today, LO doesn't crash, it just: - displays an error message - interrupt the opening of the file
For us it is only on macOS.
I get the following message when attempting to open the file: File format error found at SAXParseException: '[ line 2]: Extra content at the end of the document ', Stream '', Line 2, Column 1084(row,col). and LO refuses to load the document, but it doesn't crash. Tested on Version: 5.3.3.2 Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448 CPU Threads: 2; OS Version: Mac OS X 10.12.4; UI Render: default; Layout Engine: new; Locale: fr-FR (fr_FR.UTF-8); Calc: group Perhaps it is the combination of Alfresco and the document that causes the problem ?
No crash either with : Version: 5.4.0.0.alpha1+ Build ID: 5ac9c1ce61c516800cef503662d80d92394fb3f9 CPU threads: 2; OS: Mac OS X 10.12.4; UI render: default; Locale: fr-FR (fr_FR.UTF-8); Calc: group
FWIW, Microsoft Word for Mac refuses to open the file too, but does at least suggest to try and repare it.
From the terminal with LODev54: ns1:core alex$ ./instdir/LibreOfficeDev.app/Contents/MacOS/soffice --convert-to pdf /Users/alex/Downloads/problemFootnotes.docx warn:sal.osl.pipe:44048:1:sal/osl/unx/pipe.cxx:393: shutdown() failed: Socket is not connected warn:sal.osl.pipe:44048:3:sal/osl/unx/pipe.cxx:434: accept() failed: Software caused connection abort warn:opencl:44048:1:desktop/source/app/opencl.cxx:138: Failed to initialize OpenCL for test 0x18ae51a88:createUnknownChildContext:b:Sources 0x18ae51b48:start unknown element:b:Sources 0x18ae51b48:end unknown element:b:Sources Error: source file could not be loaded warn:sal.osl.pipe:44048:1:sal/osl/unx/pipe.cxx:393: shutdown() failed: Socket is not connected warn:sal.osl.pipe:44048:3:sal/osl/unx/pipe.cxx:434: accept() failed: Software caused connection abort
With the writer_pdf filter : ns1:core alex$ ./instdir/LibreOfficeDev.app/Contents/MacOS/soffice --convert-to pdf:writer_pdf_Export /Users/alex/Downloads/problemFootnotes.docx 0x18b557968:createUnknownChildContext:b:Sources 0x18b557a28:start unknown element:b:Sources 0x18b557a28:end unknown element:b:Sources Error: source file could not be loaded warn:sal.osl.pipe:45126:1:sal/osl/unx/pipe.cxx:393: shutdown() failed: Socket is not connected warn:sal.osl.pipe:45126:3:sal/osl/unx/pipe.cxx:434: accept() failed: Software caused connection abort
Thank you very much for your investigations so far. We found out that some of our versions still using a to old LO version (4.4.5) upgrading to 5.2.1 or newer did the trick. So this ticket can be closed and thanks again. Regards Martin
Thank you Martin for your feedback, let's put this one to WFM then.