[Bug 1852016] Re: Applications delayed on launch

Gregor Snak 1852016 at bugs.launchpad.net
Fri Aug 14 12:43:28 UTC 2020


This is still broken in Ubuntu 20.04 except now "/usr/bin/dbus-launch
--exit-with-session openbox --startup $HOME/.config/openbox/autostart"
doesn't work. The only thing that still works is "dbus-launch ./some-
lazarus-compiled-app".

If I for example run xterm first "dbus-launch xterm" and run lazarus app
in that xterm it is slow again because the fix is not "inherited".

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dbus in Ubuntu.
https://bugs.launchpad.net/bugs/1852016

Title:
  Applications delayed on launch

Status in dbus package in Ubuntu:
  Confirmed

Bug description:
  Hello,

  i am unsure if this is really a problem with dbus but my first
  research showed it could be related to dbus.

  1.) 
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 19.10
  Release:	19.10
  Codename:	eoan

  Ubuntu Budgie on T460 with 256GB SSD and 16GB RAM

  2.)
  dbus:
    Installed: 1.12.14-1ubuntu2
    Candidate: 1.12.14-1ubuntu2
    Version table:
   *** 1.12.14-1ubuntu2 500
          500 http://de.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
          100 /var/lib/dpkg/status

  3.) I've expected just "normal" loading applications

  4.) Some applications are delayed at startup. The application will
  take around 30s to launch, but afterwards it just runs fine. Affected
  application I found so far are KeepassXC, Filezilla and OnlyOffice
  Desktop-Editor. From strace I saw this applications are stopping (for
  about 20-30s) at this point:

  connect(12, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, 110) = 0
  getpid()                                = 8165
  geteuid()                               = 1000
  getegid()                               = 1000
  getpid()                                = 8165
  geteuid()                               = 1000
  getegid()                               = 1000
  sendmsg(12, {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=8165, uid=1000, gid=1000}}], msg_controllen=32, msg_flags=0}, MSG_NOSIGNAL) = 1
  sendto(12, "AUTH\r\n", 6, MSG_NOSIGNAL, NULL, 0) = 6
  recvfrom(12, "REJECTED EXTERNAL\r\n", 4096, 0, NULL, NULL) = 19
  sendto(12, "AUTH EXTERNAL 31303030\r\n", 24, MSG_NOSIGNAL, NULL, 0) = 24
  recvfrom(12, "OK 7f079149c4e5e774135107445dc85"..., 4096, 0, NULL, NULL) = 37
  sendto(12, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19
  recvfrom(12, "AGREE_UNIX_FD\r\n", 4096, 0, NULL, NULL) = 15
  sendto(12, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7
  write(15, "\1\0\0\0\0\0\0\0", 8)        = 8
  eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 14
  write(14, "\1\0\0\0\0\0\0\0", 8)        = 8
  write(15, "\1\0\0\0\0\0\0\0", 8)        = 8
  poll([{fd=14, events=POLLIN}], 1, 25000) = 1 ([{fd=14, revents=POLLIN}])
  read(14, "\1\0\0\0\0\0\0\0", 16)        = 8
  poll([{fd=14, events=POLLIN}], 1, 25000

  
  During my first research I found this following to topics related to the issue:
  https://askubuntu.com/questions/1184774/some-applications-on-ubuntu-19-10-very-slow-to-start

  This Stackoverflow topic links to the archlinux forum:
  https://bbs.archlinux.org/viewtopic.php?id=230036

  I can confirm that running the delayed applications with "dbus-launch
  --exit-with-session application" or by running it as root they are all
  starting without any delay.

  Thanks for your help! Let me know if you need any further information.

  Best Regards,
  Sebastian

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions



More information about the foundations-bugs mailing list