question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash in Lottie with NPE in BaseStrokeContent

See original GitHub issue

Environment: Lottie: 2.5.0 Android OS: 4.3.1 Device: Galaxy Nexus (Emulator)

Steps Just load the load the animation: https://www.lottiefiles.com/download/1830

E/AndroidRuntime: FATAL EXCEPTION: main
                  java.lang.NullPointerException
                      at com.airbnb.lottie.animation.content.BaseStrokeContent.<init>(BaseStrokeContent.java:61)
                      at com.airbnb.lottie.animation.content.StrokeContent.<init>(StrokeContent.java:25)
                      at com.airbnb.lottie.model.content.ShapeStroke.toContent(ShapeStroke.java:77)
                      at com.airbnb.lottie.animation.content.ContentGroup.contentsFromModels(ContentGroup.java:30)
                      at com.airbnb.lottie.animation.content.ContentGroup.<init>(ContentGroup.java:60)
                      at com.airbnb.lottie.model.content.ShapeGroup.toContent(ShapeGroup.java:29)
                      at com.airbnb.lottie.animation.content.ContentGroup.contentsFromModels(ContentGroup.java:30)
                      at com.airbnb.lottie.animation.content.ContentGroup.<init>(ContentGroup.java:60)
                      at com.airbnb.lottie.model.layer.ShapeLayer.<init>(ShapeLayer.java:25)
                      at com.airbnb.lottie.model.layer.BaseLayer.forModel(BaseLayer.java:44)
                      at com.airbnb.lottie.model.layer.CompositionLayer.<init>(CompositionLayer.java:52)
                      at com.airbnb.lottie.LottieDrawable.buildCompositionLayer(LottieDrawable.java:225)
                      at com.airbnb.lottie.LottieDrawable.setComposition(LottieDrawable.java:187)
                      at com.airbnb.lottie.LottieAnimationView.setComposition(LottieAnimationView.java:468)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
HunkDcommented, Jun 29, 2018

@gpeal https://github.com/HunkD/LottieCrash run this project on Android 4.4 x86 emulator will trigger crash

0reactions
gpealcommented, Sep 24, 2018

I’m going to close this as the above seems like a platform bug that Lottie can’t do anything about. The next version of Lottie won’t even accept JsonObjects anymore and it is discouraged to use them at any point in the pipeline because it purely adds overhead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java源代码 - 摸瓜
lottie. FontAssetDelegate.java; LottieComposition.java; utils ... EllipseContent.java; PolystarContent.java; MergePathsContent.java; BaseStrokeContent.java.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found