Hello all,<div><br></div><div>I have a patch that has started to cause a crash in PD. In trying to figure out exactly what is happening, I reworked the patch, and now each of the smaller chunks of code are in their own subpatch. So, now the patch doesn&#39;t ALWAYS crash. Now the only time it crashes is when I open the subpatch containing the offending code, BUT only after that code has been executed at least once.
</div><div><br></div><div>Lets see if I can give an outline...</div><div><br></div><div>1. Open the patch.</div><div>2. Setup the patch for operation.</div>
<div>3. Call the subpatch that appears to be cause trouble. Everything executes properly and does what it is supposed to do.</div><div>4. Open the subpatch that contains the troublesome code, and PD crashes before it can display the patch.
</div><div><br>
</div><div>I have checked this in several different versions of PD, from the nightly builds (ranging from 1129 back to 0927), as well as the 39 extended version. And all of them crash in the same way.</div><div><br>
</div><div>This is the first time I have run into something like this, and I am not sure how to proceed in troubleshooting this problem. I looked at the stack traces in the logs, and everything appears to be PD code that is executing.
</div><div><br class="webkit-block-placeholder"></div><div><div>Thread 0 Crashed:</div><div>0 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x0003cbb0 obj_noutlets + 16 (m_obj.c:549)
</div><div>1 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x0000ca0c glist_drawiofor + 76 (g_text.c:1188)</div><div>2 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">
        </span>0x0000d030 text_drawborder + 976 (g_text.c:1314)</div><div>3 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x0000d3ac text_vis + 156 (g_text.c:1061)</div><div>4 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<span class="Apple-tab-span" style="white-space:pre">        </span>0x0001eca0 gobj_vis + 352 (g_editor.c:91)</div><div>5 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x00003eb0 canvas_map + 128 (g_canvas.c:647)
</div><div>6 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x0003b0d4 pd_typedmess + 1092 (m_class.c:771)</div><div>7 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">
        </span>0x0003b23c pd_typedmess + 1452 (m_class.c:792)</div><div>8 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x0003f020 binbuf_eval + 1104 (m_binbuf.c:673)</div><div>9 &nbsp; pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<span class="Apple-tab-span" style="white-space:pre">        </span>0x00045c70 socketreceiver_read + 640 (s_inter.c:542)</div><div>10 &nbsp;pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x000444dc sys_domicrosleep + 316 (s_inter.c:182)
</div><div>11 &nbsp;pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x00042850 m_scheduler + 1248 (m_sched.c:490)</div><div>12 &nbsp;pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">
        </span>0x00044240 sys_main + 1440 (s_main.c:311)</div><div>13 &nbsp;pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x00002174 _start + 340 (crt.c:272)</div><div>14 &nbsp;pd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<span class="Apple-tab-span" style="white-space:pre">        </span>0x0000201c start + 60</div><div><br class="webkit-block-placeholder"></div><div>I am running on a Mac OS X 10.4.11, while not all of the crashes give the exact same stack trace, this is the most&nbsp;prevalent&nbsp;one.
</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div><br class="webkit-block-placeholder"></div><div>Mike</div><div><br class="webkit-block-placeholder">
</div><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician
</div>