Bug 80482 - Headless convert-to does not work in LibreOffice 4.3.0.1
Summary: Headless convert-to does not work in LibreOffice 4.3.0.1
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.3.0.1 rc
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 14:37 UTC by Mathias
Modified: 2014-09-15 20:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Testdocument (33.50 KB, application/msword)
2014-06-24 14:37 UTC, Mathias
Details
strace.log (555.49 KB, text/plain)
2014-06-25 08:34 UTC, Mathias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias 2014-06-24 14:37:32 UTC
Created attachment 101672 [details]
Testdocument

1) Call libreoffice4.2 --headless --convert-to pdf --outdir /opt/telematik.doc
--> Output: convert /opt/test/telematik.doc -> /opt/test/telematik.pdf using writer_pdf_Export
--> Output file is generated as expected.
2) Call libreoffice4.3 --headless --convert-to pdf --outdir /opt/telematik.doc
--> Output: <empty>
--> No Output file is generated.

I added the test document as attachment.
Comment 1 Maxim Monastirsky 2014-06-24 15:05:36 UTC
Hi,

Your command is missing the actual path for the --outdir flag. For example this works for me:

$ libreoffice4.3 --headless --convert-to pdf --outdir ./ telematik.doc

Does it solve your problem?
Comment 2 Mathias 2014-06-24 15:23:47 UTC
The --outdir flag is not needed and does not resolve my problem.

This problem occurs on a Debian 6.0 Linux 2.6.32-5-vserver-amd64 x86_64 with JDK6
The problem does not occur on a Ubuntu 12.04 Linux 3.2.0-64-generic-pae i686 with JDK7
Comment 3 Maxim Monastirsky 2014-06-24 15:34:34 UTC
(In reply to comment #2)
> The --outdir flag is not needed and does not resolve my problem.
OK, so you agree that the command you specified in the original report is not correct.

As I said, it works for me (tested under Fedora 20 64-bit), so I'll set this back to UNCONFIRMED so other could try to reproduce.
Comment 4 Julien Nabet 2014-06-24 20:08:31 UTC
Not confirmed, no crash, not widely used, regression not yet confirmed => I reduce a bit the importance for the moment.
Comment 5 Mathias 2014-06-25 08:27:41 UTC
This problem occurs also on a Debian 7.0 Linux 3.2.0-4-amd64 with JDK7.

I ran the command with the --strace option. Following lines included the word error:

1356  10:22:24.828886 open("/opt/libreoffice4.3/program/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.828993 open("/opt/libreoffice4.3/program/../ure-link/lib/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829063 open("/opt/libreoffice4.3/program/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829118 open("/opt/libreoffice4.3/program/../ure-link/lib/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829177 open("/opt/libreoffice4.3/program/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829232 open("/opt/libreoffice4.3/program/../ure-link/lib/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829291 open("/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829351 open("/usr/lib/jvm/java-7-oracle/jre/lib/amd64/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
1356  10:22:24.829461 open("/lib/x86_64-linux-gnu/libgpg-error.so.0", O_RDONLY) = 5
Comment 6 Mathias 2014-06-25 08:34:37 UTC
Created attachment 101733 [details]
strace.log

Used command: 
libreoffice4.3 --headless --strace --convert-to pdf /opt/test/telematik.doc
Comment 7 Mathias 2014-06-25 09:33:04 UTC
Next i tried to build openoffice 4.3.0.1 from sources. Therefore i downloaded the dependencies with the command "apt-get build-dep libreoffice". After this the pdf conversation worked with the previous installation of libreoffice.
There was one library missing. I dont know which library but this solved my problem.
Comment 8 Andreas Gottardi 2014-08-20 21:33:20 UTC
It works for me if I install these packages:
apt-get install libxinerama1 libdbus-glib-1-2 libfontconfig1 libglu1-mesa libsm6 libgl1-mesa-swx11
Comment 9 Dmitri Tikhonov 2014-09-15 20:00:33 UTC
(In reply to comment #8)
> It works for me if I install these packages:
> apt-get install libxinerama1 libdbus-glib-1-2 libfontconfig1 libglu1-mesa
> libsm6 libgl1-mesa-swx11

Same issue happens on CentOS 6.5 and LibreOffice 4.3.1.2.  Installing mesa-libGLU (it also pulls mesa-libGL, mesa-dri1-drivers, and mesa-dri-drivers) fixes this problem.