Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1005832: Dependency on libreoffice-nlpsolver should be tighter

136 views
Skip to first unread message

Lior Kaplan

unread,
Feb 15, 2022, 1:30:03 PM2/15/22
to
package: libreoffice
version: 1:7.3.0-1

Hi Rene,

Long time (:

I've done some package cleaning and libreoffice stopped working.
with this failure:

$ libreoffice
terminate called after throwing an instance of 'com::sun::star::deployment::DeploymentException'
Unspecified Application Error

After some retracing I figured it happens due to the lack of libreoffice-nlpsolver installed.

Notice this is also important due to the dependency on libreoffice-java-common (all the other libreoffice only recommend it).

Without the java packages libreoffice fails with

$ libreoffice


Fatal exception: Signal 11
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x37b43)[0x7fd0f70ccb43]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x37d24)[0x7fd0f70ccd24]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c910)[0x7fd0f6ef5910]
/usr/lib/libreoffice/program/libuno_cppu.so.3(+0x17eb5)[0x7fd0f512ceb5]
/usr/lib/libreoffice/program/libuno_cppu.so.3(+0x16444)[0x7fd0f512b444]
/usr/lib/libreoffice/program/libmergedlo.so(+0x28144fc)[0x7fd0f990e4fc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x281a9f5)[0x7fd0f99149f5]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3utl10ConfigItemC2ERKN3rtl8OUStringE14ConfigItemMode+0x7e)[0x7fd0f9914bae]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN19SvtSysLocaleOptionsC1Ev+0x18d)[0x7fd0f994339d]
/usr/lib/libreoffice/program/libmergedlo.so(_Z7InitVCLv+0x246)[0x7fd0f9d29fe6]
/usr/lib/libreoffice/program/libmergedlo.so(_Z10ImplSVMainv+0x335)[0x7fd0f9d2a955]
/usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0x181)[0x7fd0f8ec30a1]
/usr/lib/libreoffice/program/soffice.bin(+0x108c)[0x564b39f7408c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fd0f6ee07ed]
/usr/lib/libreoffice/program/soffice.bin(+0x10ca)[0x564b39f740ca]

which is the case if libreoffice is installed without the recommended packages.

to reproduce:

# apt-get install libreoffice --no-install-recommends
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5 coinor-libcoinutils3v5 coinor-libosi1v5 fonts-opensymbol libabsl20210324 libabw-0.1-1 libboost-iostreams1.74.0 libbox2d2
  libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libgpgme11
  libgpgmepp6 liblangtag-common liblangtag1 libmhash2 libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libnumbertext-1.0-0 libnumbertext-data libodfgen-0.1-1 liborcus-0.17-0
  liborcus-parser-0.17-0 libpagemaker-0.0-0 libqxp-0.0-0 libraptor2-0 librasqal3 librdf0 libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-common
  libreoffice-core libreoffice-draw libreoffice-impress libreoffice-math libreoffice-report-builder-bin libreoffice-style-colibre libreoffice-writer librevenge-0.0-0 libstaroffice-0.0-0
  libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libxmlsec1-nss libyajl2
  libzmf-0.0-0 libzxingcore1 lp-solve python3-uno uno-libs-private ure

to fix after that:
# apt-get install libreoffice-nlpsolver

Thanks,

Kaplan

Rene Engelhard

unread,
Feb 15, 2022, 3:00:03 PM2/15/22
to
tag 1005832 + moreinfo

thanks


Hi,

Am 15.02.22 um 19:25 schrieb Lior Kaplan:
> package: libreoffice
> version: 1:7.3.0-1
>
> Hi Rene,
>
> Long time (:
>
Indeed.


> I've done some package cleaning and libreoffice stopped working.
> with this failure:
>
> $ libreoffice
> terminate called after throwing an instance of
> 'com::sun::star::deployment::DeploymentException'
> Unspecified Application Error
>
That can be actually anything...


> After some retracing I figured it happens due to the lack
> of libreoffice-nlpsolver installed.
>
Doubt that. Even in upstream builds nlpsolver also is a extension so
optional.
> Notice this is also important due to the
> dependency on libreoffice-java-common (all the other libreoffice only
> recommend it).

Except pure Java stuff like -reportbuilder (and ure-java), but yeah...


>
> Without the java packages libreoffice fails with
>
> $ libreoffice
> [...]

Sorry, don't  believe so. The uitests are also ran (when no Java is
needed) without the java packages installed and they

a) start

b) print

testUndoCrash (tablecontroller.SvxTableControllerTest) ... Warning:
failed to launch javaldx - java may not function correctly

for example (as expected).


And all pass.

