geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Startup delay of 25s.

Open rewolff opened this issue 4 years ago • 5 comments

Tested master: Same behaviour as Ubuntu 20.04 default version.

ISSUE TYPE

  • Bug Report

GEEQIE VERSION

Geeqie 1.6+git20201202-b4032ccb
Geeqie 1.5.1

Latter is default ubuntu 20.04 version.

Instructions in readme.md told me to do "./autogen.sh" and then that told me to do "make" I did not do "./configure". 

OS / DISTRIBUTION

Ubuntu 20.04

SUMMARY

When starting geeqie. it waits for 25 seconds before opening the window.

Context: I use a text-based email program, so when someone sends me 4 attached images I need to start geeqie 4 times on the individual images. Annoying enough when that's a remote X connection that takes a couple of seconds to start up....

STEPS TO REPRODUCE

I suspect that it is relevant that I run my mailprogram on my headless fileserver.

I have straced geeqie. The 25 second delay happens in: poll([{fd=7, events=POLLIN}], 1, 25000) = 0 (Timeout)(it's fd=8 on the stock ubuntu version).

This filedescriptor is opened:

1607170947.658945 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 7
1607170947.659433 connect(7, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, 110) = 0

and a few messages are exchanged.

I don't know how to debug these "bus" problems. So I can't report on what it is trying to do with this.

Probably very useful for some people what it is trying to do, but for me it seems useless. After the 25 second waiting without result, it continues and works just fine. I tried searching for the 25seconds but on first attempt it was not in the geeqie source but probably somewhere in a library. So I didn't pursue.

rewolff avatar Dec 05 '20 12:12 rewolff

I can confirm this behavior on Linux Mint 20, Geeque 1.51. Extremely slow start, regardless of how many files are in the startup folder. I'm no programmer at all but I think such a long delay may happen when the filesystem is checked (or its contents) during startup. On a clean, fresh install there was barely a delay - same behaviour as on previous version on LM 18 - now the SDD is quite full with a lot of different files and it takes way longer to start. After the start however, it works as a charm ;-)

Walker7401 avatar Mar 14 '21 21:03 Walker7401

It is doing something like a "colorspace lookup". It communicates with the "systembus" and makes a few calls that go unanswered. Maybe because I run "mail" and thus "view attachment" on my headless server. Anyway, on Ubuntu 20.04 the problem has gone away after about half a year.

rewolff avatar Mar 15 '21 06:03 rewolff

I am still seeing this today on Ubuntu 20.04, Geeqie 1.5.1 ....

1167911 1626138620.651458 connect(9, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, 110) = 0
1167911 1626138620.651556 getpid()      = 1167911
1167911 1626138620.651618 geteuid()     = 1000
1167911 1626138620.651663 getegid()     = 1000
1167911 1626138620.651709 getpid()      = 1167911
1167911 1626138620.651751 geteuid()     = 1000
1167911 1626138620.651792 getegid()     = 1000
1167911 1626138620.651838 sendmsg(9, {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=1167911, uid=1000, gid=1000}}], msg_controllen=32, msg_flags=0},
 MSG_NOSIGNAL) = 1
1167911 1626138620.651915 sendto(9, "AUTH\r\n", 6, MSG_NOSIGNAL, NULL, 0) = 6
1167911 1626138620.652008 recvfrom(9, "REJECTED EXTERNAL\r\n", 4096, 0, NULL, NULL) = 19
1167911 1626138620.652084 sendto(9, "AUTH EXTERNAL 31303030\r\n", 24, MSG_NOSIGNAL, NULL, 0) = 24
1167911 1626138620.652145 recvfrom(9, "OK 7ecd4ce6b514444eee5e2b5660eb5"..., 4096, 0, NULL, NULL) = 37
1167911 1626138620.652205 sendto(9, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19
1167911 1626138620.652266 recvfrom(9, "AGREE_UNIX_FD\r\n", 4096, 0, NULL, NULL) = 15
1167911 1626138620.652324 sendto(9, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7
1167911 1626138620.652390 write(12, "\1\0\0\0\0\0\0\0", 8) = 8
1167911 1626138620.652449 eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 11
1167911 1626138620.652498 write(11, "\1\0\0\0\0\0\0\0", 8) = 8
1167911 1626138620.652568 write(12, "\1\0\0\0\0\0\0\0", 8) = 8
1167911 1626138620.652621 poll([{fd=11, events=POLLIN}], 1, 25000) = 1 ([{fd=11, revents=POLLIN}])
1167911 1626138620.652681 read(11, "\1\0\0\0\0\0\0\0", 16) = 8
1167911 1626138620.652733 poll([{fd=11, events=POLLIN}], 1, 25000) = 0 (Timeout)
1167911 1626138645.677728 write(11, "\1\0\0\0\0\0\0\0", 8) = 8
1167911 1626138645.677826 futex(0x558e0a762160, FUTEX_WAKE_PRIVATE, 2147483647) = 0
1167911 1626138645.677902 close(11)     = 0

LeTink avatar Jul 14 '21 01:07 LeTink

Is the information in these two links of any help? :

https://bbs.archlinux.org/viewtopic.php?id=262897 https://bbs.archlinux.org/viewtopic.php?pid=1934134#p1934134

caclark avatar Aug 21 '21 15:08 caclark

Is the information in these two links of any help? :

https://bbs.archlinux.org/viewtopic.php?id=262897 https://bbs.archlinux.org/viewtopic.php?pid=1934134#p1934134

Not applicable to me, no gnome-character (or other portal) installed ...

LeTink avatar Aug 21 '21 20:08 LeTink