Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2023 14:15:31 +0200
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com>
To:        Matthias Apitz <guru@unixarea.de>, Ronald Klop <ronald-lists@klop.ws>, kde@freebsd.org,  freebsd-ports@freebsd.org
Subject:   Re: Image viewer gwenview needs 27 secs to start
Message-ID:  <CAGwOe2bcFNBYvO3wX=pf4h0sFGZVZ%2BjZZzXr7_49K4%2BHavgGEQ@mail.gmail.com>
In-Reply-To: <ZTUHD7CUjjC9kqQA@c720-1400094.fritz.box>
References:  <ZTTnWtgSNceS7uV2@c720-1400094> <1396284672.14842.1697972080394@localhost> <ZTUHD7CUjjC9kqQA@c720-1400094.fritz.box>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009032cc06084d104b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 22, 2023 at 1:27=E2=80=AFPM Matthias Apitz <guru@unixarea.de> w=
rote:

> El d=C3=ADa domingo, octubre 22, 2023 a las 12:54:40p. m. +0200, Ronald K=
lop
> escribi=C3=B3:
>
> > 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) =3D 21 (0x15)
> 2.002053139 connect(21,{ AF_UNIX "/var/run/dbus/system_bus_socket" },33) =
=3D
> 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)
> =3D 184 (0xb8)
> 27.024832498 poll({ 11/POLLIN 12/POLLIN 21/POLLIN },3,25068) =3D 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)
> =3D 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
>

Try having a look with qdbusviewer and exporting DBUS_SESSION_BUS_ADDRESS
if necessary.
>From your log it seems it is accessing org.freedesktop.UPower the specific
method is not shown.

What if you try to call UPower by hand?

dbus-send --print-reply \ --system \ --dest=3Dorg.freedesktop.UPower \
/org/freedesktop/UPower \ org.freedesktop.UPower.EnumerateDevices

Cheers.

>
> --
> Matthias Apitz, =E2=9C=89 guru@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.
> =D0=AF =D0=BD=D0=B5 =D0=B2=D0=BE=D1=8E=D1=8E =D1=81 =D0=A0=D0=BE=D1=81=D1=
=81=D0=B8=D0=B5=D0=B9.
> Ich bin nicht im Krieg mit Russland.
>
>

--0000000000009032cc06084d104b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sun, Oct 22, 2023 at 1:27=E2=80=AF=
PM Matthias Apitz &lt;<a href=3D"mailto:guru@unixarea.de">guru@unixarea.de<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">E=
l d=C3=ADa domingo, octubre 22, 2023 a las 12:54:40p. m. +0200, Ronald Klop=
 escribi=C3=B3:<br>
<br>
&gt; Hi,<br>
&gt; <br>
&gt; This needs some debugging of the application.<br>
&gt; <br>
&gt; 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=3D"http://gwenview.tr" rel=3D"noreferrer" target=3D"_bla=
nk">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) =3D 21 (0x15)<br>
2.002053139 connect(21,{ AF_UNIX &quot;/var/run/dbus/system_bus_socket&quot=
; },33) =3D 0 (0x0)<br>
...<br>
2.019812505 sendmsg(21,{NULL,0,[{&quot;l\^A\0\^A \0\0\0\v\0\0\0\M^H\0\0&quo=
t;...,152},{&quot;\^V\0\0\0org.freedesktop.UPower&quot;...,32}],2,{},0,0},M=
SG_NOSIGNAL) =3D 184 (0xb8)<br>
27.024832498 poll({ 11/POLLIN 12/POLLIN 21/POLLIN },3,25068) =3D 1 (0x1)<br=
>
27.024978322 recvmsg(21,{NULL,0,[{&quot;l\^C\^A\^Ac\0\0\0\a\0\0\0m\0\0\0&qu=
ot;...,2048}],1,{},0,MSG_CMSG_CLOEXEC},MSG_CMSG_CLOEXEC) =3D 227 (0xe3)<br>
27.025182480 recvmsg(21,0x896a197b0,MSG_CMSG_CLOEXEC) ERR#35 &#39;Resource =
temporarily unavailable&#39;<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>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 matthias<br></blockquote><div><br></div><div>Tr=
y 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=3D"gmail_quote"><br><=
/div><div class=3D"gmail_quote">dbus-send --print-reply \ --system \ --dest=
=3Dorg.freedesktop.UPower \ /org/freedesktop/UPower \ org.freedesktop.UPowe=
r.EnumerateDevices<div><br></div><div>Cheers. <br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
<br>
-- <br>
Matthias Apitz, =E2=9C=89 <a href=3D"mailto:guru@unixarea.de" target=3D"_bl=
ank">guru@unixarea.de</a>, <a href=3D"http://www.unixarea.de/" rel=3D"noref=
errer" target=3D"_blank">http://www.unixarea.de/</a>; +49-176-38902045<br>
Public GnuPG key: <a href=3D"http://www.unixarea.de/key.pub" rel=3D"norefer=
rer" target=3D"_blank">http://www.unixarea.de/key.pub</a><br>;
<br>
I am not at war with Russia.<br>
=D0=AF =D0=BD=D0=B5 =D0=B2=D0=BE=D1=8E=D1=8E =D1=81 =D0=A0=D0=BE=D1=81=D1=
=81=D0=B8=D0=B5=D0=B9.<br>
Ich bin nicht im Krieg mit Russland.<br>
<br>
</blockquote></div></div>

--0000000000009032cc06084d104b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2bcFNBYvO3wX=pf4h0sFGZVZ%2BjZZzXr7_49K4%2BHavgGEQ>