Bug 155498 - LibreOffice starts slow Arch
Summary: LibreOffice starts slow Arch
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL: https://gitlab.gnome.org/GNOME/xdg-de...
Whiteboard:
Keywords:
Depends on:
Blocks: Performance
  Show dependency treegraph
 
Reported: 2023-05-25 20:21 UTC by Michael Schönitzer
Modified: 2023-06-19 06:09 UTC (History)
3 users (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 Michael Schönitzer 2023-05-25 20:21:54 UTC
Description:
Libreoffice takes ~ 45 seconds to start on my decent arch linux computer (NVME, 6-core i5, 16GB). The behavior most likely started a few weeks ago. The progress bar is pausing quite some time on ~1/3 and again on 1/2.

I tried the following versions:
- libreoffice-still (7.4.7-2) from arch repos
- libreoffice-fresh (7.5.3-2) from arch repos
- org.libreoffice.LibreOffice (7.5.3.2) from flatpack



Steps to Reproduce:
1. Start libreoffice (via menu or terminal)

Actual Results:
~45 seconds start time

Expected Results:
~3 seconds start time


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version information from LO about dialog (flatpack version):
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 6; OS: Linux 6.3; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
7.5.3-2
Calc: threaded

I tried the following – without success:
- Start in safe mode (no difference)
- Remove .config/libreoffice
- Cleared, last used in LO as well as in desktop
- Disable CUPS
- Started with and without sandboxing
- Change java version as well as disabling java

strace shows that the long start is (mainly?) due to two reads which time-out. The terminal output shows a few errors, but I think those happened before:
```
(soffice:121124): GLib-GObject-CRITICAL **: 22:14:05.798: invalid (NULL) pointer instance

(soffice:121124): GLib-GObject-CRITICAL **: 22:14:05.798: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:121124): GLib-GObject-CRITICAL **: 22:14:30.929: invalid (NULL) pointer instance

(soffice:121124): GLib-GObject-CRITICAL **: 22:14:30.929: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
```

OS: Arch Linux, 64bits, X11, Mate
Comment 1 Stéphane Guillou (stragu) 2023-05-26 06:31:40 UTC
Are you able to provide a version number that didn't have the slowdown?
Does it happen with all components of LibreOffice?
Comment 2 BAD-MAD 2023-05-30 15:19:54 UTC
I had the same problem on arch.
In my case the problem could be solved by:

first:

sudo -u $(whoami) libreoffice

...works in my case

or

pacaur -Rns xdg-desktop-portal flatpak

or

pacaur -Rns xdg-desktop-portal xdg-desktop-portal-gnome xdg-desktop-portal-gtk flatpak

I think, that the problem is the "xdg-desktop-portal".

Hope that helps.
Comment 4 Michael Schönitzer 2023-05-31 01:10:40 UTC
Yes, uninstalling xdg-desktop-portal-gnome solved the problem. (No need to uninstall more than those, for me)
Thanks!

So this probably can be closed.
Comment 5 QA Administrators 2023-05-31 03:16:58 UTC Comment hidden (obsolete)
Comment 6 Stéphane Guillou (stragu) 2023-05-31 09:25:03 UTC
Thank you for testing and following-up! :)