Crashing as soon as the data binding switch (cmd+b) is used
I have a somewhat complex data binding heavy animation - and i am currently getting a crash anytime i try to use the new live data binding preview switch…
i’ve made some logging tools to identify the issue, this is the log-file:
crash_session_20251025_122525.logRive Editor v0.8.3637
on Apple Silicone m3
OS 15.7.1 (24G231)
Location in Code:
File: package:rive_core/data_bind/context/context_value_number.dart
Function: ContextValueNumber.apply
Trigger: During DataBind.update operations
What’s Happening:
Unhandled Exception: Unsupported operation: Infinity or NaN toInt
#0 ContextValueNumber.apply (package:rive_core/data_bind/context/context_value_number.dart)Rive is trying to convert a number to an integer
The number is either Infinity or NaN (Not a Number)
This happens in the ViewModelInstanceNumber component
The error occurs during frame drawing (every frame!)
The Full Stack Trace Shows:
ViewModelInstanceNumberBase.propertyValue=
→ ContextValue.calculateValueAndApply
→ DataBind.updateSourceBinding
→ Artboard.updateDataBinds
→ Artboard.advance (animation frame)
→ OpenFileContext.advance
→ Rive._drawFrame
Specific Error:
trying to set invalid double value:
ViewModelInstanceNumberBase.propertyValue=