HISE Logo Forum
    • Categories
    • Register
    • Login

    Plugin crashes Daw

    Scheduled Pinned Locked Moved General Questions
    vst3crashdawproject
    11 Posts 4 Posters 689 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.
    • A
      aaronventure
      last edited by

      The snippet in this case doesn't do much to convey your whole situation as we don't have the sample maps, graphics etc.

      Here's how you can find the culprit.

      Start by removing effects, one by one. Remove one, export VST, test.

      Once you're done with the effects, start removing modules.

      If you removed all the samplers and all the effects and you're still crashing the DAWs, the culprit is somewhere in the interface script. Remove the lottie. Remove images. Remove controls. Do it until you've stripped your project bare.

      Do it all step by step. Yes, it'll be painful and fucking boring waiting for compile every time. I personally use a symbolic link to the compiled VST in the project directory so I don't have to copy it every time.

      1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @StephanS
        last edited by

        @StephanS

        well just looking at the first bit of code:

        
        
        //Main Fade Slider 
        
        inline function onknbFaderControl(component, value)
        {
        	MainFader.setValueNormalized(component.getValueNormalized());
        	
        	pnlFader.setAnimationFrame(value);
        	knbFader.setValueNormalized(component.getValueNormalized());
        	
        	
        	MainFader.changed();
        };
        
        Content.getComponent("Knob1").setControlCallback(onknbFaderControl);
        
        
        
        inline function onMainFaderControl(component, value)
        {
        	knbFader.setValueNormalized(component.getValueNormalized());
        
        	Sampler1.setAttribute(Sampler1.Gain, 1 - value);
        	Sampler2.setAttribute(Sampler2.Gain, value);
        	
        	knbFader.changed();
        };
        
        Content.getComponent("MainFader").setControlCallback(onMainFaderControl);
        
        

        Im not sure why you are doing all of this when this will suffice:

        inline function onknbFaderControl(component, value)
        {
                pnlFader.setAnimationFrame(value);
        	Sampler1.setAttribute(Sampler1.Gain, 1 - value);
        	Sampler2.setAttribute(Sampler2.Gain, value);
        };
        Content.getComponent("Knob1").setControlCallback(onknbFaderControl);
        

        Of course this is just a linear x-fade - which is not too musical - so you might want to think about using some sort of RMS approximation....

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • S
          StephanS
          last edited by

          A big Thank you for your in Input and reply but nothing worked.

          I have tryed to complie just a simple Sine Wave Generator to test if the instrument compile worked but
          it doesnt.

          Is there some hockus pokus i have to do?

          I compiled the HISE develop Version with VS2022 and no ipp. I have done it like Davids youtube video
          Build 2022 on windows. I can compile FX Plugin but no working Instrument (64 or Vst3).

          When im compiling the only thing that come up is the warning message (See the pic below)

          Thanks for your help!Screenshot 2024-06-03 143207.png

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

            @StephanS What about standalone?

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

            1 Reply Last reply Reply Quote 0
            • S
              StephanS
              last edited by

              Hi David,

              Stanalone does not open at all after compiling.

              Ich have no clue. I have the same problem on my Laptop. Both Systems seemingly compile correct but
              all plugins crash the DAWs or standalone Versions doesnt open.

              Thanks David

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

                @StephanS said in Plugin crashes Daw:

                Stanalone does not open at all after compiling.

                Build a debug version and run it in VS to 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
                • S
                  StephanS
                  last edited by

                  Hi David,

                  can you please explain the process to me and how I then proceed
                  I have enable the Debug Mode in Settings but wich file i have to open in VS to check?

                  Thanks a lot for your help.
                  Cheers

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

                    @StephanS Open your project's juicer file in Projucer and click Save and Open in IDE - just like when you build HISE. Once in VS click the green play button (make sure debug is selected in the drop down). Then it will build a debug version and run it, giving you output in the console at the bottom of the screen.

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

                    1 Reply Last reply Reply Quote 0
                    • S
                      StephanS
                      last edited by

                      HI David,

                      I have compiled a debug version and it's the same Problem. Plugin is crashing the daw and Standalone Version do not open at all.
                      I have no idea anymore.
                      I have build Hise now several times and with several Versions of VS but it's all the same.
                      It compile right with no errors but it can not be open in the daw without crashing the daw.
                      I have tried it now with my laptop as well and it's the same thing.

                      My system is: Win 11 latest version, VS2022, Hise develop latest version,

                      Is it possible to check the vst3 plugin after compile if anything is OK or can someone check it for me?

                      Thanks all for your help

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

                        @StephanS said in Plugin crashes Daw:

                        have compiled a debug version and it's the same Problem. Plugin is crashing the daw and Standalone Version do not open at all.

                        Did you attempt to debug the standalone version with Visual Studio?

                        @StephanS said in Plugin crashes Daw:

                        I have build Hise now several times and with several Versions of VS but it's all the same.

                        That won't make any difference so don't worry about doing this.

                        @StephanS said in Plugin crashes Daw:

                        Is it possible to check the vst3 plugin after compile if anything is OK or can someone check it for me?

                        Send me your entire project - without the samples (if there are any).

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

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

                        41

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        102.2k

                        Posts