Image viewer gwenview needs 27 secs to start

Matthias Apitz guru at unixarea.de
Sun Oct 22 12:27:11 BST 2023


El día domingo, octubre 22, 2023 a las 12:54:40p. m. +0200, Ronald Klop escribió:

> Hi,
> 
> This needs some debugging of the application.
> 
> During these 27 seconds it can be interesting to get the output of:

I found the point where it spends this amount of time. I run 

$ truss -o gwenview.tr -d gwenview

and with grep/vim I found the point in time where it waits 25 secs for
something:

...
2.001783437 socket(PF_LOCAL,SOCK_STREAM|SOCK_CLOEXEC,0) = 21 (0x15)
2.002053139 connect(21,{ AF_UNIX "/var/run/dbus/system_bus_socket" },33) = 0 (0x0)
...
2.019812505 sendmsg(21,{NULL,0,[{"l\^A\0\^A \0\0\0\v\0\0\0\M^H\0\0"...,152},{"\^V\0\0\0org.freedesktop.UPower"...,32}],2,{},0,0},MSG_NOSIGNAL) = 184 (0xb8)
27.024832498 poll({ 11/POLLIN 12/POLLIN 21/POLLIN },3,25068) = 1 (0x1)
27.024978322 recvmsg(21,{NULL,0,[{"l\^C\^A\^Ac\0\0\0\a\0\0\0m\0\0\0"...,2048}],1,{},0,MSG_CMSG_CLOEXEC},MSG_CMSG_CLOEXEC) = 227 (0xe3)
27.025182480 recvmsg(21,0x896a197b0,MSG_CMSG_CLOEXEC) ERR#35 'Resource temporarily unavailable'

i.e. it sends something to /var/run/dbus/system_bus_socket and waits 25
secs in poll(2) for the answer until it timesout after 25086 millisecs.

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

I am not at war with Russia.
Я не воюю с Россией.
Ich bin nicht im Krieg mit Russland.


More information about the kde-freebsd mailing list