Forum

    • Register
    • Login
    • Search
    • Categories

    Check cyclic reference = HISE crash?

    Scripting Forum
    6
    13
    54
    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.
    • dustbro
      dustbro last edited by

      Hey Guys,
      I have a project that is crashing when I perform Check Javascript for objects for cyclic references. I've narrowed it down to a script I'm using on the Parametric EQ but can't see anything wrong. Can I get some extra eyes on this?

      const var ParametriqEQ1 = Synth.getEffect("Parametriq EQ1");
      
      const var EQtimer = Engine.createTimerObject();
      
      EQtimer.setTimerCallback(function()
      		{
                      var GainIndex = 0 * ParametriqEQ1.BandOffset + ParametriqEQ1.Gain;
      	        ParametriqEQ1.setAttribute(GainIndex, Math.randInt(-5, 5));
      	        
      	        var FreqIndex = 0 * ParametriqEQ1.BandOffset + ParametriqEQ1.Freq;
      	        ParametriqEQ1.setAttribute(FreqIndex, Math.randInt(20, 20000));
      	        
      	        var QIndex = 0 * ParametriqEQ1.BandOffset + ParametriqEQ1.Q;
      	        ParametriqEQ1.setAttribute(QIndex, 8);
      		});
          
      EQtimer.startTimer(60);
      
      HiseSnippet 923.3ocuV00SaCCE0okLsjsJARS64HdpcCpR4qgDZZEJsSUa.sqLzdC4l3R8H0t33vnBwum82a+C1tNIsIgUXUQhEID02OrO9bu9X2QvcH99bARy3zIiIHsWp2aBSNrwPLkgZeHXWmb04RhuDcvjwXeehKRSq3GUt0LVBE98qOb.1CybHIlPny3TGxmoinxDqcp+IpmWKrK4T5nTQuU81NbVCtGO.fRQcazXryk3KHGiUgUPGo8rltTIWzShAvfzV5.t6jdC4+fEE+YTeZeOhZPMTOXhhL2h64pPrxJpwPpmamoaYeDLKcRHfhQDvqzOh5RmYOgHVNzgURFo4CsBOF7pkFd1KN7zRAukhf2J58bDzwxDOJr8B81LIQL.CkfzvJJVTg5E0avgHXxpivWRZIfAyxn7N11qYsssck8JYVxDJD9RqqwBqNXAP+RA8plcqY8dqvNipWPjMGLf3HKuZR.VPDqd+7a1UBUYAjYS1ETFopif.zipzKNo+2USQTJwAV0mHCc1.640GZ.JOHf4HobV4JkLMLtsjoUpO0Rn5CaybI2.Khs0axB4pGfYtmLX.LsVu8dtTIBqswzIKqWHi8kvf9ARR4YqwZVGgABP.yJPdkWeaf0pTI8rj5mJz0RPtJWnSk3BhtYqw8P2FPMcCa36QQX2bAutKH15FCrcCgfwcp+EAhYUbIVDUygtvJ6MsdawYGykjSfBu4slFl2YZceWCFLWep1bA2yClv44NZodjDKyBF0mHVCXGu.xr.gyeYOfq+vGvSq+3DcpKUfbnWhJOYLg8PG6QwGUge801GhkXkRPrMHtwDgjpff1gjqAI1HcAC8CI9WJ4iAQ1+Rz.jt3tAdXYV8LUicrCfCxHbnDGX9T4jzh7OIhbKJbWQuCU5Lb93svbvKvZO03M9JiR5QBhIfcI8VeKu2OL+qur+W2OXNsOnQf3ZRyqhqwYknyfoiCF0h5AWBnZm0zfsl5HucLCZA+UWYn1LJ80+LzvFIbrUngMy9R.l6VIFVtdqVm1jggMWDQTLKQTbwHh4TG9BOPRYW.hdB5MvN.1N8fmO3Pfx.iQ7B2UETGmhFaqFqfTOR3tTW62vWryZSo.kyZSc9eYMFgcD7ychjeTU0mGZA12rvG+XnejZrUMTnjDjmtcUazH3wHm63n50VG5SmeNajib1LG4rUNxY6bjyN4Hm2kib18QyQ8Nv8Cj7QQ5PfgNMC0o0zR0oi9C375Q3H
      

      Dan Korneff - Producer / Mixer / Audio Nerd

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

        Crashes for me too, weird.

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

        1 Reply Last reply Reply Quote 1
        • iamlamprey
          iamlamprey last edited by

          Do i need to setup anything extra to run the debug? Currently getting

          49df2966-aac2-4433-af04-1589c03e9ac7-image.png

          The EQ also works as I expected it to.

          Music - Instruments

          dustbro 1 Reply Last reply Reply Quote 2
          • dustbro
            dustbro @iamlamprey last edited by

            @iamlamprey Sometimes it will pass the check on this end. If I check again, it crashes. Try a few times and let me know what happens.

            Dan Korneff - Producer / Mixer / Audio Nerd

            iamlamprey ustk 3 Replies Last reply Reply Quote 0
            • iamlamprey
              iamlamprey @dustbro last edited by

              @dustbro Is 30ish times enough? 😉

              I'm using an older build, maybe newer versions broke it somehow?

              Music - Instruments

              dustbro 2 Replies Last reply Reply Quote 0
              • ustk
                ustk @dustbro last edited by

                @dustbro It doesn't crash when you stop the timer so it might be related.

                Tired to press F5 in the forum...
                Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                dustbro 1 Reply Last reply Reply Quote 0
                • dustbro
                  dustbro @iamlamprey last edited by

                  @iamlamprey 😵 Maybe... I'm using the latest version.

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  ustk 1 Reply Last reply Reply Quote 0
                  • ustk
                    ustk @dustbro last edited by

                    @dustbro In fact if you put let say 3000ms, you have the time to see there's no cyclic issue, but once the timer restart it crashes anyway so it is definitely a bug between the check and the timer

                    Tired to press F5 in the forum...
                    Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                    1 Reply Last reply Reply Quote 1
                    • dustbro
                      dustbro @ustk last edited by

                      @ustk good catch.
                      @Christoph-Hart Halp!! 🤒 🤕 🙃

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • ustk
                        ustk @dustbro last edited by

                        @dustbro And if you put a longer timer so you have the time to close the result of the check it won't crash

                        Tired to press F5 in the forum...
                        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                        1 Reply Last reply Reply Quote 1
                        • dustbro
                          dustbro @iamlamprey last edited by

                          @iamlamprey I just loaded up a HISE commit from last July. No crash.

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          1 Reply Last reply Reply Quote 2
                          • orange
                            orange last edited by orange

                            I am using the latest scriptnode version and it crashes in my system too 😕

                            Timer objects are always risky. It would be good if there was a way to use a sliderpack (without using timer objects) for this kind of applications. Yeah it wouldn't be random like that but if you use 32 bars, it would be similar to this.

                            It could be possible in scripnode also.

                            1 Reply Last reply Reply Quote 0
                            • Natan
                              Natan last edited by Natan

                              Works Here
                              Windows 10 /Pro

                              Hise Build :
                              HISE-61257a81932a80064af8d2949e882f1a5ddb9138

                              Edit: That Javascript Caused To Crash 🙂 LOL

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

                              15
                              Online

                              794
                              Users

                              5.5k
                              Topics

                              51.6k
                              Posts