2d-inc/Flare-Flutter

Flare fails to load multiple files at once.

ciriousjoker opened this issue · 2 comments

I have 4 files that are named 1.flr, 2.flr and so on.
All files exist and work properly when I test them individually with only one FlareActor.
When I make a Row() out of 4 FlareActors, exactly one of them doesn't display anything.
Hotreloading to make them all display the same file works, meaning that if I change the code for them to all display each file individually, all files work except the one that didn't load when I tried loading all of them at once.

If I load 4 FlareActors with 1.flr, then hotreload to 2.flr and so on, all files load correctly and when I change it to load all of them at once, it keeps working (all files are displayed).

It seems like when it doesn't work, Flare tries to load all 4 files at once at some point (and fails for one of them) and then caches the failed result so it doesn't work the next time either.

For some stupid reason, this bug is reproducable when I click "debug" in VS Code, but as soon as I close the app and reopen it (same code, same everything, just without adb connection), it works exactly as intended.

I couldn't reproduce the issue with the latest tools. Dunno what fixed this, but in the meantime, a new VSCode version came out and this is the output of flutter --version:

Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (3 weeks ago) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0