0

I am getting the following stack trace error on google play. It's only happening with my most recent update, which included adding some third-party code that requires an internet connection as well as updates to my code. I cannot figure out how to recreate this problem nor can I seem to figure out where it is coming from. Any ideas?

java.lang.OutOfMemoryError: (Heap Size=8519KB, Allocated=5304KB, Bitmap Size=24283KB) at android.webkit.ByteArrayBuilder$Chunk.(ByteArrayBuilder.java:136) at android.webkit.ByteArrayBuilder.obtainChunk(ByteArrayBuilder.java:127) at android.webkit.ByteArrayBuilder.append(ByteArrayBuilder.java:55) at android.webkit.LoadListener.data(LoadListener.java:744) at android.net.http.Request.readResponse(Request.java:377) at android.net.http.Connection.processRequests(Connection.java:386) at android.net.http.ConnectionThread.run(ConnectionThread.java:144)

JLK
  • 777
  • 6
  • 14

1 Answers1

1

Somewhere, someone is loading a 24 MB bitmap (Bitmap Size=24283KB). I suspect this is your problem.

If it is you that is creating the bitmaps, I would recommend reading this answer and this article.

Community
  • 1
  • 1
Error 454
  • 7,255
  • 2
  • 33
  • 48
  • Loading as in downloading correct? All of my images are included in the resources and I don't download any content from the internet. So I guess it's safe to say I need to look into the code of this third-party and see what it is they're fetching. – JLK Aug 09 '12 at 07:50
  • Correct, it looks like they're doing some kind of http activity that is slurping down a bitmap. – Error 454 Aug 09 '12 at 07:56