xournal extremely slow to initialize
Brought to you by:
andreasb123,
auroux
I recently installed xournal on my new laptop (Thinkpad X1 Carbon, running Ubuntu 20.04.1 LTS).
It takes a very long time to start: about 25 s. After that it seems to work normally. I can't imagine what it's doing during those 25 s. To check whether Ubuntu screwed it up, I installed it from scratch using the sourceforge download, but got exactly the same behavior.
I also can't imagine what it's doing during all that time, apart from a network timeout of some sort in the initialization of some library that xournal relies on. It does sound like something is messed up with your system. Do any other GTK2 or Gnome applications slow down at start (for example... gimp? eog?)
I know this was about an older release of Ubuntu, but just in case, see
https://askubuntu.com/questions/1184774/some-applications-on-ubuntu-19-10-very-slow-to-start
pointing back to an even older issue
https://bbs.archlinux.org/viewtopic.php?id=230036
The latter especially says that 25 seconds is the standard timeout delay when dbus is unable to connect to something (X server, etc.). I have no idea which of the GTK dependencies causes dbus to be necessary to run Xournal, we certainly don't use it directly, but eventually one dependency relying on another one and so on... dbus is a fairly common piece of infrastructure for GTK/Gnome applications. Based on the coincidence of the 25-second delay, and the lack of other reports of this issue with xournal, I would assume that it's an issue with dbus on your system. I am afraid I can't really figure out further what the problem is, as I'm not very familiar with Ubuntu. I hope some of the potential fixes offered in the bug reports above will help you sort it out, or at least determine whether the problem is with dbus. (also try other internet searches related to ubuntu 20.04 dbus slowdown ... ? I didn't see anything obvious, except for a large number of slowdowns of GTK applications at startup being caused by dbus errors).
Hope this helps.
Denis
Yes, if I do "dbus-launch xournal" or run xournal as root, there is no
delay, so definitely a dbus issue. thanks again!
On Mon, 30 Nov 2020, Denis Auroux wrote:
Related
Bugs: #216
Hi Denis, I think you nailed it; I will investigate further. Thanks very
much for your suggestion. regards, Jim
On Mon, 30 Nov 2020, Denis Auroux wrote:
Related
Bugs: #216