-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Fatal Exception: java.lang.IllegalStateException: com.squareup.picasso.LruCache.sizeOf() is reporting inconsistent results! #1693
Comments
This has been an issue for me for some time now as well. The method looks like this in api 25: Hope this helps. I would really appreciate a fix for this, as I am using Picasso through a third party dependancy, so I cannot really do anything to mitigate the problem, and I am fearing the day that the Samsung army starts updating to Android 8! :-) Regards, |
Thanks @mhswtf for the insight. I would think a quick fix would be in
If we added another check for 'Bitmap.isRecycled' to the already existing if statement, then the function returns immediately without calling trimToSize. Since this is a bailing condition statement already, I would think that adding My only hesitation at this point is that I can't recreate the crash on an emulator and I don't have a physical phone running Android 8 to test on. Has anyone found a consistent way to recreate the crash (on either emulator or physical device)? |
Fix was merged. Thanks for the report. |
A lot of my users are getting the following error, and only on Android 8:
I have no idea how to reproduce it and don't know what's causing the error.
The text was updated successfully, but these errors were encountered: