Hi all,<br><br>After some digging, here&#39;s what I found out. Even though dssi~ works fine if a plugin_lib:plugin_name is specified, anything other (including bogus names) crashes pd-extended 0.40.3. I tried 0.95 and 0.97 dssi~ external (latter compiled from source) and both exhibit this behavior. Closer inspection of the dssi~ code helped me identify the call that crashes Pd:<br>
<br>(line 1524)<br>static const char* plugin_tilde_search_plugin (t_dssi_tilde *x,<br>&nbsp;&nbsp;&nbsp; const char *name)<br>{<br>&nbsp;&nbsp;&nbsp; char* lib_name = NULL;<br>&nbsp;&nbsp;&nbsp; void* user_data[2];<br><br>&nbsp;&nbsp;&nbsp; user_data[0] = (void*)(&amp;lib_name);<br>
&nbsp;&nbsp;&nbsp; user_data[1] = (void*)name;<br><br>&nbsp;&nbsp;&nbsp; lib_name = NULL;<br>&nbsp;&nbsp;&nbsp; LADSPAPluginSearch (dssi_tilde_search_plugin_callback,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (void*)user_data); //&lt;--this call crashes Pd<br><br>&nbsp;&nbsp;&nbsp; /* The callback (allocates and) writes lib_name, if it finds the plugin */<br>
&nbsp;&nbsp;&nbsp; return lib_name;<br>}<br><br>When I comment LADSPAPluginSearch, recompile, and run the Pd, then the search for the plugin fails gracefully reporting failure to load plugin. But as soon as the function above is enabled Pd consistently crashes with the same error like the one I reported before:<br>
<br>Warning: no LADSPA_PATH and DSSI_PATH, assuming /usr/lib/ladspa:/usr/local/lib/ladspa:/usr/lib/dssi:/usr/local/lib/dssi<br>no more csLADSPA plugins<br>socket receive error: Connection reset by peer (104)<br>Segmentation fault<br>
<br>This is running on Intrepid with the ladspa-sdk being 1.1 (latest) version. However, upon closer inspection of the search.c in the ladspa-sdk I noticed that there is no such LADSPAPluginSearch function that takes in two arguments, but rather one as follows:<br>
<br>void<br>LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction)<br><br>So, what gives? Am I missing something obvious? When compiled in debug mode, dssi~ still manages to list all plugins, followed by &quot;no more csLADSPA plugins&quot; and then crashes as described above. Could it be something with my LADSPA setup?<br>
<br>I guess the easiest thing is to comment this call for the time being and make the dssi~ gracefully fail unless you correctly specify a plugin. Still, I am curious what is making this thing fail.<br><br>Best wishes,<br>
<br>Ico<br><br>