Exported VST causing Access Violations
-
@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?
-
@Goodflow sorry my mac vm takes several hours to export, but i just tested it with the floating tile disabled and yes i still get the crashes. i also tested my project with all code completely stripped and the crashes still occur so im lost. i think this has to be related to the scriptnode granulator which is also in my project.
-
finally got the mac debug working but i cant seem to crash the vst version of the plugin when its compiled by xcode. surely these must be clues haha im going mad..
-
deleted the scriptfx module containing the granulator and zero crashes. this is the culprit. what can i do guys? i really want to keep it in my project. does it not work?
its only on mac now that this is occurring
-
@Adam_G Post it here and let people (Christoph) try and debug it