Bug 169756 - Office programs fail with runtime exception when starting from command line
Summary: Office programs fail with runtime exception when starting from command line
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-30 14:29 UTC by Wungsten
Modified: 2026-01-17 11:16 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Filter Selection dialogue (12.31 KB, image/png)
2025-11-30 14:45 UTC, Wungsten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wungsten 2025-11-30 14:29:58 UTC
Description:
Both of these commands fail, when run from a Linux Bash prompt.

/usr/bin/soffice --calc "/home/ME/rest of path/My spreadsheet.ods"
/usr/bin/soffice --writer "/home/ME/rest of path/My doc.odt"

(Both the documents are fine, and open normally from the GUI.)

In both cases, a Filter Selection dialogue appears, offering choices:
OpenOffice.org 1.0 Chart
Help content
ODF chart

Choosing options 1 or 3 causes an exception, stack trace below.
Option 2 shows an error dialogue:
 
Component cannot be loaded, possibly broken or incomplete installation.
Full error message:
 loading component library <file:///usr/lib/libreoffice/program/libswlo.so> failed.

I do not have that file, but I had no installation errors.

Stack trace
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Fatal exception: Signal 6
Stack:
#0 /usr/lib/libreoffice/program/libuno_sal.so.3(_ZN3sal13backtrace_getEj+0x39) [0x776c8f3cc0b9]
#1 /usr/lib/libreoffice/program/libuno_sal.so.3(+0x434db) [0x776c8f3d74db]
#2 /usr/lib/libreoffice/program/libuno_sal.so.3(+0x43732) [0x776c8f3d7732]
#3 /lib/x86_64-linux-gnu/libc.so.6(+0x45330) [0x776c88845330]
#4 /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x11c) [0x776c8889eb2c]
#5 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x1e) [0x776c8884527e]
#6 /lib/x86_64-linux-gnu/libc.so.6(abort+0xdf) [0x776c888288ff]
#7 /lib/x86_64-linux-gnu/libstdc++.so.6(+0xa5ff5) [0x776c884a5ff5]
#8 /lib/x86_64-linux-gnu/libstdc++.so.6(+0xbb0da) [0x776c884bb0da]
#9 /lib/x86_64-linux-gnu/libstdc++.so.6(__cxa_call_terminate+0x33) [0x776c884a58e6]
#10 /lib/x86_64-linux-gnu/libstdc++.so.6(__gxx_personality_v0+0x31a) [0x776c884ba8ba]
#11 /lib/x86_64-linux-gnu/libgcc_s.so.1(+0x22b06) [0x776c8f263b06]
#12 /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0x12d) [0x776c8f2645cd]
#13 /usr/lib/libreoffice/program/libmergedlo.so(+0x16f508c) [0x776c8a2f508c]
#14 /usr/lib/libreoffice/program/libuno_sal.so.3(+0x1ac92) [0x776c8f3aec92]
#15 /usr/lib/libreoffice/program/libuno_sal.so.3(+0x43674) [0x776c8f3d7674]
#16 /lib/x86_64-linux-gnu/libc.so.6(+0x45330) [0x776c88845330]
#17 /usr/lib/libreoffice/program/libmergedlo.so(+0x4af9593) [0x776c8d6f9593]
#18 /usr/lib/libreoffice/program/libmergedlo.so(+0x4af9785) [0x776c8d6f9785]
#19 /usr/lib/libreoffice/program/libmergedlo.so(_ZN27SvXMLLegacyToFastDocHandler10endElementERKN3rtl8OUStringE+0x78) [0x776c8d5a46f8]
#20 /usr/lib/libreoffice/program/libmergedlo.so(+0x4c8c078) [0x776c8d88c078]
#21 /usr/lib/libreoffice/program/libmergedlo.so(+0x2dadd9b) [0x776c8b9add9b]
#22 /lib/x86_64-linux-gnu/libexpat.so.1(+0xaa70) [0x776c876c0a70]
#23 /lib/x86_64-linux-gnu/libexpat.so.1(+0xb773) [0x776c876c1773]
#24 /lib/x86_64-linux-gnu/libexpat.so.1(+0x446f) [0x776c876ba46f]
#25 /lib/x86_64-linux-gnu/libexpat.so.1(XML_ParseBuffer+0x9e) [0x776c876c73ce]
#26 /usr/lib/libreoffice/program/libmergedlo.so(+0x2dac81b) [0x776c8b9ac81b]
#27 /usr/lib/libreoffice/program/libmergedlo.so(+0x2dad4cb) [0x776c8b9ad4cb]
#28 /usr/lib/libreoffice/program/libmergedlo.so(+0x1c48ab9) [0x776c8a848ab9]
#29 /usr/lib/libreoffice/program/libmergedlo.so(+0x1c499e2) [0x776c8a8499e2]
#30 /usr/lib/libreoffice/program/libmergedlo.so(+0x1c4a9a6) [0x776c8a84a9a6]
#31 /usr/lib/libreoffice/program/libmergedlo.so(+0x1c7823d) [0x776c8a87823d]
#32 /usr/lib/libreoffice/program/libmergedlo.so(+0x1c786da) [0x776c8a8786da]
#33 /usr/lib/libreoffice/program/libmergedlo.so(+0x1b24818) [0x776c8a724818]
#34 /usr/lib/libreoffice/program/libmergedlo.so(+0x26f66c2) [0x776c8b2f66c2]
#35 /usr/lib/libreoffice/program/libmergedlo.so(+0x26f9032) [0x776c8b2f9032]
#36 /usr/lib/libreoffice/program/libmergedlo.so(+0x26f9739) [0x776c8b2f9739]
#37 /usr/lib/libreoffice/program/libmergedlo.so(+0x2618b2d) [0x776c8b218b2d]
#38 /usr/lib/libreoffice/program/libmergedlo.so(+0x2619874) [0x776c8b219874]
#39 /usr/lib/libreoffice/program/libmergedlo.so(_ZN10comphelper19SynchronousDispatch8dispatchERKN3com3sun4star3uno9ReferenceINS4_10XInterfaceEEERKN3rtl8OUStringESD_RKNS4_8SequenceINS3_5beans13PropertyValueEEE+0x363) [0x776c8aa4c893]
#40 /usr/lib/libreoffice/program/libmergedlo.so(+0x32862b8) [0x776c8be862b8]
#41 /usr/lib/libreoffice/program/libmergedlo.so(+0x328d1a7) [0x776c8be8d1a7]
#42 /usr/lib/libreoffice/program/libmergedlo.so(+0x326ee7c) [0x776c8be6ee7c]
#43 /usr/lib/libreoffice/program/libmergedlo.so(+0x327044a) [0x776c8be7044a]
#44 /usr/lib/libreoffice/program/libmergedlo.so(+0x431e6f1) [0x776c8cf1e6f1]
#45 /usr/lib/libreoffice/program/libmergedlo.so(_ZN16SalUserEventList18DispatchUserEventsEb+0x147) [0x776c8d1e2937]
#46 /usr/lib/libreoffice/program/libvclplug_genlo.so(+0x2c5ab) [0x776c825025ab]
#47 /usr/lib/libreoffice/program/libvclplug_genlo.so(+0x2c62c) [0x776c8250262c]
#48 /usr/lib/libreoffice/program/libvclplug_genlo.so(+0x2a25b) [0x776c8250025b]
#49 /usr/lib/libreoffice/program/libmergedlo.so(+0x463720e) [0x776c8d23720e]
#50 /usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application7ExecuteEv+0x73) [0x776c8d237cd3]
#51 /usr/lib/libreoffice/program/libmergedlo.so(+0x3273065) [0x776c8be73065]
#52 /usr/lib/libreoffice/program/libmergedlo.so(_Z10ImplSVMainv+0x51) [0x776c8d2422f1]
#53 /usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0x94) [0x776c8be92254]
#54 /usr/lib/libreoffice/program/soffice.bin(+0x10b7) [0x649cc5ee10b7]
#55 /lib/x86_64-linux-gnu/libc.so.6(+0x2a1ca) [0x776c8882a1ca]
#56 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b) [0x776c8882a28b]
#57 /usr/lib/libreoffice/program/soffice.bin(+0x10f5) [0x649cc5ee10f5]



