<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 22, 2023 at 1:27 PM Matthias Apitz <<a href="mailto:guru@unixarea.de">guru@unixarea.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">El día domingo, octubre 22, 2023 a las 12:54:40p. m. +0200, Ronald Klop escribió:<br>
<br>
> Hi,<br>
> <br>
> This needs some debugging of the application.<br>
> <br>
> During these 27 seconds it can be interesting to get the output of:<br>
<br>
I found the point where it spends this amount of time. I run <br>
<br>
$ truss -o <a href="http://gwenview.tr" rel="noreferrer" target="_blank">gwenview.tr</a> -d gwenview<br>
<br>
and with grep/vim I found the point in time where it waits 25 secs for<br>
something:<br>
<br>
...<br>
2.001783437 socket(PF_LOCAL,SOCK_STREAM|SOCK_CLOEXEC,0) = 21 (0x15)<br>
2.002053139 connect(21,{ AF_UNIX "/var/run/dbus/system_bus_socket" },33) = 0 (0x0)<br>
...<br>
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)<br>
27.024832498 poll({ 11/POLLIN 12/POLLIN 21/POLLIN },3,25068) = 1 (0x1)<br>
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)<br>
27.025182480 recvmsg(21,0x896a197b0,MSG_CMSG_CLOEXEC) ERR#35 'Resource temporarily unavailable'<br>
<br>
i.e. it sends something to /var/run/dbus/system_bus_socket and waits 25<br>
secs in poll(2) for the answer until it timesout after 25086 millisecs.<br>
<br>
matthias<br></blockquote><div><br></div><div>Try having a look with qdbusviewer and exporting DBUS_SESSION_BUS_ADDRESS if necessary.</div><div>From your log it seems it is accessing org.freedesktop.UPower the specific method is not shown.</div><div><br></div><div>What if you try to call UPower by hand?</div></div><div class="gmail_quote"><br></div><div class="gmail_quote">dbus-send --print-reply \ --system \ --dest=org.freedesktop.UPower \ /org/freedesktop/UPower \ org.freedesktop.UPower.EnumerateDevices<div><br></div><div>Cheers. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Matthias Apitz, ✉ <a href="mailto:guru@unixarea.de" target="_blank">guru@unixarea.de</a>, <a href="http://www.unixarea.de/" rel="noreferrer" target="_blank">http://www.unixarea.de/</a> +49-176-38902045<br>
Public GnuPG key: <a href="http://www.unixarea.de/key.pub" rel="noreferrer" target="_blank">http://www.unixarea.de/key.pub</a><br>
<br>
I am not at war with Russia.<br>
Я не воюю с Россией.<br>
Ich bin nicht im Krieg mit Russland.<br>
<br>
</blockquote></div></div>