Closed Jaymassena closed 9 years ago
Allocations to fix Convert AirImageView.onBitmapLoaded->fadeInMedium to use object animator.
Notes after pounding the app with general use until alloc = 113.2MB, free = 8.8 after gc. Captured heap profile and loaded into eclipse memory analyzer.
Leak suspect 1: picasso.LruCache: 27.6MB Leak suspect 2: graphics.Bitmap: 32.5MB
PlaceEdit activity is leaking because MapView is holding a reference to it.
PlaceEdit, LocationPicker and PhotoForm were all leaking and have been fixed for v1.4.3.
Also reduced the default size of the lrucache from ~25% to ~15%.
After my latest work, I've confirmed using heap analysis that the app is not leaking any fragments or activities or contexts. Also, memory consumption by bitmaps looks pretty much as expected.
Memory allocated slowly grows with activity. I would the expect the garbage collector to do a better job of reclaiming memory so there is a super good chance I have memory leaks and|or something that is slowly claiming more memory like a memory cache. Need to make sure we are leaking activity contexts because of anonymous inner instances of AsyncTask.