Dirk-Jan C. Binnema <
dj...@djcbsoftware.nl> writes:
> Hi Chris,
>
> On Sunday Mar 13 2016,
cho...@chopps.org wrote:
>
>> I'm getting a lot of hangs when trying to view various emails. I haven't
>> been able to track down what it is. I have a fairly aggressive (once a
>> minute) email update system that runs externally and uses emacsclient to
>> inform mu4e that it needs to update
>>
>> ``emacsclient -e "(mu4e-update-index)" > /dev/null``
>>
>> I am suspicions that this update might be causing something to fail.
>
> Perhaps... why do you do it that way? You could just let mu4e handle the
> update automatically ever n minutes.
The update takes a while (a minute or more sometimes), so I don't want
mu4e hung for that time.
In any case I disabled my update and verified I'm still seeing the
hangs, so it must be something else.
>> Basically I'll be using ']' to advance through a list of unread mails
>> and all of a sudden view the next one will just hang, I have to then hit
>> ^G multiple times (like 3-6 times) and finally the headers view
>> disappears and is replaced with the view of the mail.
>>
>> Any idea what might be going on here?
>
> You could use M-x toggle-debug-on-quit to see what it's doing.
Yeah, very frustratingly it doesn't drop into the debugger after the
4-6th C-g when it finally displays the message.
One point of interest is sometimes the C-g will have the message replace
the smaller headers view, and in the larger window I will see "Getting
the message..." (or whatever that text is I don't have the text handy
right now). This doesn't happen everytime though, sometimes the message
shows up where it should (the bottom larger window) leaving the headers
view intact.
> Emacs & the mu server instance can do only one thing at a time. So, when
> you're indexing, it can't open a message for you, and have to wait for
> that to finish - this you may perceive as the hanging.
Understood, but in my case hang means ~ever (well as long as I was
willing to wait which was many minutes, much longer than an index update
takes).
> Apart from reducing the frequency, it might help to reduce the time
> indexing takes, ie. using '.noupdate'. See the mu-index mangpage for
> details.
I might do this anyway, but I don't think it's the problem.
Thanks,
Chris.
P.S. my original message used the wrong address for signing.. something
else I need to debug :)
>
> Kind regards,
> Dirk.