tag:gpgtools.tenderapp.com,2011-11-04:/discussions/beta/853-beta-5-hanging-up-mail-after-a-while-on-yosemiteGPGTools: Discussion 2023-09-24T13:14:46Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-09T08:25:59Z2023-09-24T13:14:46Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>I'm having the same issue, it seems that killing the org.gpgtools.Libmacgpgp.xpc service recovers mail without me having to force quit it.</p>
<p>I've attached two spin dumps, one of mail, and one of the service</p></div>spamfaengertag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-09T16:33:31Z2015-03-09T16:33:33Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Having the same problem. Latest beta, installed manually. Also
experiencing a strange new effect: Mail now BCC's me on
<em>some</em> outgoing messages, sporadically. No pattern, and
across multiple accounts. Verified it is <em>not</em> set in prefs.
Never saw that before installing GPGtools.</p></div>David Ptag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-10T11:34:03Z2023-09-24T13:14:46Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Do you need more information to work on this? I can still reproduce this fairly reliably. :/</p></div>spamfaengertag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-26T22:16:38Z2015-03-26T22:16:40Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>This issue still exists in Beta 6!</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-27T10:23:20Z2015-03-27T10:23:20Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Hi Martin,</p>
<p>this is indeed a very strange issue. The spin dump shows a huge
amount of thread basically idling (waiting for a condition). Since
you are able to reproduce this, could you post some steps leading
up to the problem?</p>
<p>That would be really helpful.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-27T16:49:45Z2023-09-24T13:14:46Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Hi Luke,</p>
<p>sorry, but I don't have a stable reproduction yet.</p>
<p>I can say, that it seems to happen after I leave mail in the background for a longer time.</p>
<p>But that's sadly not that great a reproduction advice. :/</p>
<p>Cu Martin</p></div>spamfaengertag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-03-27T16:52:20Z2015-03-27T16:52:21Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>I also don't really have a way to reproduce but it
<em>seems</em> to hang on signing a mail I'm trying to send.</p>
<p>That said... this <em>might</em> be wrong and that's just when I
notice it, in that case it might happen when a newly incoming mail
has it's signature checked in the background.</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-01T16:59:27Z2015-04-01T16:59:27Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Hi Joerg,</p>
<p>could you also try to create a sample log when this happens the
next time.<br>
Maybe a pattern emerges.</p>
<p>Thanks!</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-01T17:08:39Z2015-04-01T17:08:40Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Yes, I'll try.</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-03T17:55:42Z2015-04-03T17:55:42Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>OK, I've created two more spindumps.<br>
The obvious issue that's visible is that the service created 514
threads which looks wrong for signing a single mail :)</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-07T03:51:33Z2015-04-07T03:51:33Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>OK, another data point. It really looks like any threads created
by gpgtools are never really shut down. I can see the number of
threads continuously rising and whenever the 514 thread threshold
is reached the tool and mail locks up.</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-14T18:51:16Z2015-04-14T18:51:17Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>I also have the same issue. After a few days working with Mail
the app crashed during sending of a new message. There is no chance
to reopen Mail app after terminating. Only a reboot solves the
issue to open up Mail.</p></div>Tobitag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-15T09:50:03Z2023-09-24T13:14:46Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Since 10.10.3 came around, Mail is now just hanging directly after it started, from the spin dump it seems that communication with the gpg helper is the culprit.</p>
<p>-- snip -- 1000 -[GPGOptions valueForKey:inDomain:] + 137 (Libmacgpg + 60262) [0x10cca3b66] 1000 -[GPGOptions valueInGPGAgentConfForKey:] + 27 (Libmacgpg + 63537) [0x10cca4831] 1000 -[GPGOptions gpgAgentConf] + 135 (Libmacgpg + 64947) [0x10cca4db3] 1000 -[GPGConf initWithPath:andDomain:] + 200 (Libmacgpg + 90177) [0x10ccab041] 1000 -[GPGConf loadConfig] + 53 (Libmacgpg + 88340) [0x10ccaa914] 1000 -[GPGConf loadConfigFileXPC] + 78 (Libmacgpg + 89846) [0x10ccaaef6] 1000 -[GPGTaskHelperXPC loadConfigFileAtPath:] + 171 (Libmacgpg + 133128) [0x10ccb5808] 1000 -[GPGTaskHelperXPC waitForTaskToCompleteAndShutdown:throwExceptionIfNecessary:] + 43 (Libmacgpg + 132178) [0x10ccb5452] 1000 semaphore_wait_trap + 10 (libsystem_kernel.dylib + 70938) [0x7fff9166a51a] *1000 semaphore_wait_continue + 0 (kernel + 1357760) [0xffffff800034b7c0] -- snap --</p></div>spamfaengertag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-18T11:12:43Z2015-04-18T11:12:43Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><blockquote>
<p>Only a reboot solves the issue to open up Mail.</p>
</blockquote>
<p>No, after force quitting Mail if necessary, you just need to
open the Activity Monitor, search for gpg and kill the
org.gpgtools.Libmacgpg.xpc process.</p></div>David Merytag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-22T08:53:49Z2015-04-22T08:53:51Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Yes, always do the process kill via Activity Monitor, since if
there is a Mail in "sending process", it gets lost of you force
quit Mail.app. This happened to me several times and is still
happening, since Mail.app often starts this infinite loop when I
send a message.</p>
<p>This is a very critical bug since mails are not sent and even
vanish if you quit Mail or restart your Mac without noticing that
gpg hangs.</p></div>Tamas Galtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-22T19:01:47Z2015-04-22T19:01:50Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>The same happens with Beta 6: Mail hangs repeatedly after a
while of use (half a day). It tries to display mail contents, but
doesn't succeed. The mails stay empty.<br>
I killed it, but on restart, it only shows the beachball of
death.<br>
After I disabled the GPGMail.mailbundle by moving it into a dummy
folder, Mail starts without any flaws.<br>
So it seems clear to me which is the guilty process.</p></div>HO Meyertag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-22T19:43:36Z2015-04-22T19:43:36Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Hi,</p>
<p>unfortunately we're still not able to reproduce this issue.<br>
By now, the cuprit definitely seems to be our xpc service.<br>
Are all of you using MacGPG2 or are some of you using gnupg
self-compiled or from homebrew/macports/fink?</p>
<p>It would be great if we could debug this issue on one of your
computers directly the next time it happens. Would anyone be
willing to try that? (Pre-requisite is having Xcode installed)</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-22T19:51:33Z2015-04-22T19:51:36Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>What exactly does "we could debug this" mean?<br>
I do have XCode installed and I see that this is simply an ongoing
(permanent) issue: threads never stop so they simply accumulate
until they reach the 514 threshold and then the whole thing locks
up.</p>
<p>So the underlying issue is there permanently.</p>
<p>So if you want me to debug anything, if you could give me very
detailed instructions I might be able to do that.</p>
<p>If MacGPG is the GPG version that comes with GPGTools: yes,
that's what I'm using.</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-22T20:36:58Z2015-04-22T20:36:59Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Similarly to Joerg, I have XCode installed and have installed
via GPGTools. Happy to help, however I'm not familiar with XCode as
I've installed it mainly for the command line compiler to use with
Macports so detailed instructions would be needed.</p></div>Davidtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-22T22:28:39Z2015-04-22T22:28:39Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>As a Mac developer, I may help out too, so just let me
know…</p></div>Tamas Galtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-23T00:15:41Z2015-04-23T00:15:41Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Hi all,</p>
<p>thank you very much for your help. Not sure how it happened, but
a few hours ago, I was finally able to reproduce the problem (it
randomly started occurring on my laptop)<br>
The bug should be fixed and the fix is included in the latest
nightly.</p>
<p>Could you please download and install our latest nightly build
from the following URL and let us know if the problem is
solved?<br>
<a href="https://releases.gpgtools.org/nightlies">https://releases.gpgtools.org/nightlies</a></p>
<p>Disclaimer: This is a development version which has not been
thoroughly tested yet - bugs or crashes are to be expected. Thanks
for helping us test.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-23T03:03:10Z2015-04-23T03:03:11Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Hi, thanks for the fix.<br>
While it's obviously still a bit early for a definite statement I
<em>do</em> see that now the Libmacgpg process does reduce the
number of active threads during operation, something it didn't do
before so yes, looks promising.</p>
<p>What was the problem?</p></div>Joergtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-23T10:15:22Z2015-04-23T10:15:22Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Ah, the good old retain cycle. I just looked at the
commit… The nightly is installed and I'll report! Cheers</p></div>Tamas Galtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-23T10:59:37Z2015-04-23T10:59:37Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>@Tamas: yes exactly. Once we confirmed that was the culprit it's
an easy fix. Xcode analyze didn't catch it. I also believe this is
an edge case, while in other cases it wouldn't be a problem.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-04-23T21:46:46Z2015-04-23T21:46:48Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>So far with the nightly (Version: 2.5b6 (7bf389b) Build: 932n),
it's been working fine.</p></div>Davidtag:gpgtools.tenderapp.com,2011-11-04:Comment/362292062015-07-21T22:05:19Z2015-07-21T22:05:19Zxpc creates hundreds of threads (was: Beta 5 hanging up mail after a while on Yosemite) Libmacgpg #142 ✔<div><p>Glad, this is solved for you. I'm closing this discussion. If
you need further assistance or have questions you can re-open this
discussion here or open a new one any time.</p>
<p>Best, steve</p></div>Steve