Bug 82257 - headless convert-to not creating file in 4.3.0.4
Summary: headless convert-to not creating file in 4.3.0.4
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 17:19 UTC by Ryan Brothers
Modified: 2014-08-06 21:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Brothers 2014-08-06 17:19:04 UTC
In LibreOffice 4.2, I run the following to convert docx files to pdf:

/opt/libreoffice4.2/program/soffice --headless --convert-to pdf --outdir ./ Doc1.xlsx

The program runs and an output pdf file is created.

When I run the same command on the same machine in 4.3:

/opt/libreoffice4.3/program/soffice --headless --convert-to pdf --outdir ./ Doc1.xlsx

the program exits with a exit code of 0, but no PDF file is created.

I am running CentOS 6.5 64-bit using the 64-bit RPM's available at http://www.libreoffice.org/download/libreoffice-fresh.

If it helps:

/opt/libreoffice4.2/program/soffice --version
LibreOffice 4.2.6.2 185f2ce4dcc34af9bd97dec29e6d42c39557298f

/opt/libreoffice4.3/program/soffice --version
LibreOffice 4.3.0.4 62ad5818884a2fc2e5780dd45466868d41009ec0

I have the following openjdk packages installed:
java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5.x86_64
java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el6_5.x86_64

Please let me know if I can supply more information.  Thanks for your help.
Comment 1 Maxim Monastirsky 2014-08-06 18:10:57 UTC
Hi,

I can't reproduce this under Fedora 20 64-bit, with the same 4.3 build you have.

(In reply to comment #0)
> the program exits with a exit code of 0, but no PDF file is created.
Did it output something to the terminal?

Also try to remove the user profile (~/.config/libreoffice).
Comment 2 Ryan Brothers 2014-08-06 18:37:39 UTC
Thanks for your help.

It doesn't output anything to the terminal when I run it.

[ryan@test ~]$ /opt/libreoffice4.3/program/soffice --headless --convert-to pdf --outdir ./ Doc1.docx
[ryan@test ~]$ echo $?
0
[ryan@test ~]$ 

I tried removing ~/.config/libreoffice, but I get the same results - no PDF is created.  I confirmed that ~/.config/libreoffice is made when I run the soffice command.  I tried it against a xlsx file and same results - no PDF is created.

Do you have other ideas on how to narrow this down?  I'm seeing this issue on a few machines that are all running either RHEL 6 or CentOS 6, both 64-bit.  Thanks again.
Comment 3 Ryan Brothers 2014-08-06 19:00:24 UTC
I just tried on a Fedora 20 64-bit machine and I'm getting the same results - a PDF file is created using version 4.2, but not 4.3.

Please let me know if there are other things I can do to narrow it down.  One thing to note is that none of the machines are running a GUI.  They are console-only access over SSH.
Comment 4 Maxim Monastirsky 2014-08-06 20:01:45 UTC
(In reply to comment #3)
> One thing to note is that none of the machines are running a GUI.
Indeed, I installed console-only Fedora 20 in a VM, and I can reproduce it. I guess it's just missing libraries.
Comment 5 Maxim Monastirsky 2014-08-06 20:30:23 UTC
strace was very helpful. "sudo yum install libGLU" solved the problem for me.
Comment 6 Ryan Brothers 2014-08-06 20:47:56 UTC
Thanks, I confirmed that libGLU resolved the issue in CentOS 6 too.  Would it be possible to add this RPM as a dependency for installing LibreOffice over RPM?  This package seems to be a new requirement in 4.3.  It wasn't needed in 4.2 and earlier versions.
Comment 7 Maxim Monastirsky 2014-08-06 21:11:23 UTC
(In reply to comment #6)
> Would it be possible to add this RPM as a dependency for installing
> LibreOffice over RPM?
Actually I don't think the RPMs from libreoffice.org have any dependencies (besides the gnome-integration that depends on libgnomevfs).