You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.
Google If you don't use this template, your issue will be closed. Delete this text once completed.
Checklist
Fork this repository into your account.
Reproduce your issue in the issue-repro module. Issues without a repro in the issue-repro
module may be auto-closed.
Link to fork with a repro in the issue-repro module
Describe the bug
We received a production bug that the app crashed in LottieDrawable.
IllegalArgumentException is thrown when creating bitmap in ensureSoftwareRenderingBitmap() if the getIntrinsicWidth or getIntrinsicHeight returns -1. So, returns when renderWidth or renderHeight is negative to avoid the crash
Fixes#2350
Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.
Google
If you don't use this template, your issue will be closed. Delete this text once completed.
Checklist
module may be auto-closed.
Link to fork with a repro in the issue-repro module
Describe the bug
We received a production bug that the app crashed in LottieDrawable.
At https://github.com/airbnb/lottie-android/blob/master/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java#L1623, the code only check if (renderWidth == 0 || renderHeight == 0), and it should be changed to if (renderWidth <= 0 || renderHeight <= 0) to make sure covering all cases.
Steps To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: