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

Why this lottie file is rendered fragmentary on some phones? #1675

Closed
jhwsx opened this issue Nov 10, 2020 · 2 comments · Fixed by #1768
Closed

Why this lottie file is rendered fragmentary on some phones? #1675

jhwsx opened this issue Nov 10, 2020 · 2 comments · Fixed by #1768

Comments

@jhwsx
Copy link

jhwsx commented Nov 10, 2020

Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.

If you don't use this template, your issue will be closed. Delete this text once completed.

Checklist

  1. My animation doesn't use any unsupported features.
  2. I know what part of my animation doesn't work.
  3. I have created a simplified version of my animation
  4. I have attached the AEP file (as a zip file so it can be attached) that only has the part of the animation that doesn't work.

Describe the bug
As attached anim_video_extract.zip, the lottie file is rendered perfectly on most of our test devices, however, is rendered fragmentary on a few test devices, such as OPPO OPPO R9sk Android 6.0.1, API 23, Motorola XT1650 Android 8.0.0, API 26.

What version of Lottie did you test this on?
3.5.0
What version of Android did you test this on?
6.0.1,8.0.0
Steps To Reproduce

  1. I use this lottie in xml like this:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

    </data>

    <LinearLayout
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:background="@drawable/common_background">
        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/lottie_animation_view"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            app:lottie_autoPlay="true"
            app:lottie_loop="true"
            app:lottie_rawRes="@raw/anim_video_extract" />
    </LinearLayout>
</layout>

Then, I inflate this xml into an empty activity.
These are all my app's codes.
2. Install the apk on my test device;
3. Start my app, then the bug happens.

Screenshots
Expected result:
Screenshot from 2020-11-10 10-40-44
Actual result:
Screenshot from 2020-11-10 10-18-30

@jhwsx jhwsx changed the title why this lottie file is rendered fragmentary on some phones? Why this lottie file is rendered fragmentary on some phones? Nov 10, 2020
@gpeal
Copy link
Collaborator

gpeal commented Jan 5, 2021

@jhwsx I was able to reproduce this on the Moto XT1650. It works if you set the render mode to software but I'll look into why this is happening.

@jhwsx
Copy link
Author

jhwsx commented Jan 5, 2021

@gpeal Thanks a billion.

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

Successfully merging a pull request may close this issue.

2 participants