Skip to content
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

image png error! #61

Open
billjone opened this issue Mar 25, 2019 · 5 comments
Open

image png error! #61

billjone opened this issue Mar 25, 2019 · 5 comments

Comments

@billjone
Copy link

when I add a png image ,there is an error.

E/flutter (11979): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: type 'ActorNode' is not a subtype of type 'ActorDrawable' in type cast
E/flutter (11979): #0 KeyFrameDrawOrder.apply (package:flare_dart/animation/keyframe.dart:450:61)
E/flutter (11979): #1 PropertyAnimation.apply (package:flare_dart/animation/actor_animation.dart:199:21)
E/flutter (11979): #2 ComponentAnimation.apply (package:flare_dart/animation/actor_animation.dart:248:27)
E/flutter (11979): #3 ActorAnimation.apply (package:flare_dart/animation/actor_animation.dart:403:26)
E/flutter (11979): #4 FlareActorRenderObject._updateAnimation (package:flare_flutter/flare_actor.dart:471:19)
E/flutter (11979): #5 FlareActorRenderObject.filename=. (package:flare_flutter/flare_actor.dart:248:11)
E/flutter (11979): #6 _rootRunUnary (dart:async/zone.dart:1132:38)
E/flutter (11979): #7 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (11979): #8 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
E/flutter (11979): #9 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
E/flutter (11979): #10 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
E/flutter (11979): #11 Future._complete (dart:async/future_impl.dart:473:7)
E/flutter (11979): #12 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
E/flutter (11979): #13 _AsyncAwaitCompleter.complete (dart:async/runtime/lib/async_patch.dart:28:18)
E/flutter (11979): #14 _completeOnAsyncReturn (dart:async/runtime/lib/async_patch.dart:294:13)
E/flutter (11979): #15 Actor.load (package:flare_dart/actor.dart)
E/flutter (11979):
E/flutter (11979): #16 FlutterActor.loadFromBundle (package:flare_flutter/flare.dart:595:18)
E/flutter (11979):
E/flutter (11979): #17 FlareActorRenderObject.filename= (package:flare_flutter/flare_actor.dart:228:13)
E/flutter (11979): #18 FlareActor.createRenderObject (package:flare_flutter/flare_actor.dart:43:9)
E/flutter (11979): #19 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4497:28)
E/flutter (11979): #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #22 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4875:14)
E/flutter (11979): #23 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #24 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4981:32)
E/flutter (11979): #25 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3746:16)
E/flutter (11979): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:3558:5)
E/flutter (11979): #29 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3715:5)
E/flutter (11979): #30 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3863:11)
E/flutter (11979): #31 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3710:5)
E/flutter (11979): #32 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #34 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4875:14)
E/flutter (11979): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3746:16)
E/flutter (11979): #38 Element.rebuild (package:flutter/src/widgets/framework.dart:3558:5)
E/flutter (11979): #39 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3715:5)
E/flutter (11979): #40 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3710:5)
E/flutter (11979): #41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #43 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4875:14)
E/flutter (11979): #44 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2954:14)
E/flutter (11979): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2757:12)
E/flutter (11979): #46 SingleChildRenderObjectElement.mou
I/AwareBitmapCacher(11979): init lrucache size: 2097152 pid=11979
I/.dx.flutterapp(11979): Starting profile saver IsSaveProfileNow end.

@umberto-sonnino
Copy link
Contributor

Hey @billjone, could you share the file that's crashing?

@billjone
Copy link
Author

thi is the flr file url: https://www.2dimensions.com/a/billjone/files/flare/new-file/preview

and this is the code of my dart:
child: new FlareActor("animations/flare.flr", animation: "Untitled"),

@billjone
Copy link
Author

@umberto-sonnino hello
this is the project
https://github.com/billjone/flutter_app2

luigi-rosso added a commit that referenced this issue Mar 26, 2019
@luigi-rosso
Copy link
Contributor

This should be fixed in flare_flutter 1.3.5, please update your pubspec.yaml and let us know!

@billjone
Copy link
Author

It's OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants