<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LipPd crashes with vlines~ in (LibPd) clock_unset (?)]]></title><description><![CDATA[<p>Hi,</p>
<p>I have a iOS project developed with XCode that uses LibPd to load a Pure Data patch. My project uses a mix of osc~ and phasor~ with modulated parameters (pitch, volume, etc).  My app is in 64-bit as now required. I am using the latest version of Pure Data and LibPd.</p>
<p>It crashes in one place. I have an osc~ that has its pitch modulated by an envelope. When I change the value of the length of the envelope (= modulation rate) on a device, it randomly crashes during testing but always on the same line of LibPd code. I thought it had to do with how fast the parameter was changed but no, it also happens when the parameter is slowly changed.</p>
<p>Here is below a (reduced) patch where the problem occurs. I have recently catched up with Pure Data. Any suggestions or corrections are welcome.</p>
<p><a href="/uploads/files/upload-9c1506d8-30a2-4af3-8927-b4f97c73474e.pd">modulatedOscillator.pd</a></p>
<p>Here is a screenshot of the crash in XCode with the code sequence and the  line of clock_unset that crashes.<br />
<img src="/uploads/files/upload-5ffd79ca-56c1-45be-8c3e-c40f2eb43b2a.png" alt="crash_m_sched.png" class="img-responsive img-markdown" /></p>
<p>I have done some printing and it crashes here:</p>
<p>void clock_unset(t_clock *x){<br />
if (x-&gt;c_settime &gt;= 0){<br />
if (x == clock_setlist) clock_setlist = x-&gt;c_next;<br />
else{<br />
t_clock *x2 = clock_setlist;<br />
while <strong><em>(x2-&gt;c_next != x)</em></strong> x2 = x2-&gt;c_next;<br />
x2-&gt;c_next = x-&gt;c_next;<br />
}<br />
x-&gt;c_settime = -1;<br />
}<br />
}<br />
With a printed value of : x2-&gt;c_next==NULL</p>
<p>Anyone has experienced something similar?</p>
<p>Thanks.</p>
<p>Pascal</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9289/lippd-crashes-with-vlines-in-libpd-clock_unset</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 14:10:18 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9289.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 May 2015 20:40:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LipPd crashes with vlines~ in (LibPd) clock_unset (?) on Fri, 22 May 2015 20:40:26 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I have a iOS project developed with XCode that uses LibPd to load a Pure Data patch. My project uses a mix of osc~ and phasor~ with modulated parameters (pitch, volume, etc).  My app is in 64-bit as now required. I am using the latest version of Pure Data and LibPd.</p>
<p>It crashes in one place. I have an osc~ that has its pitch modulated by an envelope. When I change the value of the length of the envelope (= modulation rate) on a device, it randomly crashes during testing but always on the same line of LibPd code. I thought it had to do with how fast the parameter was changed but no, it also happens when the parameter is slowly changed.</p>
<p>Here is below a (reduced) patch where the problem occurs. I have recently catched up with Pure Data. Any suggestions or corrections are welcome.</p>
<p><a href="/uploads/files/upload-9c1506d8-30a2-4af3-8927-b4f97c73474e.pd">modulatedOscillator.pd</a></p>
<p>Here is a screenshot of the crash in XCode with the code sequence and the  line of clock_unset that crashes.<br />
<img src="/uploads/files/upload-5ffd79ca-56c1-45be-8c3e-c40f2eb43b2a.png" alt="crash_m_sched.png" class="img-responsive img-markdown" /></p>
<p>I have done some printing and it crashes here:</p>
<p>void clock_unset(t_clock *x){<br />
if (x-&gt;c_settime &gt;= 0){<br />
if (x == clock_setlist) clock_setlist = x-&gt;c_next;<br />
else{<br />
t_clock *x2 = clock_setlist;<br />
while <strong><em>(x2-&gt;c_next != x)</em></strong> x2 = x2-&gt;c_next;<br />
x2-&gt;c_next = x-&gt;c_next;<br />
}<br />
x-&gt;c_settime = -1;<br />
}<br />
}<br />
With a printed value of : x2-&gt;c_next==NULL</p>
<p>Anyone has experienced something similar?</p>
<p>Thanks.</p>
<p>Pascal</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9289/lippd-crashes-with-vlines-in-libpd-clock_unset</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9289/lippd-crashes-with-vlines-in-libpd-clock_unset</guid><dc:creator><![CDATA[pascal2000]]></dc:creator><pubDate>Fri, 22 May 2015 20:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to LipPd crashes with vlines~ in (LibPd) clock_unset (?) on Thu, 11 Jun 2015 13:40:24 GMT]]></title><description><![CDATA[<p>Anyone? Am I the only one who is having these clock_unset ?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9289/lippd-crashes-with-vlines-in-libpd-clock_unset/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9289/lippd-crashes-with-vlines-in-libpd-clock_unset/2</guid><dc:creator><![CDATA[pascal2000]]></dc:creator><pubDate>Thu, 11 Jun 2015 13:40:24 GMT</pubDate></item></channel></rss>