2d-inc/Flare-Flutter

The actor is broken

HaoliangHsiao opened this issue ยท 11 comments

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

2018-12-21 10 51 29

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 flutter/flutter#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.