Flare-flutter: The actor is broken

Created on 21 Dec 2018  路  11Comments  路  Source: 2d-inc/Flare-Flutter

The Penguin will be broken when I stop "walk" animation by isPaused parameter.
Please help this. Thank you.

2018-12-21 10 51 29

All 11 comments

Are you running the example/penguin_dance app or have you made any modifications to it? Could you share your source, if so?

I don't see this on my side, but I'm curious if you're doing something that's causing the actor to not advance after an update.

I'm having the same problem in my project. I have a simple animation and after I run it one and then update isPaused to true it stops animating, but afterward, when I attempt o update isPaused to false it doesn't start animating again.

Update: I went and looked at the penguin example to see if I had the same issue like @HaoliangHsiao mentioned, but I did not. I checked the version for flare_flutter and it was using 1.0.5, but my project was on 1.0.4. I updated my project to 1.0.5 and the issue went away.

I think this new issue @HaoliangHsiao is facing could be related to https://github.com/flutter/flutter/issues/25426. Try running flutter upgrade to see if it was related to that issue. Let me know, I can't seem to repro this with any of the examples.

I used your demo code 'Rockin' Penguin' on Pixel 3 Max.

This is my Flutter doctor :
Doctor summary (to see all details, run flutter doctor -v):
[鉁揮 Flutter (Channel master, v1.1.5-pre.16, on Mac OS X 10.13.6 17G65, locale
zh-Hant-TW)
[鉁揮 Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[鉁揮 iOS toolchain - develop for iOS devices (Xcode 10.1)
[鉁揮 Android Studio (version 3.1)
[鉁揮 Connected device (1 available)

device-2018-12-22-103444
device-2018-12-22-103424

Thanks @HaoliangHsiao, could you try it in release mode and see if it makes a difference?

I try to uesd v1.1.4, The issue will happen a few times.
[鉁揮 Flutter (Channel master, v1.1.4, on Mac OS X 10.13.6 17G65, locale
zh-Hant-TW)
[鉁揮 Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[鉁揮 iOS toolchain - develop for iOS devices (Xcode 10.1)
[鉁揮 Android Studio (version 3.1)
[鉁揮 Connected device (1 available)
device-2018-12-22-105528

I'm curious if it works in release mode as I have a similar issue with a Pixel 2 that corrupts the graphics in debug mode, but works fine in release.

flutter run --release

I might need to go pick up a Pixel 3 :-)

@luigi-rosso This issue does not happen on release build. It's work. Thank you.

We should open this issue on the Flutter repository as clearly there's something quite reproducible here that's affecting the Pixel devices. I'm on it :)

I was able to reproduce this on my Pixel 2, but it's somewhat random, as if you have to stop it on the right frame that somehow causes the problem. It's much clearer in the https://github.com/2d-inc/Flare-Flutter/tree/master/example/simple where it can be seen while the animation is playing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaumard picture jaumard  路  6Comments

BrainRayChristensen picture BrainRayChristensen  路  7Comments

EArminjon picture EArminjon  路  7Comments

rohan20 picture rohan20  路  6Comments

Nijinsha picture Nijinsha  路  7Comments