Bug 155411 - --disable-gui builds needs .ui file for --convert-to of pptx
Summary: --disable-gui builds needs .ui file for --convert-to of pptx
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Commandline Dev-related Headless
  Show dependency treegraph
 
Reported: 2023-05-19 16:25 UTC by Rene Engelhard
Modified: 2026-02-21 15:29 UTC (History)
4 users (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 Rene Engelhard 2023-05-19 16:25:51 UTC
Hi,

originally reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028290. Still reproducible in current master.

If we ignore the environment this boils down to:

Transcript with the GUI package:
# loffice --convert-to png /x/A.pptx
Warning: failed to launch javaldx - java may not function correctly
convert /x/A.pptx -> /A.png using filter : impress_png_Export

Same from the -nogui pkg:
# loffice --convert-to png /x/A.pptx
Warning: failed to launch javaldx - java may not function correctly
Unspecified Application Error

(see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028290#5)

He sent straces (which unfortunately didn't end up in the bug log...), but it seems to be this:

It *seems* to be this in your nogui-strace:

94919 21:08:29.439478 openat(AT_FDCWD, 
"/usr/lib/libreoffice/share/config/soffice.cfg/modules/simpress/ui/tabviewbar.ui", 
O_RDONLY) = -1 ENOENT (No such file or directory)
94919 21:08:29.439573 --- SIGSEGV {si_signo=SIGSEGV, 
si_code=SEGV_MAPERR, si_addr=NULL} ---
94919 21:08:29.439478 openat(AT_FDCWD, 
"/usr/lib/libreoffice/share/config/soffice.cfg/modules/simpress/ui/tabviewbar.ui", 
O_RDONLY) = -1 ENOENT (No such file or directory)
94919 21:08:29.439573 --- SIGSEGV {si_signo=SIGSEGV, 
si_code=SEGV_MAPERR, si_addr=NULL} ---

Why does --convert-to in a --disable-gui build need .ui files? It should work without....

Indeed it's the .ui file (or more):

rene@debianunstable:~$ lodraw --convert-to A.png A.pptx
Unspecified Application Error
rene@debianunstable:~$ su -
Passwort: 
root@debianunstable:~# cd /home/rene/
root@debianunstable:/home/rene# cp -ra usr/lib/libreoffice/share/config/soffice.cfg/* /usr/lib/libreoffice/share/config/soffice.cfg/
[ directory tree is dpkg-deb -x <libreoffice-impress deb> . )
root@debianunstable:/home/rene# 
Abgemeldet
rene@debianunstable:~$ lodraw --convert-to A.png A.pptx
convert /home/rene/A.pptx as a Impress document -> /home/rene/A.A.png using filter : impress_png_Export
rene@debianunstable:~$
Comment 1 Rene Engelhard 2023-05-19 16:42:44 UTC
Just tried from a clean state again.

It's definitely tabviewbar.ui which suffices and makes it work:

rene@debianunstable:~$ soffice --convert-to A.png A.pptx
Warning: failed to launch javaldx - java may not function correctly
Unspecified Application Error
rene@debianunstable:~$ su -
Passwort: 
root@debianunstable:~# cd /home/rene/
root@debianunstable:/home/rene# mkdir -p /usr/lib/libreoffice/share/config/soffice.cfg/modules/simpress/ui
root@debianunstable:/home/rene# cp usr/lib/libreoffice/share/config/soffice.cfg/modules/simpress/ui/tabviewbar.ui /usr/lib/libreoffice/share/config/soffice.cfg/modules/simpress/ui
root@debianunstable:/home/rene# 
Abgemeldet
rene@debianunstable:~$ soffice --convert-to A.png A.pptx
Warning: failed to launch javaldx - java may not function correctly
convert /home/rene/A.pptx as a Impress document -> /home/rene/A.A.png using filter : impress_png_Export
Overwriting: /home/rene/A.A.png
rene@debianunstable:~$

Why does --convert-to have do do anything with the tabviewbar UI? ;)
Comment 2 Rene Engelhard 2023-05-19 18:38:22 UTC
(did https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/commit/d37404423e2697858ca0927cbd5fc37a6ab76f8f for now as a workaround. That of course doesn't scale, if more stuff like this happens one probably needs libreoffice-iconfig-impress package or somesuch impress and impress-nogui [1] depend on...)

[1] and incidentially also draw (see https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/debian-experimental-7.5/rules#L2762)
Comment 3 Rene Engelhard 2023-06-03 21:21:13 UTC
> if more stuff like this happens one probably needs libreoffice-iconfig-impress package or somesuch impress and impress-nogui [1] depend on...)

Decided to actually do that in 7.6 onwards.

https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/commit/7ad582bab08c00b8548d4d34cb2b4bc064d24395

But still I think a --disable-gui and even a --convert-to only there shouldn't require .ui files. At all.
Comment 4 Buovjaga 2023-08-10 11:08:15 UTC
Didn't test, but I believe you -> NEW
Comment 5 Xisco Faulí 2024-01-31 12:46:33 UTC
In order to reproduce it:
1. Build with --disable-gui
2. rm instdir/share/config/soffice.cfg/modules/simpress/ui/tabviewbar.ui
3. --headless --convert-to png
Comment 6 QA Administrators 2026-02-01 03:19:14 UTC
Dear Rene Engelhard,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug