From nobody Sun Oct 22 12:15:31 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SCy2p0vwdz4xDKT for ; Sun, 22 Oct 2023 12:15:46 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SCy2n5n8Yz3YTV; Sun, 22 Oct 2023 12:15:45 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507a5f2193bso2717968e87.1; Sun, 22 Oct 2023 05:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697976944; x=1698581744; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Sy6qqJ/zWCz7DaaFMV7sKBvhMoU5TGuI+gDtpX0D75o=; b=I8PbBjVzlC4CC4PuZA5XY3x3Yufpn0jX6RRTVTuUSAXm/ftxJSBoQ39sWudGhqpipm nQoOthA0ApyIdTOyL5p7busNrEfN7fl1FBS1Toh/1b7xoz2kXr0tT6azWpt/iTKs91y2 /91RhG110BeKR6E7sWZfbo4+7BmtIgCVUdFS+f0iwPcO1b4apR/n6ytNk/kc/s+tyo8/ cmehyzlsN6TXx7kmNUgkG2yUocYvTz7ev67hrpuera/w2W2dAA0o1USsa8YwcuICI0YA Z/O1rDj0bT1fJcTauvaSLZNPq1+NWT5uMmMOB81JwtVDgLL2ocRNL2J4zhsFutVFUHPU EtqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697976944; x=1698581744; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Sy6qqJ/zWCz7DaaFMV7sKBvhMoU5TGuI+gDtpX0D75o=; b=xLJcJlVP5yleKkqDwjsPGQvWrd980oYMfDHo9FX4XbdPG+Tf9YIS9gfeI2ft8aHcTn gCTscd0LkfdgCHebEfPmrZlm+7BS/DaGGwuxK4YJ4J5jW60Dy+sCX+ftl9OyiD3AGwOQ UgAhYEeL8cuqYpO5PkUYDLmjrbQmNRkn3wx4jwfN8bfc1jACDqyu/JScUlpZXIdww9Q/ ESSj1QoQsKKOuexvdlbWnQfPXL954a5OAKG9AVTlsMV0qkcPaHbeVR9QjlpyxXqInOVW cUV24UwXRQ9Rqip4YiFbSwwYfqmjmspBTl+EkXKhWDV/LKFN85qLGqOCPMdEfCHXEQ0b mfrQ== X-Gm-Message-State: AOJu0YzimfShLzZpotZCZCcl0JX7/jdEWeYInDkr57tYZtyKMFUElPvF wKjIvXYzubptezC0YejHvGcAsF20qXe2J3MzmBQNA6bCi3k= X-Google-Smtp-Source: AGHT+IEg2TTfsNJRT2x0vfNkTDp6cLDUscmX27nAmzP48dG1PN0owlvwOZWf79Reg6odzKH4Xs9mcnm/LDMmUUgfQW4= X-Received: by 2002:ac2:424c:0:b0:4fb:a088:cfca with SMTP id m12-20020ac2424c000000b004fba088cfcamr1878133lfl.6.1697976943652; Sun, 22 Oct 2023 05:15:43 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <1396284672.14842.1697972080394@localhost> In-Reply-To: From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Sun, 22 Oct 2023 14:15:31 +0200 Message-ID: Subject: Re: Image viewer gwenview needs 27 secs to start To: Matthias Apitz , Ronald Klop , kde@freebsd.org, freebsd-ports@freebsd.org Content-Type: multipart/alternative; boundary="0000000000009032cc06084d104b" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Queue-Id: 4SCy2n5n8Yz3YTV --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 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


=
On Sun, Oct 22, 2023 at 1:27=E2=80=AF= PM Matthias Apitz <guru@unixarea.de<= /a>> wrote:
E= l d=C3=ADa domingo, octubre 22, 2023 a las 12:54:40p. m. +0200, Ronald Klop= 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&quo= t;...,152},{"\^V\0\0\0org.freedesktop.UPower"...,32}],2,{},0,0},M= SG_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&qu= ot;...,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.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 matthias

Tr= y 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?

<= /div>
dbus-send --print-reply \ --system \ --dest= =3Dorg.freedesktop.UPower \ /org/freedesktop/UPower \ org.freedesktop.UPowe= r.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--