mathew-kurian/TextJustify-Android

OutOfMemory Error with DocumentView inside ListView

Closed this issue · 6 comments

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

@divineCake

Try disabling the cache and see what happens

docView.setCacheConfig(CacheConfig.NO_CACHE)

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!

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:
#64 (comment)

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

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

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.