Recent

Author Topic: Solved: slow start of lazarus 2.2.0 on Ubuntu 20.04.3 and Zorin 16 64-bit.  (Read 1273 times)

gwiesenekker

  • New Member
  • *
  • Posts: 13
Hi,

I just upgraded lazarus to version 2.2.0 but the IDE takes a long time (about 20 seconds) to start on Ubuntu 20.04.3 and Zorin 16 64-bit. I got a 'StartLazarus is not responding' dialogbox, I hit 'Wait' a couple of times and after 20 seconds the IDE would start. Once started it seemed to run fine. The debug log revealed nothing but an

Code: [Select]
$ strace lazarusshowed that it was waiting here:

Code: [Select]
sendmsg(11, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0", iov_len=1}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=66572, uid=1000, gid=1000}}], msg_controllen=32, msg_flags=0}, MSG_NOSIGNAL) = 1
sendto(11, "AUTH\r\n", 6, MSG_NOSIGNAL, NULL, 0) = 6
recvfrom(11, "REJECTED EXTERNAL\r\n", 4096, 0, NULL, NULL) = 19
sendto(11, "AUTH EXTERNAL 31303030\r\n", 24, MSG_NOSIGNAL, NULL, 0) = 24
recvfrom(11, "OK e94c642743e04e463f111d8861e79"..., 4096, 0, NULL, NULL) = 37
sendto(11, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19
recvfrom(11, "AGREE_UNIX_FD\r\n", 4096, 0, NULL, NULL) = 15
sendto(11, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7
write(14, "\1\0\0\0\0\0\0\0", 8)        = 8
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 13
write(13, "\1\0\0\0\0\0\0\0", 8)        = 8
write(14, "\1\0\0\0\0\0\0\0", 8)        = 8
poll([{fd=13, events=POLLIN}], 1, 25000) = 1 ([{fd=13, revents=POLLIN}])
read(13, "\1\0\0\0\0\0\0\0", 16)        = 8
poll([{fd=13, events=POLLIN}], 1, 25000

A Google search on 'lazarus SCM_CREDENTIALS' revealed that this is a known issue that can be resolved by installing the appmenu-gtk2-module package. You have to logout/login after installing the package.

Regards,
GW

dbannon

  • Hero Member
  • *****
  • Posts: 2021
    • tomboy-ng, a rewrite of the classic Tomboy
Yeah gwiesenekker, its been a problem for awhile.

I suspect appmenu-gtk2-module has not been added to the official list of Lazarus dependencies because its not needed (and may not even be available) by all distributions. In actual fact, appmenu-gtk2-module should really be a dependency of GTK2.

Maybe a note on the Installing on Linux page .....

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Zvoni

  • Hero Member
  • *****
  • Posts: 1185
That's the main reason why i moved from Ubuntu/Gnome to Manjaro/Cinnamon in late 2019. Never regretted it.

Agree with Davo: Should be on the "Install on Linux"-Wiki with the qualifier "for Debian/Ubuntu"

Though, i admit i haven't checked on my Manjaro if appmenu-gtk2 is installed out-of-the-box or not....
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018