Adaptive - Common Language Runtime detected an invalid program

again an adaptive question:

please see the following patch:

genericAdaptive.vl (15.7 KB)

Nothing too special: an adaptive ToString and its use in 2 variations.

Anyway, in my real usecase/project, i have a similar construct, but there it is causing issues:

First, i was under the impression, that the generic input is the culprit, which was the reason to create the genericAdaptive.vl testpatch. Since this one works as expected, the issue must be something else.

This faulting patch can be seen here: GitHub - schnellebuntebilder/VL.XmlModule at feat/spreads
(open HowTo Xml module.vl, the error should pop up)

Hey. Finally had a look at this one. I managed to get into a crash by setting up a XML binding to a Spread<Float32> - but it triggered a slightly different crash. It didn’t respect a value type constraint on a type parameter when looking up candidates for in this case TryParse. After fixing (in upcoming 7.2 preview) and supplying an implementation for TryParse on spreads it worked correctly.

So my question: to what channel did you try to bind? What type did that channel have? Don’t see that in your provided patches.

it was a Channel<Spread(vector2)>. (editor prevents nested <>)

in 7.1 stable, the error from above is not happening anymore, but the behavior is the same.

i’ll test the fix as soon as the build is up, thx!

hello @Elias

i finally came back to this and i think i found a misbehavior, because i still see sometimes my adaptive nodes not being picked up and after some hunting i found it might be related to generics.

please see the attached screenshot. on the left you see the adaptive ToString working just fine when connected to the SetXpathValue node. But when both are wrapped in a generic patch as you can see in the middle, i get this error message.

sorry, that was a false positive..