airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
35.03k stars 5.41k forks source link

updateSurface: has no frame #2373

Closed johnnyzen closed 1 year ago

johnnyzen commented 1 year ago

implementation 'com.airbnb.android:lottie:5.2.0'

Constant logging of "updateSurface: has no frame" when animation playing

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:mapbox="http://schemas.android.com/apk/res-auto"
    android:padding="8dp"
    android:background="@drawable/main_background">

  <com.airbnb.lottie.LottieAnimationView
          android:id="@+id/bt_scanning_lottie_view"
          android:layout_width="48dp"
          android:layout_height="48dp"
          app:layout_constraintTop_toTopOf="@+id/map_view_button"
          app:layout_constraintBottom_toBottomOf="@+id/map_view_button"
          app:layout_constraintEnd_toEndOf="parent"
          android:padding="4dp"
          app:lottie_colorFilter="@color/white"
          app:lottie_autoPlay="true"
          app:lottie_loop="true"
          app:lottie_rawRes="@raw/bluetooth_scanning_6" />

</androidx.constraintlayout.widget.ConstraintLayout>

Any ideas on whats causing this?

gpeal commented 1 year ago

That log isn't coming from Lottie.

johnnyzen commented 1 year ago

Well it goes away if I comment out com.airbnb.lottie.LottieAnimationView ?

gpeal commented 1 year ago

Are there any visual issues with your animation?

johnnyzen commented 1 year ago

No, I will do a few more tests. I have tried various different animation files. I will create a new project and see what I can find. Thanks for the reply and help.