Recently (ver 7.4) the startup speed of LibreOffice Calc went from 20 seconds to 70seconds, even with an empty sheet. Other programs like Gnumeric start up in 2 seconds.
I already tried clearing the recent file history, starting in safe mode, also tried ver 7.5 without improvement.
Starting Writer is also just as slow.
I am using Arch Linux, and pulled the standard packages from the repository.
Try to rename the user directory for LibreOffice:
It is in your home folder .config/libreoffice/4
. Set this to 4old
.
Have installed over 30 different versions from LO here for testing (OpenSuSE 15.4 64bit rpm Linux). LO start here in about 3 seconds.
Often a problem: Not available printers on the network, or other network-related stuff. Good test for this: Switch off network (Wifi or cable). If this speeds up things, start to find the culprit…
With the renamed config (to 4old) Calc will not load at all. Over 5 minutes with splash screen and progress bar seems to be at 100%.
I renamed the directory back (to 4) and it did start up in 52 seconds. Maybe the journal will show something helpful.
09.05.2023 11:36:19:458 | dbus-daemon | [session uid=1000 pid=1063] Failed to activate service ‘org.freedesktop.portal.Desktop’: timed out (service_start_timeout=120000ms) |
---|---|---|
09.05.2023 11:36:19:551 | dbus-daemon | [session uid=1000 pid=1063] Failed to activate service ‘org.freedesktop.impl.portal.desktop.gnome’: timed out (service_start_timeout=120000ms) |
09.05.2023 11:36:30:711 | dbus-daemon | [session uid=1000 pid=1063] Activating via systemd: service name=‘org.freedesktop.portal.Desktop’ unit=‘xdg-desktop-portal.service’ requested by ‘:1.267’ (uid=1000 pid=17712 comm=/usr/lib/libreoffice/program/soffice.bin --calc --) |
09.05.2023 11:36:30:740 | systemd | Starting Portal service… |
09.05.2023 11:36:30:761 | dbus-daemon | [session uid=1000 pid=1063] Activating via systemd: service name=‘org.freedesktop.impl.portal.desktop.gnome’ unit=‘xdg-desktop-portal-gnome.service’ requested by ‘:1.268’ (uid=1000 pid=17718 comm=/usr/lib/xdg-desktop-portal) |
09.05.2023 11:36:30:762 | systemd | Current graphical user session is inactive. |
09.05.2023 11:36:30:762 | systemd | Dependency failed for Portal service (GNOME implementation). |
09.05.2023 11:36:30:762 | systemd | xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result ‘dependency’. |
09.05.2023 11:36:55:801 | rtkit-daemon | Supervising 14 threads of 2 processes of 1 users. |
09.05.2023 11:36:55:802 | rtkit-daemon | Supervising 14 threads of 2 processes of 1 users. |
09.05.2023 11:36:55:802 | rtkit-daemon | Supervising 14 threads of 2 processes of 1 users. |
09.05.2023 11:37:20:820 | user@1000.service | Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached |
After shutting off the network, there did not seem to be any improvement. Here ius the journal log during the Calc startup time:
09.05.2023 11:42:56:210 | dbus-daemon | [session uid=1000 pid=1063] Activating service name=‘org.xfce.Xfconf’ requested by ‘:1.16’ (uid=1000 pid=1177 comm=xfce4-panel) |
---|---|---|
09.05.2023 11:42:56:219 | dbus-daemon | [session uid=1000 pid=1063] Successfully activated service ‘org.xfce.Xfconf’ |
09.05.2023 11:43:18:937 | dbus-daemon | [session uid=1000 pid=1063] Activating via systemd: service name=‘org.freedesktop.portal.Desktop’ unit=‘xdg-desktop-portal.service’ requested by ‘:1.270’ (uid=1000 pid=17958 comm=/usr/lib/libreoffice/program/soffice.bin --calc --) |
09.05.2023 11:43:18:956 | systemd | Starting Portal service… |
09.05.2023 11:43:19:015 | dbus-daemon | [session uid=1000 pid=1063] Activating via systemd: service name=‘org.freedesktop.impl.portal.desktop.gnome’ unit=‘xdg-desktop-portal-gnome.service’ requested by ‘:1.271’ (uid=1000 pid=17964 comm=/usr/lib/xdg-desktop-portal) |
09.05.2023 11:43:19:015 | systemd | Current graphical user session is inactive. |
09.05.2023 11:43:19:015 | systemd | Dependency failed for Portal service (GNOME implementation). |
09.05.2023 11:43:19:016 | systemd | xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result ‘dependency’. |
09.05.2023 11:43:44:059 | rtkit-daemon | Supervising 14 threads of 2 processes of 1 users. |
09.05.2023 11:43:44:059 | rtkit-daemon | Supervising 14 threads of 2 processes of 1 users. |
09.05.2023 11:43:44:060 | rtkit-daemon | Supervising 14 threads of 2 processes of 1 users. |
09.05.2023 11:44:09:084 | user@1000.service | Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached |
Is there any process running for LibreOffice (soffice) when renaming the profile? Every time I reset the user folder for LO as described a new user folder will be created. But I won’t do this when LibreOffice process is already opened.
No LO processes were running at the time of renaming. I tried again after a reboot (to be sure), and with the renamed directory (4old), LO does not open after waiting about 5min. Renaming the folder back to 4 allow LO to open in ~58 seconds.
Also, no “office” processes were found in “ps ax” before renaming the folder or starting LO.
So there is something running totally wrong with LO version of your distribution. There are no packages for Arch available directly from LO.
Could you write a bug for this in Arch bugtracker?
OK, I will do that. Oops, I just put up a bugzilla bug report.
Solved the problem from the ArcoLinux Discord server comments today, remove:
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome