Article View: linux.debian.bugs.dist
Article #1902Bug#1151868: libqt6keychain1: isKwalletAvailable() blocks the GUI thread for 25 s while kwalletd has an unlock dialog open
From: Thomas Moore
Date: Sat, 24 Oct 2026 03:40
Date: Sat, 24 Oct 2026 03:40
159 lines
8867 bytes
8867 bytes
------=_Part_286555_1710189514.1792812965640 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Source: qtkeychain Version: 0.17.0-1 Severity: normal Tags: upstream fixed-upstream Hi, Since 0.16.0, isKwalletAvailable() in qtkeychain/keychain_unix.cpp makes a blocking call to org.kde.KWallet.networkWallet with the default 25 second D-Bus timeout. It runs inline on the first keychain job, which is usually t= he application's GUI thread, so the application freezes until the call times o= ut. kwalletd stops answering application-level D-Bus calls while an unlock dial= og is open for any client. That happens at login when the wallet password diff= ers from the login password, because kwallet-pam can't open the wallet. Several autostarted applications can then ask for it at once, and any that probe behind the dialog stall. In plasmashell that freezes the whole shell. With the wallet locked and a dialog opened by another client, I measured: =C2=A0 org.freedesktop.DBus.Peer.Ping=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 0 ms=C2=A0=C2=A0 reply =C2=A0 org.kde.KWallet.networkWallet=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 25301 ms= =C2=A0=C2=A0 NoReply A Qt event loop with a 100 ms heartbeat went 25305 ms between ticks, so tha= t call accounts for the whole freeze. Upstream fixed it by probing with org.freedesktop.DBus.Peer.Ping instead. T= he QtDBus layer answers Ping, and it still triggers D-Bus activation. =C2=A0 commit: https://github.com/frankosterfeld/qtkeychain/commit/007abb86= 535c6e112d7c0d32ad5372302619b509=20 =C2=A0 PR:=C2=A0=C2=A0=C2=A0=C2=A0 https://github.com/frankosterfeld/qtkeyc= hain/pull/304=20 =C2=A0 issue:=C2=A0 https://github.com/frankosterfeld/qtkeychain/issues/303= =20 No tagged release has it yet. Once this has a bug number I'll send the comm= it as a quilt patch against 0.17.0. I reproduced this on Kubuntu 26.10 with kwalletd6 4:26.08.0-0ubuntu1 and libqt6keychain1 0.17.0-1. I haven't run it on Debian. Testing and unstable have the same qtkeychain 0.17.0-1, so I expect the same behaviour, but that comes from the version number, not a test. Debian 13 has 0.15.0, which predates the regression. Full analysis and repro steps are in the Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/qtkeychain/+bug/2165214=20 Thomas Moore (realstuffie) ------=_Part_286555_1710189514.1792812965640 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>= <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h= ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif= ; font-size: 10pt;"><div>Source: qtkeychain<br></div><div>Version: 0.17.0-1= <br></div><div>Severity: normal<br></div><div>Tags: upstream fixed-upstream= <br></div><div><br></div><div>Hi,<br></div><div><br></div><div>Since 0.16.0= , isKwalletAvailable() in qtkeychain/keychain_unix.cpp makes a<br></div><di= v>blocking call to org.kde.KWallet.networkWallet with the default 25 second= <br></div><div>D-Bus timeout. It runs inline on the first keychain job, whi= ch is usually the<br></div><div>application's GUI thread, so the applicatio= n freezes until the call times out.<br></div><div><br></div><div>kwalletd s= tops answering application-level D-Bus calls while an unlock dialog<br></di= v><div>is open for any client. That happens at login when the wallet passwo= rd differs<br></div><div>from the login password, because kwallet-pam can't= open the wallet. Several<br></div><div>autostarted applications can then a= sk for it at once, and any that probe<br></div><div>behind the dialog stall= . In plasmashell that freezes the whole shell.<br></div><div><br></div><div= >With the wallet locked and a dialog opened by another client, I measured:<= br></div><div><br></div><div> org.freedesktop.DBus.Peer.Ping &nb= sp; 0 ms reply<br></div><di= v> org.kde.KWallet.networkWallet 25301 = ms NoReply<br></div><div><br></div><div>A Qt event loop with a = 100 ms heartbeat went 25305 ms between ticks, so that<br></div><div>call ac= counts for the whole freeze.<br></div><div><br></div><div>Upstream fixed it= by probing with org.freedesktop.DBus.Peer.Ping instead. The<br></div><div>= QtDBus layer answers Ping, and it still triggers D-Bus activation.<br></div= ><div><br></div><div> commit: <a target=3D"_blank" href=3D"https://gi= thub.com/frankosterfeld/qtkeychain/commit/007abb86535c6e112d7c0d32ad5372302= 619b509">https://github.com/frankosterfeld/qtkeychain/commit/007abb86535c6e= 112d7c0d32ad5372302619b509</a><br></div><div> PR: &n= bsp; <a target=3D"_blank" href=3D"https://github.com/frankosterfeld/qtkeych= ain/pull/304">https://github.com/frankosterfeld/qtkeychain/pull/304</a><br>= </div><div> issue: <a target=3D"_blank" href=3D"https://github.= com/frankosterfeld/qtkeychain/issues/303">https://github.com/frankosterfeld= /qtkeychain/issues/303</a><br></div><div><br></div><div>No tagged release h= as it yet. Once this has a bug number I'll send the commit<br></div><div>as= a quilt patch against 0.17.0.<br></div><div><br></div><div>I reproduced th= is on Kubuntu 26.10 with kwalletd6 4:26.08.0-0ubuntu1 and<br></div><div>lib= qt6keychain1 0.17.0-1. I haven't run it on Debian. Testing and unstable<br>= </div><div>have the same qtkeychain 0.17.0-1, so I expect the same behaviou= r, but that<br></div><div>comes from the version number, not a test. Debian= 13 has 0.15.0, which<br></div><div>predates the regression.<br></div><div>= <br></div><div>Full analysis and repro steps are in the Ubuntu bug:<br></di= v><div><a target=3D"_blank" href=3D"https://bugs.launchpad.net/ubuntu/+sour= ce/qtkeychain/+bug/2165214">https://bugs.launchpad.net/ubuntu/+source/qtkey= chain/+bug/2165214</a><br></div><div><br></div><div>Thomas Moore (realstuff= ie)<br></div></div><br></body></html> ------=_Part_286555_1710189514.1792812965640--
Technical Details
Message-ID:
<NRALT-7wqX-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Thomas Moore <sales@mooresolutions.co.nz> Newsgroups: linux.debian.bugs.dist Subject: Bug#1151868: libqt6keychain1: isKwalletAvailable() blocks the GUI thread for 25 s while kwalletd has an unlock dialog open Date: Sat, 24 Oct 2026 05:40:01 +0200 Message-ID: <NRALT-7wqX-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Oct 24 03:37:11 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.449 Reply-To: sales@mooresolutions.co.nz, 1151868@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-kde-extras@lists.alioth.debian.org X-Debian-Pr-Message: report 1151868 X-Debian-Pr-Package: src:qtkeychain X-Debian-Pr-Source: qtkeychain Arc-Seal: i=1; a=rsa-sha256; t=1792812968; cv=none; d=zohomail.com.au; s=zohoarc; b=qmG8Q3FE5TueUmCq7VAzr+uCvM3iGgRRmC0Z+VbWOPG65qTLKY1ZlckFaSS/1U80zQaV3P+/oVcPYAWlMhMr+U9zX1A/FKYGOh+QkwXFIz45WJTiJ2QV1xB/heSPSGfAMwv56lRdF3tIUYZMxiyufYqLJbkFXNwdjbsKUFgbzCA= Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com.au; s=zohoarc; t=1792812968; h=Content-Type:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=+D7gPafOtA3UDp+3T0HWQrUQX3pbVnlSWP3gTk8DanY=; b=zLTphzvNoGZKc8lw8jdIEv7MiNFXb81vtkOXhxk6cqSFSKHXeI5JleXqXntJrg/I/y+cvPgi/T0IcwI2yG7eRHtnU0kEFGiUSa8CNzwwFiuztOILAYDujR5x40KXdEMopYV8ZUqMz+qFH391bnVmRoN/s4TSI6J+By1dFGChU5w= Arc-Authentication-Results: i=1; mx.zohomail.com.au; dkim=pass header.i=mooresolutions.co.nz; spf=pass smtp.mailfrom=sales@mooresolutions.co.nz; dmarc=pass header.from=<sales@mooresolutions.co.nz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_286555_1710189514.1792812965640" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998486 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 159 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 24 Oct 2026 16:36:05 +1300 X-Original-Message-ID: <1a16bfadf08.4fecd9ce80996.6509586569562429065@mooresolutions.co.nz>