From nobody Sun Oct 22 11:27:11 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 4SCwz26Qgmz4yPhF for ; Sun, 22 Oct 2023 11:27:26 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SCwz24LPYz3TXj; Sun, 22 Oct 2023 11:27:26 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [188.174.49.19] (helo=c720-1400094.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1quWc7-006AdI-9a; Sun, 22 Oct 2023 13:27:24 +0200 Received: from c720-1400094.fritz.box (localhost [127.0.0.1]) by c720-1400094.unixarea.de (8.17.1/8.14.9) with ESMTP id 39MBRFQD004599; Sun, 22 Oct 2023 13:27:15 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-1400094.fritz.box (8.17.1/8.14.9/Submit) id 39MBRBer004598; Sun, 22 Oct 2023 13:27:11 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-1400094.fritz.box: guru set sender to guru@unixarea.de using -f Date: Sun, 22 Oct 2023 13:27:11 +0200 From: Matthias Apitz To: Ronald Klop Cc: kde@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Image viewer gwenview needs 27 secs to start Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: Ronald Klop , kde@freebsd.org, freebsd-ports@freebsd.org References: <1396284672.14842.1697972080394@localhost> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1396284672.14842.1697972080394@localhost> X-Operating-System: FreeBSD 14.0-CURRENT r1400094 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.49.19 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:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Queue-Id: 4SCwz24LPYz3TXj 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@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.