Steps to Reproduce:
1. Use an existing .odt or .ods
2. In a terminal window, enter the command
/usr/bin/soffice --[COMPONENT] [DOCUMENT NAME/PATH]
3. Choose "OpenOffice.org 1.0 Chart" or "ODF chart" from the Filter Selection list.

Actual Results:
After OK-ing the Filter Selection dialogue, a full-screen black window briefly appears, then the stack trace is output to the terminal window.

Expected Results:
Expect the document to open normally.


Reproducible: Always


User Profile Reset: No

Additional Info:
Libre Office version
Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Operating system version
Linux Mint 22.2
Kernel 6.8.0-88-generic
Comment 1 Wungsten 2025-11-30 14:45:18 UTC
Created attachment 204345 [details]
Filter Selection dialogue
Comment 2 Samuel Fogh 2025-12-01 11:16:01 UTC
I don't think your problem can be fixed by LibreOffice developers, it's 
a problem with the package you've installed.

On Mint you should have that file, it's part of the package 
libreoffice-writer.

I see that your version of LibreOffice is more recent than the package 
available in Mint 22.2, so you probably installed LibreOffice from some 
other source. If that's the case, you should report the bug there.

You could also try the Linux Mint forums.
Comment 3 Wungsten 2025-12-01 11:29:01 UTC
LibreOffice_25.8.3_Linux_x86-64_deb.tar.gz was downloaded from https://www.mirrorservice.org/sites/download.documentfoundation.org/tdf/libreoffice/stable/25.8.3/deb/x86_64/LibreOffice_25.8.3_Linux_x86-64_deb.tar.gz on 16 November 2025. Surely that is an official mirror for Libre Office?

I deliberately installed the latest version because of my continuing efforts to get some progress on bug 167547.

Considering these two bugs together, which version would you advise me to use?

I will further investigate the missing libswlo.so
Comment 4 Wungsten 2025-12-01 14:14:55 UTC
I found the 'missing' file, it was installed in /opt/libreoffice25.8/program/ .

This command was issued:

sudo ln /opt/libreoffice25.8/program/libswlo.so /usr/lib/libreoffice/program/libswlo.so

but it made no difference! Again, I tried
/usr/bin/soffice --writer "/home/ME/rest of path/My doc.odt"

and selected 'Help content' in the Filter Selection dialogue. I got just the same error, claiming the file I had created was still missing.

I think there is something wrong around the Filter Selection dialogue:
*  Why does it not recognise a document from its extension or other stuff in the file?
*  Why does it **only** offer irrelevant choices?
*  Why does it claim a valid file is missing?

I don't especially want answers to these questions, I just want to be able to open my documents from a command prompt.

Addition information about libswlo.so :

$ ls -lt /usr/lib/libreoffice/program/libswlo.so
-rwxr-xr-x 2 root root 19966752 Nov  6 14:34 /usr/lib/libreoffice/program/libswlo.so

$ file /usr/lib/libreoffice/program/libswlo.so
/usr/lib/libreoffice/program/libswlo.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=c27ecd4789ef1e859d30819217d0d049622861ff, stripped
Comment 5 Wungsten 2026-01-17 11:16:10 UTC
Seems OK now, after a fresh install.

Please close.