Exported VST causing Access Violations
-
@Adam_G nope jasserts are fine, keep on clicking on continue until you hit a access violation ;)
-
@Christoph-Hart took forever to get a crash for some reason haha, this?
-
@Adam_G yes that‘s the spot, now show me the callstack (bottom right panel).
-
@Christoph-Hart this?
-
@Adam_G nope, callstack. first tab on the right :)
-
@Christoph-Hart sorry found it
-
was that the right panel? @Christoph-Hart
-
@Adam_G Yeah, but I can't spot anything wrong in those locations. It appears to crash because you're trying to load a sample map in a scriptnode audio file slot, so maybe double check that you're not passing an invalid sample map ID in there.
Also, is it crashing when you debug the standalone version?
-
@Christoph-Hart that may be the cause as i have a scriptfx granulator that loads the same sample map as the sampler. i will test the standalone today but i havent been able to make it crash at all afaik
-
@Christoph-Hart is the way i have this written the problem perhaps?
inline function oncmbPatchesControl(component, value) { slot.loadFile("{XYZ::SampleMap}" + component.getItemText()); sampler1.loadSampleMap(sampleMaps[value-1]); }; cmbPatches.setControlCallback(oncmbPatchesControl);
-
@Adam_G You might want to check the empty case, maybe that's what causing the problem.
-
@Christoph-Hart im not sure what you mean, do you mean the "slot" for the granulators sample map?
-
@Adam_G no, an if branch in the script callback thaz checks if the item text is empty and then skips the rest.
-
This post is deleted! -
@Christoph-Hart i do have that for the preset labels default text. is this what you meant?
inline function onsliderControl(component, value) { if (Engine.getCurrentUserPresetName() == "") Content.getComponent("lblPreset").set("text", "Default"); else Content.getComponent("lblPreset").set("text", Engine.getCurrentUserPresetName()); }; Content.getComponent("slider").setControlCallback(onsliderControl);
-
@Christoph-Hart i should also mention the crash only happens when i use the button "reload plugin" in fl studio, or when i delete and reopen the plugin in abelton so it is happening on a reload of the plugin
-
@Christoph-Hart is there any other information i can provide that would help figure this out? its driving me crazy haha
-
@Adam_G Are you using midi floating tiles in this project?
-
@Goodflow yes i am, i did the fix you posted here https://forum.hise.audio/topic/4656/midi-overlay-panels-in-compiled-plugin-crashing-daws/22?_=1684334539180
it completely solved the issue in the windows version of the vst but the mac version still crashes. did you do anything differently on mac?
-
@Adam_G That's odd, I followed those steps on a mac first and the problem disappeared.
If you disable the midi tiles on your project before compiling the mac version, does the VST crash on reload?