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
  Show dependency treegraph
 
Reported: 2023-05-19 16:25 UTC by Rene Engelhard
Modified: 2024-01-31 12:46 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