inaturalist / iNaturalistAndroid

Android app for iNaturalist.org
https://market.android.com/details?id=org.inaturalist.android
MIT License
164 stars 57 forks source link

RSInvalidStateException in ImageUtils.blur #1071

Closed kueda closed 2 weeks ago

kueda commented 3 years ago

https://console.firebase.google.com/u/2/project/inaturalist-ios/crashlytics/app/android:org.inaturalist.android/issues/0a4d923aeaac8248977803b8fde5ecdc

Fatal Exception: androidx.renderscript.RSInvalidStateException: Bad bitmap type: RGBA_F16
       at androidx.renderscript.Allocation.elementFromBitmap(Allocation.java:2654)
       at androidx.renderscript.Allocation.typeFromBitmap(Allocation.java:2659)
       at androidx.renderscript.Allocation.createFromBitmap(Allocation.java:2696)
       at androidx.renderscript.Allocation.createFromBitmap(Allocation.java:2749)
       at org.inaturalist.android.ImageUtils.blur(ImageUtils.java:78)
       at org.inaturalist.android.UserProfile$12.onLoaded(UserProfile.java:873)
       at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$2.run(UrlImageViewHelper.java:648)
       at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$3.onPostExecute(UrlImageViewHelper.java:669)
       at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$3.onPostExecute(UrlImageViewHelper.java:661)
       at android.os.AsyncTask.finish(AsyncTask.java:771)
kueda commented 3 years ago

Still happening in 1.24.0 (512)