<p dir="ltr">It is only the draw command, not the communication...</p>
<p dir="ltr">BTW do either of you know why one would be getting pdtk_post { stack overflow } messages? Doors that mean the cpu is unable to handle all gui requests?</p>
<div class="gmail_quote">On Oct 24, 2012 8:32 PM, &quot;Hans-Christoph Steiner&quot; &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks for that info.  Sounds like a good idea in general.  I personally can&#39;t<br>
think of any reason why the DSP would need to be on during the quitting.  But<br>
for the &#39;redraw&#39; part, that depends.  If it is literally only redrawing that<br>
is suspended, that would be fine.  But if its all Pd&lt;--&gt;GUI communications,<br>
that will probably cause problems.<br>
<br>
.hc<br>
<br>
On 10/24/2012 06:02 PM, Ivica Ico Bukvic wrote:<br>
&gt; Hans and Iohannes,<br>
&gt;<br>
&gt; The following is FYI.<br>
&gt;<br>
&gt; Several months ago I integrated the close all patches before quitting patch<br>
&gt; in pd-l2ork and since then I&#39;ve been experiencing extremely sporadic crashes<br>
&gt; on close that would hang pd-l2ork. Now, I am not sure this is because of<br>
&gt; architectural differences between regular pd and pd-l2ork but I doubt it<br>
&gt; since most of the said components are very similar if not identical.<br>
&gt;<br>
&gt; The bottom line is this only occurs on very low-powered machines (e.g.<br>
&gt; netbook) and relatively large patches and even then it does so very<br>
&gt; sporadically. Consequently, I implemented an improvement to the closing<br>
&gt; mechanism that consists of 2 additional steps and apparently alleviates said<br>
&gt; problems entirely:<br>
&gt;<br>
&gt; 1) disable further redraws (this prevents calling functions that may be<br>
&gt; referencing null pointers)--I have a special global var for this which is<br>
&gt; also being used to optimize redrawing (many actions in pd-l2ork are several<br>
&gt; times faster than regular pd as a result of this implementation--just look<br>
&gt; for do_not_redraw call in the source if curious)<br>
&gt;<br>
&gt; 2) suspend dsp before going through the patches (all sub-patches try to<br>
&gt; suspend it and resume it but for some reason, due to asynchronous nature of<br>
&gt; communication between tcl and c funny things occasionally happen on<br>
&gt; low-powered machines, so this way we ensure it is entirely off throughout<br>
&gt; the whole destruction process)<br>
&gt;<br>
&gt; Hope this helps!<br>
&gt;<br>
&gt; Ivica Ico Bukvic, D.M.A.<br>
&gt; Composition, Music Technology<br>
&gt; Director, DISIS Interactive Sound &amp; Intermedia Studio<br>
&gt; Director, L2Ork Linux Laptop Orchestra<br>
&gt; Head, ICAT IMPACT Studio<br>
&gt; Virginia Tech<br>
&gt; Dept. of Music - 0240<br>
&gt; Blacksburg, VA 24061<br>
&gt; (540) 231-6139<br>
&gt; (540) 231-5034 (fax)<br>
&gt; <a href="mailto:ico@vt.edu">ico@vt.edu</a><br>
&gt; <a href="http://www.music.vt.edu/faculty/bukvic/" target="_blank">http://www.music.vt.edu/faculty/bukvic/</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</blockquote></div>