Bug 143271 - LibreOffice suite: Crash on startup if "Lohit" fonts are not installed
Summary: LibreOffice suite: Crash on startup if "Lohit" fonts are not installed
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-09 03:03 UTC by Aidan K
Modified: 2021-07-10 07:43 UTC (History)
1 user (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 Aidan K 2021-07-09 03:03:40 UTC
Description:
Recently, I removed some non-English fonts from my system. After removing the fonts-lohit* packages and updating the fonts cache, none of the LibreOffice programs open any longer. The icon appears briefly in the taskbar but then disappears in about a second. No error message appears. Opening with sudo from the terminal does work. Here is the result of a backtrace using Writer:

warning: Currently logging to gdbtrace.log.  Turn the logging off and on to make the new setting effective.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 7712]
warning: Corrupted shared library list: 0x55ff6c6fbe40 != 0x55ff6c6f7330
[New Thread 0x7f1ee11ae640 (LWP 7729)]
[New Thread 0x7f1ee09a8640 (LWP 7730)]
[Thread 0x7f1ee11ae640 (LWP 7729) exited]
[Thread 0x7f1ee253a000 (LWP 7708) exited]
[Inferior 1 (process 7708) exited with code 01]
/usr/lib/libreoffice/program/gdbtrace:9: Error in sourced command file:
No stack.

Neither running in safe mode or deleting/recreating the user config folder helps.

If these font packages are reinstalled (along with cache update & reboot), LibreOffice opens again. I tried to single out a package that was causing issues, but the only solution was reinstalling the whole group at once (sudo apt install fonts-lohit*).

Steps to Reproduce:
1. Remove Lohit fonts using apt: sudo apt remove fonts-lohit*
2. Update fonts cache: sudo fc-cache -frv
3. Reboot
4. Open LibreOffice (through GUI or terminal)

Actual Results:
LibreOffice crashes immediately on startup

Expected Results:
LibreOffice opens normally with the fonts in question no longer listed


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.4-0ubuntu0.21.04.1
Calc: threaded

Kubuntu 21.04
Comment 1 Julien Nabet 2021-07-09 10:03:57 UTC
Could you give a try at https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile ?
Comment 2 Aidan K 2021-07-09 16:29:08 UTC
(In reply to Julien Nabet from comment #1)
> Could you give a try at
> https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile ?

I renamed the user dir to user-old, then launched. A new user directory appeared, but still no luck.
Comment 3 [REDACTED] 2021-07-09 17:23:25 UTC
Can't reproduce (on kubuntu 21.04)

Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: kf5
Locale: de-DE (de_DE.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.4-0ubuntu0.21.04.1
Calc: threaded
Comment 4 [REDACTED] 2021-07-09 17:32:58 UTC
(In reply to Aidan K from comment #0)

> CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
> Kubuntu 21.04

I'm wondering why you see "VCL: gtk3" while you are on Kubuntu, which is the KDE flavor of Ubuntu and you should have "VCL: kf5" (KDE Frameworks 5). Could you please try following command in a terminal:

SAL_USE_VCLPLUGIN=kf5 libreoffice

Does it work this way?
Comment 5 Aidan K 2021-07-10 00:38:27 UTC
No matter what I do, I'm now (thankfully?) unable to reproduce the issue. LibreOffice opens every time, with or without the Lohit fonts.
Comment 6 Aidan K 2021-07-10 00:39:52 UTC
(In reply to Uwe Auer from comment #4)
> (In reply to Aidan K from comment #0)
> 
> > CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
> > Kubuntu 21.04
> 
> I'm wondering why you see "VCL: gtk3" while you are on Kubuntu, which is the
> KDE flavor of Ubuntu and you should have "VCL: kf5" (KDE Frameworks 5).
> Could you please try following command in a terminal:
> 
> SAL_USE_VCLPLUGIN=kf5 libreoffice
> 
> Does it work this way?

Though I have gotten the program working, this command still opens LO with gtk3.
Comment 7 QA Administrators 2021-07-10 03:47:44 UTC Comment hidden (obsolete)
Comment 8 Julien Nabet 2021-07-10 07:43:09 UTC
Let's put this one to WFM then.

If you reproduce this again, don't hesitate to reopen this tracker of course.