[Psi-Devel] Sending GnuPG-encrypted (chat-) message makes Psi hang/block for ~2 seconds
Andreas Ntaflos
daff at pseudoterminal.org
Mon Oct 22 09:26:00 PDT 2007
On Monday 08 October 2007 20:27:47 Justin Karneges wrote:
> On Monday 08 October 2007 10:53 am, Andreas Ntaflos wrote:
> > Hello devs, list,
> >
> > I finally get around to report this somewhat odd behaviour. Composing
> > a chat or regular message that should be encrypted when sent makes Psi
> > block for about two seconds; meaning it is unresponsive for two
> > seconds, no input or clicking possible, no redraws taking place. It
> > basically hangs until it gets the message out of the door.
>
> We use QProcess to launch the 'gpg' executable, and this should be
> asynchronous. The rest of QCA and Psi is also asynchronous with respect to
> these operations. My best guess is that you've found a bug in Qt, and that
> some part of the QProcess launching and/or usage is actually not
> asynchronous. I've noticed a similar effect when clicking URLs in Psi:
> freezing while launching the browser with QProcess, so I'm not entirely
> surprised by this report. However, I've never seen it happen with gpg.
>
> It could be that this is a bug in Qt that only affects you, or perhaps it
> is a bug in Qt that affects everyone but you have an unusually long gpg
> startup time. Getting to the bottom of this may take some work.
>
> Attached is a simple patch to display some extra debug information. Run
> Psi from the console, and tell me if there is a 2-second gap between both
> printfs.
Hi Justin,
sorry for the long delay. I just got around to test the problem with your
patch compiled in, but the delay is always between to "about to call
start"-"start called" pairs, and never between an "about to call start"
and "start called" message. I shall attach the console output and add some
remarks so you can see when the message is sent and Psi blocks, and when Psi
unblocks again.
Is there anything else I can do to test this? Should I try upgrading to GnuPG
2.0.7 (currently using 1.4.6)?
Thanks and regards,
Andreas
--
Andreas "daff" Ntaflos
Vienna, Austria
GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4
-------------- next part --------------
--- Now pressing enter to send GPG-encrypted message
about to call start
start called
about to call start
start called
--- Psi blocks
about to call start
start called
--- Psi unblocks and sent message is displayed in chat window
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20071022/dd5064ed/attachment.pgp
More information about the Psi-Devel
mailing list