HISE Logo Forum
    • Categories
    • Register
    • Login

    Exported VST causing Access Violations

    Scheduled Pinned Locked Moved Bug Reports
    62 Posts 4 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Adam_GA
      Adam_G @Christoph Hart
      last edited by

      @Christoph-Hart sorry found it alt text

      1 Reply Last reply Reply Quote 0
      • Adam_GA
        Adam_G
        last edited by

        was that the right panel? @Christoph-Hart

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @Adam_G
          last edited by

          @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?

          Adam_GA 2 Replies Last reply Reply Quote 0
          • Adam_GA
            Adam_G @Christoph Hart
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • Adam_GA
              Adam_G @Christoph Hart
              last edited by

              @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);
              
              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @Adam_G
                last edited by

                @Adam_G You might want to check the empty case, maybe that's what causing the problem.

                Adam_GA 1 Reply Last reply Reply Quote 0
                • Adam_GA
                  Adam_G @Christoph Hart
                  last edited by

                  @Christoph-Hart im not sure what you mean, do you mean the "slot" for the granulators sample map?

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @Adam_G
                    last edited by

                    @Adam_G no, an if branch in the script callback thaz checks if the item text is empty and then skips the rest.

                    Adam_GA 3 Replies Last reply Reply Quote 0
                    • Adam_GA
                      Adam_G @Christoph Hart
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • Adam_GA
                        Adam_G
                        last edited by

                        @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);
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • Adam_GA
                          Adam_G @Christoph Hart
                          last edited by

                          @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

                          1 Reply Last reply Reply Quote 0
                          • Adam_GA
                            Adam_G @Christoph Hart
                            last edited by

                            @Christoph-Hart is there any other information i can provide that would help figure this out? its driving me crazy haha

                            GoodflowG 1 Reply Last reply Reply Quote 0
                            • GoodflowG
                              Goodflow @Adam_G
                              last edited by

                              @Adam_G Are you using midi floating tiles in this project?

                              Adam_GA 1 Reply Last reply Reply Quote 0
                              • Adam_GA
                                Adam_G @Goodflow
                                last edited by

                                @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?

                                GoodflowG 1 Reply Last reply Reply Quote 0
                                • GoodflowG
                                  Goodflow @Adam_G
                                  last edited by

                                  @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?

                                  Adam_GA 1 Reply Last reply Reply Quote 0
                                  • Adam_GA
                                    Adam_G @Goodflow
                                    last edited by

                                    @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.

                                    1 Reply Last reply Reply Quote 0
                                    • Adam_GA
                                      Adam_G
                                      last edited by

                                      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..

                                      1 Reply Last reply Reply Quote 0
                                      • Adam_GA
                                        Adam_G
                                        last edited by Adam_G

                                        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

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @Adam_G
                                          last edited by

                                          @Adam_G Post it here and let people (Christoph) try and debug it

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          58

                                          Online

                                          1.7k

                                          Users

                                          11.7k

                                          Topics

                                          102.1k

                                          Posts