(e.g.
https://ci.debian.net/data/autopkgtest/unstable/amd64/libr/libreoffice/19201687/log.gz)
I somehow believe your issues are caused by something else.


(Didn't check myself though yet.)


Regards,


Rene

Mark A. Hershberger

unread,
Jun 25, 2022, 8:10:03 PM6/25/22
to
Found this bug because this is the only hit I found on search engines for the error I was seeing.  I have a Debian  system.

The problem is apparently because /usr/lib/libreoffice/share/extensions is (in my case) a 0-byte file and installing an extension resolves the issue.

I was also able to resolve it by erasing the file and creating the directory.

Example:

mah@gabriel:~$ libreoffice
Warning: failed to launch javaldx - java may not function correctly
terminate called after throwing an instance of 'com::sun::star::deployment::DeploymentException'
Unspecified Application Error
mah@gabriel:~$ libreoffice --version
LibreOffice 7.3.4.2 30(Build:2)

mah@gabriel:~$ sudo rm /usr/lib/libreoffice/share/extensions
mah@gabriel:~$ sudo mkdir /usr/lib/libreoffice/share/extensions
mah@gabriel:~$ libreoffice
Warning: failed to launch javaldx - java may not function correctly
mah@gabriel:~$ dpkg -S /usr/lib/libreoffice/share/extensions
dpkg-query: no path found matching pattern /usr/lib/libreoffice/share/extensions
mah@gabriel:~$ apt-file search /usr/lib/libreoffice/share/extensions | cut -d : -f 1 | sort -u | xargs dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version               Architecture Description
+++-==========================-=====================-============-===================================================
ii  libreoffice-common         1:7.3.4~rc2-1~bpo11+1 all          office productivity suite -- arch-independent files
un  libreoffice-wiki-publisher <none>                <none>       (no description available)
un  libreoffice-writer2latex   <none>                <none>       (no description available)
un  libreoffice-writer2xhtml   <none>                <none>       (no description available)
dpkg-query: no packages found matching eyes17
dpkg-query: no packages found matching libreoffice-canzeley-client
dpkg-query: no packages found matching libreoffice-dmaths
dpkg-query: no packages found matching libreoffice-grammalecte
dpkg-query: no packages found matching libreoffice-lightproof-en
dpkg-query: no packages found matching libreoffice-lightproof-hu
dpkg-query: no packages found matching libreoffice-lightproof-pt-br
dpkg-query: no packages found matching libreoffice-lightproof-ru-ru
dpkg-query: no packages found matching libreoffice-nlpsolver
dpkg-query: no packages found matching libreoffice-numbertext
dpkg-query: no packages found matching libreoffice-parlatype
dpkg-query: no packages found matching libreoffice-texmaths
dpkg-query: no packages found matching libreoffice-voikko

Rene Engelhard

unread,
Aug 30, 2022, 12:00:03 PM8/30/22
to
[ Your mail never appeared to me wither in my mailbox nor in the
mailing list archives. Probably eaten by a spamfilter ]

Hi,

sorry for the late answer.

Am Sat, Jun 25, 2022 at 04:50:40PM -0700 schrieb Mark A. Hershberger:
> Found this bug because this is the only hit I found on search engines for the error I was seeing. I have a Debian system.

Obviously, since you wouldn't report here ;-)

> The problem is apparently because /usr/lib/libreoffice/share/extensions is (in my case) a 0-byte file and installing an extension resolves the issue.

Wow the f*? ...
... sigh. I think I see what goes wrong here. How did it appear not in
earlier times (the problematic code is in there since 3.x!).

libreoffice-common has a trigger which is supposed to run
make_lo_sync_extensions to do what it says when a extension is
installed/removed by touching the dir:

$ cat libreoffice-common.postinst
#!/bin/sh

set -e

[...]
validate_extensions() {
INSTDIR=`mktemp -d`
if HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg list --bundled >/dev/null 2>/dev/null; then
HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg validate -v --bundled
fi
}

make_lo_sync_extensions() {
touch /usr/lib/libreoffice/share/extensions
}

if [ "$1" = "triggered" ]; then
for triggername in $2; do
case "$triggername" in
# new "bundled" extensions (since 3.3)
"/usr/lib/libreoffice/share/extensions")
make_lo_sync_extensions
;;
[...]
esac
done
fi

[...]
$

So I guess dpkg removes /usr/lib/libreoffice/share/extensions i(it is
still "owned" by libreoffice-common though. Should it happen?) and
nevertheless libreoffice-common is triggered the touch is fired and you
end up with that 0 byte file :/

Regards,

Rene

Rene Engelhard

unread,
Aug 30, 2022, 12:40:03 PM8/30/22
to
Hi again.

Am 30.08.22 um 17:43 schrieb Rene Engelhard:
> So I guess dpkg removes /usr/lib/libreoffice/share/extensions i(it is
> still "owned" by libreoffice-common though. Should it happen?) and
> nevertheless libreoffice-common is triggered the touch is fired and you
> end up with that 0 byte file :/

Apparently /usr/lib/libreoffice/share/extensions is NOT in
libreoffice-common anymore in sid, which explains this (no dir anymore,
touch -> 0 byte file)

Regards,


Rene
0 new messages