<div dir="ltr">So it really seems that another error() function is used instead of the Pd one. Because if I rename the Pd function error() to something else (my_pd_error() for example) and replace all the occurrences of its use with this new name, the plugin doesn't crash. Does anybody have any idea on how to fix this properly?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 9 févr. 2021 à 09:18, Pierre Guillot <<a href="mailto:guillotpierre6@gmail.com">guillotpierre6@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>There is a crash on Linux version of Camomile when an attempt to read a file that doesn't exist with the [textfile] or [text define] objects (<a href="https://github.com/pierreguillot/Camomile/issues/239" target="_blank">https://github.com/pierreguillot/Camomile/issues/239</a>). <br></div><div><br></div><div>After some investigation, it seems that the call of the error() function from <span>the binbuf_read_via_canvas() function generates the crash (<a href="https://github.com/pure-data/pure-data/blob/eeef4ba9130d3182146927c37fa57d61bbff0f0b/src/m_binbuf.c#L878" target="_blank">https://github.com/pure-data/pure-data/blob/eeef4ba9130d3182146927c37fa57d61bbff0f0b/src/m_binbuf.c#L878</a>) - if I remove this line, the problem is fixed. <br></span></div><div><span><br></span></div><div><span>I tried to find the problem with this error() function and I realised that this Pd error() function might not be used in fact (because if I remove all the content of this error() function and so it doesn't do anything, the program still crashes). I can even remove the definition of the function (<a href="https://github.com/pure-data/pure-data/blob/eeef4ba9130d3182146927c37fa57d61bbff0f0b/src/s_print.c#L199-L212" target="_blank">https://github.com/pure-data/pure-data/blob/eeef4ba9130d3182146927c37fa57d61bbff0f0b/src/s_print.c#L199-L212</a>), the plugin still compiles! <br></span></div><div><span><br></span></div><div><span>So I think that there is confusion and another function is used instead of the Pd one from s_print.c. t could be this function (<a href="https://man7.org/linux/man-pages/man3/error.3.html" target="_blank">https://man7.org/linux/man-pages/man3/error.3.html</a>) from error.h but I can't find where this header could be included. <br></span></div><div><span><br></span></div>First of all, is my assumption (the confusion between two functions with the same name) plausible? If so, do you think it could be the one from error.h? And can I fix this? <br><br>If you want to test, I suggest you use the dev/cmake-support branch of Camomile that is pretty easy and straightforward to compile and the VST3 plugin. Thank you for your assistance!<br><br>All the best,<br>Pierre</div>
</blockquote></div>