mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

Leak - out of memory #79

Open estefaniamiguel opened 9 years ago

estefaniamiguel commented 9 years ago

Sometimes I get an out of memory message the leak occurs here: public CacheBitmap(int w, int h, Config config) { bitmap = Bitmap.createBitmap(w, h, config);

Here is some information about that leak http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object

i'm trying to solve it by my own but i can't, maybe yo can do it but i'll let you know my progress

sigrlami commented 9 years ago

@estefaniamiguel got this one, in my case DocumentView is part of ListView row and this happends with fast scrolling

chrjsorg commented 8 years ago

documentView.setCacheConfig(DocumentView.CacheConfig.NO_CACHE); Reduced the memory usage of my app by approx. 10mb. Thats huge. Maybe it helps other users too.