Created attachment 87322 [details] Minimal test document. Problem description: I'm trying to invoke unoconv script (https://github.com/dagwieers/unoconv) to get XHTML output from a .docx file using the LibreOffice UNO interface. This invokation terminates LibreOffice with the attached crash dump on OS X. Steps to reproduce: 1. Get unoconv from the git repository. 2. Grab the attached (completely trivial) .docx document. 3. Run the following command: dhcp1:unoconv-git $ ./unoconv -T 30 -f xhtml --stdout ~/Desktop/crash.docx Current behavior: libc++abi.dylib: terminate called throwing an exception unoconv: RuntimeException during export phase: Office probably died. Binary URP bridge disposed during call Traceback (most recent call last): File "./unoconv", line 1172, in <module> die(exitcode) File "./unoconv", line 1032, in die if convertor.desktop.getCurrentFrame(): uno.DisposedException: Binary URP bridge already disposed Expected behavior: XHTML output. Operating System: Mac OS X Version: 4.1.2.3 rc
Created attachment 87323 [details] OS X crash log
Comment on attachment 87323 [details] OS X crash log Mimetype fixed
Seems that the problem is in unoconv in that python3 needs sys.stdout.buffer.write not sys.stdout.write in writeBytes I've submitted a fix to unoconv as https://github.com/dagwieers/unoconv/pull/170
You could fix your local copy of unoconv using https://github.com/caolanm/unoconv/commit/3249fd3df136f1a859ac0272f75fcbf010926d58 its a trivial one-liner