Persistent Data record undo recording threw an exception

Hey there! I am trying to set persistent data on a custom floating param, and every once in a while, I get this error: Persistent Data record undo recording threw an exception: Source array was not long enough. Check srcIndex and length, and the array's lower bounds. This happens right after the param.SetPersistentData(...) call. No errors are thrown within Visual Studio, all I get is a Grasshopper traceback. Could anyone please help me understand what is going wrong here? Thanks in advance!

@stevebaer, @DavidRutten, @andheum Sorry to bug you guys, but any thoughts?

Do you have a project that reproduces this problem? Sharing that project would be super helpful in diagnosing and fixing this problem.

Is this new in a specific build of Rhino?

Hi @brian, thanks for getting back to me. Let me see what I can do. This might be tough because this is a private repo with a ton of proprietary dependencies. Also, this isn’t even CORE’s repo and we’re all under an NDA haha. Let me chat with @emilpoulsen to see if we can isolate something that we can share.