Cycling74 / rnbo.unity.audioplugin

RNBO Adapter for Unity's Native Audio Plugin
MIT License
40 stars 8 forks source link

"Assertion failed!" crash on UNITY #40

Open JimPapanick opened 5 months ago

JimPapanick commented 5 months ago

image

I made a working noise vocoder and I exported it and loaded it into my project. As soon as I open it I get this crash error

EDIT: I tried loading the json file from the package manager in a new and empty project and i got these errors image

jinpavg commented 5 months ago

Hi @JimPapanick , thank you for reaching out here -- can you give me a little more information, which versions of RNBO and Unity are you using? Also, is this something new, have you been able to get other patch exports working in the past, or in this project?

JimPapanick commented 1 week ago

This weird problem gets solved if you are using "<" or ">" comparinsons and your default value is lower than the @min or higher than the @max. Set your default value between the expected values and it is fixed. Why this happens to crash unity idk.

jinpavg commented 6 days ago

Hi Jim, thank you for this -- can you explain a little more, where are you doing this less than / greater than comparison? Are you talking about a [param] object in RNBO? Can you give an example of an object that does give the crash and one that does not give the crash?

JimPapanick commented 6 days ago

I think it's a param actually, on second look. The picture below would crash unity when exported. I think it's because the parameter can't accept a default value lower than it determines. If I come across this again I will post in more details. image

jinpavg commented 3 days ago

OK, thank you Jim, yes please let us know if it crashes again under the same conditions.