Check cyclic reference = HISE crash?
-
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
-
Crashes for me too, weird.
-
Do i need to setup anything extra to run the debug? Currently getting
The EQ also works as I expected it to.
-
@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.
-
@dustbro Is 30ish times enough? ;)
I'm using an older build, maybe newer versions broke it somehow?
-
@dustbro It doesn't crash when you stop the timer so it might be related.
-
@iamlamprey Maybe... I'm using the latest version.
-
@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
-
@ustk good catch.
@Christoph-Hart Halp!! -
@dustbro And if you put a longer timer so you have the time to close the result of the check it won't crash
-
@iamlamprey I just loaded up a HISE commit from last July. No crash.
-
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.
-
Works Here
Windows 10 /ProHise Build :
HISE-61257a81932a80064af8d2949e882f1a5ddb9138Edit: That Javascript Caused To Crash :) LOL