Hi,
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.
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.
Here is below a (reduced) patch where the problem occurs. I have recently catched up with Pure Data. Any suggestions or corrections are welcome.
Here is a screenshot of the crash in XCode with the code sequence and the line of clock_unset that crashes.
I have done some printing and it crashes here:
void clock_unset(t_clock *x){
if (x->c_settime >= 0){
if (x == clock_setlist) clock_setlist = x->c_next;
else{
t_clock *x2 = clock_setlist;
while (x2->c_next != x) x2 = x2->c_next;
x2->c_next = x->c_next;
}
x->c_settime = -1;
}
}
With a printed value of : x2->c_next==NULL
Anyone has experienced something similar?
Thanks.
Pascal