[PD-dev] message crash when using menuclose on patch

Dan Wilcox danomatika at gmail.com
Sun Oct 22 21:22:48 CEST 2017


The crashes are almost always happening in m_class.c pd_typedmess():

1) when accessing x via t_class *c = *x or
2) when accessing the typemethod in m->me_name 

I've managed to isolate the 1) by:

* setting the pointer value to 0 at the end of m_pd.c pd_free() with memset(&x, 0, sizeof(x));
* and checking if x is NULL and returning at the beginning of pd_typedmess()

As suggested before, this seems to indicate that the menuclose frees the canvas object while pd_typedmess() is checking for receive objects. I have no issue opening & closing patches without receive objects.

> On Oct 22, 2017, at 4:27 PM, Dan Wilcox <danomatika at gmail.com> wrote:
> 
> IOhannes, et al, any tips on where to look to fix this?

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20171022/4f57c4d8/attachment-0001.html>


More information about the Pd-dev mailing list