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

OutOfMemory Error with DocumentView inside ListView #64

Closed polcham closed 9 years ago

polcham commented 9 years ago

Hi Mathew Kurian, I'm getting an OutOfMemory error on DocumentView when running the app on my tablet (Nexus10). It is odd because I tested it on weaker devices (HTC One V) and is working just fine. Is this a known issue? screen shot 2015-02-04 at 8 10 32 pm

mathew-kurian commented 9 years ago

@DivineCake

Try disabling the cache and see what happens

docView.setCacheConfig(CacheConfig.NO_CACHE)
polcham commented 9 years ago

Hi Mathew, I tried to disable the cache as you suggested, holder.description.setCacheConfig(DocumentView.CacheConfig.NO_CACHE); It crashes with the following error: screen shot 2015-02-04 at 11 22 08 pm

Thanks!

mathew-kurian commented 9 years ago

This is unusual. I will review the code soon and let you know.

— Sent from Mailbox

On Wed, Feb 4, 2015 at 9:24 AM, DivineCake notifications@github.com wrote:

Hi Mathew, I tried to disable the cache as you suggested, holder.description.setCacheConfig(DocumentView.CacheConfig.NO_CACHE); It crashes with the following error: screen shot 2015-02-04 at 11 22 08 pm

Thanks!

Reply to this email directly or view it on GitHub: https://github.com/bluejamesbond/TextJustify-Android/issues/64#issuecomment-72873930

mathew-kurian commented 9 years ago

@DivineCake You caught a bug. Thanks! Use version 2.1.0

polcham commented 9 years ago

Now working on the Nexus 10 by disabling cache! Thank you so much Mathew.

polcham commented 9 years ago

Hi Mathew,

After testing again, I noticed that on version 2.1.0, PressableDocumentView is not working as intended. I tested by reverting back to version 2.0.8 and true enough, PressableDocumentView is working just fine.