-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type 'FlutterColorFill' is not a subtype of type 'ActorNode' in type cast #45
Comments
Hey @ljsalvatierra, thanks for the error report! Could you share the affected Flare file? |
I am also getting a similar issue. |
The case that @jasonch99 is talking about is difficult to reproduce consistently. This assignment should just never happen though, unless the class heirarchy is re-worked. An "easy" fix would be to make it a descendent of |
Hi @dnfield and @jasonch99 - Let me check in on this today for both of you with engineering. |
@kekecorp, any update on this? |
We are seeing similar stack traces in other apps as well:
@luigi-rosso any idea under what conditions these would appear? |
This could happen if an animation is being applied to an artboard that it wasn't created for. FlareActor usually takes care of maintaining valid animations for the active artboard. However, when using a custom controller it's possible for the controlling widget to change the file being displayed and not change the controller in tandem. The controller could still be applied with the wrong animation. In Rive 2 we change this around a bit by making the controller's lifecycle being tied to the artboard instead of the rendering widget, making it difficult for someone to accidentally run into this condition. The important thing for is to make sure custom controllers are removed from the rendering widget when the file changes (change filename/artboard reference and controller in sync). |
Thanks for the clarification. I will try using a new FlareControls whenever the file is changed. |
Hi, first I would like to thank you for this amazing project, truly amazing :)
It happens when i try to transform the visibility of a FlareActor. I set the percent visible with a gesture detector.
Kind regards,
Luis
The text was updated successfully, but these errors were encountered: