Shrieking Riley...
-
Hello everyone,
I caught a nasty little bug : I'm using the scriptnode band split templates, based on linkwitz-riley filters, on a project.
It turns out that they simply make the compiled plugin crash. They also produce a very very nasty sound when compiled into a dll and loaded into a Hardcoded Master FX module.Here's a snippet :
HiseSnippet 2091.3oc6a0zbaabFdgDWoHEmLMMNc5QdnGTlwgCwGjhb5gPKYwXMMTlifhSxI2U.KMWSfcQwGVhtMyji4dNjeI8d9IzY5eD+OnYWrfD.TPRjfhJwoj7B2Od284862kXQeelENHf4CT14rwdXfxCfliogCObHhPAG+DfxGC6E4DRN.QsqZ54PB69MfCF6gBBv1.EkM+BwDU1oBH9ya+7CPNHpENsK.34LhE9KItjvzd624uQbb5hrwmQbyLaiNGawnGxbXQbPsIrNvCYMB8R7IHwz1.BT15HaRHy2LDEhC.JUNfYO1bH6Bpb9OmDPN2AKZnBL4Kjr6tLGaAhE+Fb3Phic+ILe..n.6mJJ1TJJdHrGwlLs+TQxeHdfpoTjUdnrQd3sYN3olEd0y.uBfjRFHUQBoOBZZ4S7BSGQfm2GdLMD6O.wE6Yghbt.keFdHiOAZXMWzHbWedioDrWy50eTUi50+z+5fHpUHgQqxnmvBwOit2mt6+b2c1861s5rCMXPgiI1FeliC1uvgEZZ+ahv8nQtmi8eT0WibhvSmHm8yKSgWuLMqJ2Rx0YlHidLkD9LObR6qJ0AIhJt7e6DTwmZXrz+CSj9lNDarOfXKD8inry65i+G0Awfdpk72eQGvBs.pyr.8+wEbAzlYAd6+dAV.ga7rr.2adwV.0kcAzV1EPufE3qN9InPjvgJQ2x02dX+PhvTR4I3WyiNIcu1A9DbvnPlWrx20iQEVBJOXtT+WltoeamwYa3xrwh4JlWDlZMF3lMloQGWTJw+v+sSPH1yj7lbbQPzfAD9rfvpO8Mb5sscv8YADgCzz448Sc7lXKercbv7XDWs62nxii5yCgxc6EirMTBZvBxlpYYS56Hro5BylZYXy+9kuivlZ4XyslKG9KyB7T1ryql+sVtPK5VmyPxdI1Z0Edqypb+Y+kXq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ZkO2wZMypN2g15bG152O4NzWlbGsUW6GrxptUeYxcrVyrBypquL4NVqYt6ypmM2g95bG1F2O4NLJYtCtbuUqF6u1OXkk6vnj4NVqYV8ZF80ZleKkUOatCi++K2w0tZJamUCHAj7Vgc27nmRn3ig550q0Ze9m1sUaUucasq7jmTJ7g5j+AHm6Q6L8AwBJlGTuq4gl0Mp0X+l6qpq2XeC0l2c7f10wCZ247fdiV0T4TYn2j+swcGOnmiGpH4A4EC61bDx0X9vyz++494uXTxk5ZPh5JDIZKDRzVgHQegPh9JDIFWGRJQHrxbCdK3Bm8Ivmh7ss33ztZOT.GYUSt+TOLcD4.ybOp1X5U9IN066RWgoLhgOTJFdenI+fBwulGwL+eJtc0uF8Zb0u.yOBg3F4odCujG+m48k7vateIOdlUHe6OyGQC7XA4VXSrK4LFUHoS67qBvhPjmJtfUY6+PFxuvgd6m2kyjERiIJLxO9lZM4FWk4tEtYotPe4uxkYleA2tuJqp27j606s4xeMSuadQY1YBFMIhxiOh9ZrCOVQLF+i7fCCPQNgS5MuQdOFkM4t3kZAbJl6b9xWJhblh8BYnGGFhrFk1yC6bJ1AixZM+W57kbqPjeu3BSKkrPcgeogJTe8mgR3VU3YV82GWO3M+cz0CdAfx8QVj6i8vEY4ydgk79CKrkeu3d37MM9c+aGXOQ6pSeKijkr3xiH9BKqji4BJlFsRPidInwnDzznDzzrDzreIno0MRiHYTxgWEth7N5ej7+WP4HJhaIGa0C9Ef3W3iY
- Compile the network.
- Load into a hardcoded FX module
- Turn the volume down or your ears will bleed...
@Christoph-Hart, I think this one's for you :)
-
Quick info : of course when debugging the plugin in VS, it only outputs :
Unhandled exception at ... Access violation reading location ...
-
@Matt_SF Is this happening on macOS too? the filters work alright here, but that's definitely not supposed to happen.
-
@Christoph-Hart Oh and which samplerate and buffer size are you using?
-
@Christoph-Hart
I tested both Mac & PC with a UAD volt interface, with default 44.1kHz sRate and a buffer size of 128. Same thing happens.
I also test different sRates and buffer sizes (always multiple of 8 :) ), the result is the same.
I've also tested :
on Windows with the Low latency driver + MacOs core audio driver - again with buffers (mul of 8), and these times, it doesn't shriek but there's a big 'pop' and HISE's level meter freezes at max value :I've tested with 3bands & 4bands splits.
I can send you my project if you want, there's nothing fancy in it : simply a multiBand template and GUI controls to change the frequencies and the level of each band.
-
Bibidi bumpidy boo 🪄
-
@Christoph-Hart I actually turned on my brain and made some tests...
It appears that maybe the bug relies in the templates themselves :
I re-created a multiband splitter manually, exactly the same as yours and it works perfectly (the network and compiled versions).
As soon as I add any (band split) template, it works into HISE but doesn't once compiled...... -
@Matt_SF ah, interesting, but I think I've tested it with the template too (since they exist I'm way too lazy to setup the filters manually).
I just tested the 2band template, maybe something's wrong with the all passes (they are only used in 3+ band templates).
-
@Christoph-Hart I ran some more tests and, actually the 2-bands split doesn't wreck the speakers but produces glitches when changing the split frequency.
What I did then was : I loaded a 3-bands template but cleared and re-made every connection, while 'bypassing' the middle-ones and then it worked fine.
If I clear the connections but still use the middle ones, then it doesn't work.(I'm always talking about the compiled networks)
-
@Matt_SF Ah, we're getting closer. What if you use this template:
HiseSnippet 1409.3oc6Y8zaaTDEeV6LNMosHpDbgS9XpZIxdSof.Ipa9iAKHol5znJ0CQS1cb7TO6LK6NaSbQbhK8Pkfq8DeL3J7AfSbfq7E.o9Mn7d6t1dWa2zjUsAnxtRU67l2aleu+8a1La6.sCOLTGPrVZ2A9bh0kncFnL81nGSnHs1jX8NzsYgFdP0DQqOvmEFxcIVVk+BTf0RKPh+87asNSxTN7whHj8zBG9WK7DlwRa23qDRYSlKeWgWFsuQiVNZ0FZoNBvSYZMhOyoO6P9NLTsRThUksbEFcPGCyvCAcVW6NnSO8QpD82SDJNPxwA0IcfEJQLYidBoa6g9ZHgXsP6wdd4DO+8naKbEijONB7twSTcrEYiAVkNIHU+L.IqLPZgDHcEZGm.guY7LHdtHskBRHcYPnNKTRzkX8qzMzfBJypdr97lAvfQFrxMqU65Ug+6peV2HkiQnUU0pczF9cTqb0k+tkWZ4ue4pSNU2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x6RjE8joHQsOOHQsKBI5yNzKe+Vo48a+60uAEeSkTsmmTeK4jwrjn1yIQOqjnqcdPhtVwHQe579s+68RKYRp1ySpukbxXVRz0lSh9JHQe49U1xpzFk0i+y8e8WhMxz+5lW6Cp8arFSdGIVy7VKxeUb4t6hQWkEY1dg8aRu34e9e9z682+xqMuvFJL059dr36ysXeYkyiae1i4Dn22I4B0QG9BwR.5OU7mebI513XHq7njPEEuRXhmvUruiC9II9PHgMaarKfMqU.atQAr4iJfM2r.17wEvlO4DsA+proz2XQIHn8VImxXskhcfLkS+ezIdR7.
The difference is that there is no warning icon on the middle knobs. If that fixes the issue, I'll explain what the warning icon is about :)
-
@Christoph-Hart Aaah that did the trick indeed. That's odd though, I've noticed the warning icon before, but thought it was a glitch or something because the ranges of the mid-knobs are correct :
So in the end it was me who was the buggy thing... Thanks for the debug session :)