[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libreoffice-nogui: application crash when using the loadComponentFromURL method



Hi,


Am 05.06.23 um 10:54 schrieb Étienne Loks:
Package: libreoffice-nogui
Don't think so. If at all libreoffice-core-nogui. libreoffice-nogui is empty and just installs all submodules.
I am using libreoffice (version 1:7.0.4-4+deb116) headless in order to generate

Not that it matters here:

No, you are not.

At least this ends up in -backports so you probably have a backport installed where reportbug then knows that it shouldn't report a "real" bug in the BTS.

(And I just cross-checked to go sure, deb11u6 definitely doesn't have that redirection)


ODT documents with python UNO library (python3-uno package).

Doing what exactly? A Calc document here? Because it mentions a calc ui file?

Using loadComponentFromUrl method from the UNO library lead to libreoffice
crash:
Loading which component?
Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dc53)[0x7fa907c5bc53]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3ddc2)[0x7fa907c5bdc2]
/lib/x86_64-linux-gnu/libc.so.6(+0x38d60)[0x7fa907a76d60]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7fa907a76ce1]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7fa907a60537]
/usr/lib/libreoffice/program/libmergedlo.so(+0x11652f2)[0x7fa908de92f2]
/usr/lib/libreoffice/program/libmergedlo.so(+0x220f190)[0x7fa909e93190]
/usr/lib/libreoffice/program/libmergedlo.so(+0x32b2419)[0x7fa90af36419]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x17412)[0x7fa907c35412]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dd2f)[0x7fa907c5bd2f]
/lib/x86_64-linux-gnu/libc.so.6(+0x38d60)[0x7fa907a76d60]


Using strace

strace -f -o dump.txt  /usr/bin/libreoffice  --headless "--
accept=socket,host=127.0.0.1,port=8101;urp" --nodefault --nofirststartwizard
--nolockcheck --nologo --norestore --pidfile=/var/run/libreoffice.pid

It seems that *.ui are missing:

(...)
489191 openat(AT_FDCWD,
"/usr/lib/libreoffice/share/config/soffice.cfg/modules/scalc/ui/posbox.ui",
O_RDONLY) = -1 ENOENT (No such file or directory)
(...)
After copying the *.ui files from a classic LibreOffice installation, the
software behaves normally: no more crashes.
Shrugs. This is hilarious. There's also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028290 with similar nonsense.
Please consider shipping *.ui files with each libreoffice-*-nogui package.

The problem is that something explicitely built without UI needs .ui files. This - as said - is hilariously broken upstream.


I already did https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/commits/debian-experimental-7.6?ref_type=heads for the other case.


I will not ship the .ui files in -nogui,  this will be useless doubling of otherwise the same stuff, in 7.6 I'll generate -uiconfig-* with all the files

(which both "normal" and -nogui depend on). Looks like we need to generally make -foo depend on -uiconfig-foo. :/


Versions of packages libreoffice-nogui depends on:
pn  libreoffice-base-nogui                <none>
pn  libreoffice-calc-nogui                <none>
pn  libreoffice-core-nogui                <none>
pn  libreoffice-draw-nogui                <none>
pn  libreoffice-impress-nogui             <none>
pn  libreoffice-math-nogui                <none>
pn  libreoffice-report-builder-bin-nogui  <none>
pn  libreoffice-writer-nogui              <none>

Hmm. none of -nogui installed?


Regards,


Rene


Reply to: