HISE Logo Forum
    • Categories
    • Register
    • Login

    Check cyclic reference = HISE crash?

    Scheduled Pinned Locked Moved Scripting
    13 Posts 6 Posters 486 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.
    • Dan KorneffD
      Dan Korneff
      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.healeyD
        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
        • ?
          A Former User
          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.

          Dan KorneffD 1 Reply Last reply Reply Quote 2
          • Dan KorneffD
            Dan Korneff @A Former User
            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

            ? ustkU 3 Replies Last reply Reply Quote 0
            • ?
              A Former User @Dan Korneff
              last edited by

              @dustbro Is 30ish times enough? ;)

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

              Dan KorneffD 2 Replies Last reply Reply Quote 0
              • ustkU
                ustk @Dan Korneff
                last edited by

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

                Can't help pressing F5 in the forum...

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @A Former User
                  last edited by

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

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @Dan Korneff
                    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

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 1
                    • Dan KorneffD
                      Dan Korneff @ustk
                      last edited by

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

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @Dan Korneff
                        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

                        Can't help pressing F5 in the forum...

                        1 Reply Last reply Reply Quote 1
                        • Dan KorneffD
                          Dan Korneff @A Former User
                          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 1
                          • orangeO
                            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.

                            develop Branch / XCode 13.1
                            macOS Monterey / M1 Max

                            1 Reply Last reply Reply Quote 0
                            • NatanN
                              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

                              19

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              104.9k

                              Posts