You are not logged in.

#26 2025-03-12 16:39:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [Solved] Cannot open libreoffice due to crash

undo the edits/remove that file and try w/ the different java version again, in doubt also strace it again to make sure the new JRE path was picked up.

Offline

#27 2025-03-12 16:44:27

tekstryder
Member
Registered: 2013-02-14
Posts: 505

Re: [Solved] Cannot open libreoffice due to crash

You've still got the same frikkin typo. Remove this.

<enabled xsi:nil="false">false<enabled nil="true"></enabled>

Again, the line should read EXACTLY:

<enabled xsi:nil="false">false</enabled>

Either change the java version per seth or properly edit the file to disable the JRE altogether.

As the error your seeing ('com::sun::star::uno::RuntimeException') is directly related to java, it's highly suspect.

Furthermore, unless you've got specific requirements for using the JRE in Libreoffice I suggest leaving this option disabled going forward.

Offline

#28 2025-03-12 16:51:36

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

@seth:
I have deleted both files and uninstalled java11, the bug persists; the new log:
https://0x0.st/8SlV.txt

@tekstryder
There is no typo. I copy and paste your text to the file. The file is automatically modified after trying to run LO.

Offline

#29 2025-03-12 16:55:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [Solved] Cannot open libreoffice due to crash

Afaiu #25 it's actually LO that alters the config after initially complaining about

/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:1: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false</enabled>
6269  13:44:05.534536 execve("/usr/lib/jvm/java-23-openjdk/bin/java", ["/usr/lib/jvm/java-23-openjdk/bin"..., "-classpath", "/usr/lib/libreoffice/program", "JREProperties"], 0x7ffee166f4c0 /* 77 vars */ <unfinished ...>
6271  13:44:05.578980 newfstatat(AT_FDCWD, "/usr/lib/libreoffice/program/JREProperties.class",  <unfinished ...>
6271  13:44:05.579167 openat(AT_FDCWD, "/usr/lib/libreoffice/program/JREProperties.class", O_RDONLY) = 4
6271  13:44:05.579977 newfstatat(AT_FDCWD, "/usr/lib/libreoffice/program/JREProperties.class",  <unfinished ...>
6271  13:44:05.580036 read(4, "File\1\0\22JREProperties.java\0!\0W\0\2\0"..., 411) = 411

java23 iscertainly now used.

Things end after

6289  13:44:05.839531 statfs("/usr/lib/libreoffice/program/../share/registry/Langpack-pt-BR.xcd", {f_type=EXT2_SUPER_MAGIC, f_bsize=4096, f_blocks=90228103, f_bfree=44644019, f_bavail=40469435, f_files=22937600, f_ffree=20881306, f_fsid={val=[0xb49d28db, 0x2b90fc50]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0
6289  13:44:05.839564 openat(AT_FDCWD, "/usr/lib/libreoffice/program/../share/registry/Langpack-pt-BR.xcd", O_RDONLY|O_CLOEXEC) = 17
LC_ALL=C.utf8 libreoffice # or just
LC_ALL=C libreoffice # or

Edit: also post your locale config

localectl
locale
locale -a

Last edited by seth (2025-03-12 16:57:15)

Offline

#30 2025-03-12 17:17:21

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

$ LC_ALL=C.utf8 libreoffice
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ LC_ALL=C libreoffice
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

"pacman -Qi" was giving weird info about libreoffice-fresh-pt-br package, with "Size 0" and other info as "unknown".
Then I uninstalled the package, tried to reinstall it and got lots of "<file> exists in filesystem" warnings.
I have successfully reinstalled the package with:

$ sudo pacman -S libreoffice-fresh-pt-br --overwrite usr/lib/*

Now my LO is working again! \o/
Thank you very much, seth and tekstryder, for the help.

Offline

#31 2025-03-12 17:25:31

tekstryder
Member
Registered: 2013-02-14
Posts: 505

Re: [Solved] Cannot open libreoffice due to crash

seth wrote:

Afaiu #25 it's actually LO that alters the config

Right. Well that's an interesting catch-22.

Anyway, could simply be an outdated/unofficial language pack. They're kept in sync with release tho:

extra/libreoffice-fresh-br 25.2.1-1
    Breton language pack for LibreOffice Fresh
extra/libreoffice-still-br 24.8.5-1
    Breton language pack for LibreOffice still

EDIT: I'm late as usual

Last edited by tekstryder (2025-03-12 17:27:02)

Offline

Board footer

Powered by FluxBB