<div dir="ltr"><div>Here's another hang in the same place (<font face="arial, sans-serif">between "<span style="color:rgb(36,41,46);font-size:12px;white-space:pre">Created OakTabBarView instance" and "</span><span style="color:rgb(36,41,46);font-size:12px;white-space:pre">Created OakDocumentView instance"</span></font><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">) </span>according to the log, along with a five second sample started just before I ran mate:</div><div><br></div><a href="https://gist.github.com/jaysoffian/b585e3614620db506de306bfc9b55975">https://gist.github.com/jaysoffian/b585e3614620db506de306bfc9b55975</a><div><br></div><div>It hung for 20 seconds, so the sample has only the first five seconds of the delay.</div><div><br></div><div>I'm using this wrapper around the mate command:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">#!/bin/sh</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">find /private/tmp -name 'TextMate_*.sample.txt' -mtime +1h -delete</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">t0=$(date +%s)</font></div><div><font face="monospace">sample TextMate 5 -wait >/dev/null 2>&1 &</font></div><div><font face="monospace">/usr/local/bin/mate "$@"</font></div><div><font face="monospace">t1=$(date +%s)</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">dt=$(expr $t1 - $t0)</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">if test $dt -gt 3</font></div><div><font face="monospace">then</font></div><div><font face="monospace"> sample_txt=$(find /private/tmp -name 'TextMate_*.sample.txt' | sort | tail -1)</font></div><div><font face="monospace"> cat <<__EOF__</font></div><div><font face="monospace">mate took longer than 3 seconds. Sample here:</font></div><div><font face="monospace"><br></font></div><div><font face="monospace"> $sample_txt</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">Grab log with:</font></div><div><font face="monospace"><br></font></div><div><font face="monospace"> log show --predicate 'subsystem = "com.macromates.TextMate" && category = "BringToFront"'"</font></div><div><font face="monospace">__EOF__</font></div><div><font face="monospace">fi</font></div><div><div><font face="monospace"><br></font></div></div></blockquote><div><div>j.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2019 at 12:14 PM Jay Soffian <<a href="mailto:jaysoffian@gmail.com">jaysoffian@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks. I just had another hang. I accidentally deleted the sample, but the log indicates it happened here:<div><br></div><div><font face="monospace">2019-08-26 12:01:00.422862-0400 0x1b9a4fd Default 0x0 37221 0 TextMate: [com.macromates.TextMate:BringToFront] TextMate: Created OakTabBarView instance<br>2019-08-26 12:01:10.571943-0400 0x1b9a4fd Default 0x0 37221 0 TextMate: [com.macromates.TextMate:BringToFront] TextMate: Created OakDocumentView instance</font></div><div><br></div><div><div>I'll report back next time it hangs with a sample.</div><div><br></div><div>j.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2019 at 6:09 AM Allan Odgaard <<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 19 Aug 2019, at 3:06, Jay Soffian wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid rgb(119,119,119);color:rgb(119,119,119);margin:0px 0px 5px;padding-left:5px"><p dir="auto">Bump. Allan, any ideas here?</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">I have added even more debug output into rc.30 available by option-clicking Check Now in software update.</p>
<p dir="auto">Unfortunately the previous debug output was not enough to give me any idea of what goes on; was therefore waiting for a second person to provide logging output, I got this today via IRC, and for this person, it is also stalling basically when creating the window, so now I littered the setup code with log statements.</p>
<p dir="auto">For those with the issue, in addition to capturing the log, it would also be useful to create an alias in your shell a la:</p>
<pre style="background-color:rgb(247,247,247);border-radius:5px;margin-left:15px;margin-right:15px;max-width:90vw;overflow-x:auto;padding:5px" bgcolor="#F7F7F7"><code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px" bgcolor="#F7F7F7">alias s='sample TextMate 3'
</code></pre>
<p dir="auto">Then when you realize it is stalling, immediately create new tab in terminal (⌘T) and run <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">s</code> to sample the process.</p>
<p dir="auto">It is very likely some system code that is failing to obtain a spinlock with a 10s timeout, a sample should make this immediately obvious, where log statements added by me may take a while to pinpoint what exactly is triggering it (and pinpointing alone may not explain why, here a stack trace from sample would be a lot more useful).</p>
</div>
</div>
</div>
<br>
_______________________________________________<br>
TextMate mailing list<br>
<a href="mailto:TextMate@lists.macromates.com" target="_blank">TextMate@lists.macromates.com</a><br>
<a href="https://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">https://lists.macromates.com/listinfo/textmate</a></blockquote></div>
</blockquote></div>