java.lang.OutOfMemoryError: Failed to allocate a 52962812 byte allocation with 16764752 free bytes and 41MB until OOM

Stack Overflow | FredMaggiowski | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android huge JSONObject toString goes OutOfMemoryError

    Stack Overflow | 8 months ago | FredMaggiowski
    java.lang.OutOfMemoryError: Failed to allocate a 52962812 byte allocation with 16764752 free bytes and 41MB until OOM
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    OutOfMemoryError using FirebaseRecyclerViewAdapter

    Stack Overflow | 1 year ago | BGoll
    java.lang.OutOfMemoryError: Failed to allocate a 35116844 byte allocation with 16773184 free bytes and 32MB until OOM

  1. filpgame 30 times, last 2 weeks ago
  2. ajinkya_w 58 times, last 5 months ago
  3. kid 2 times, last 6 months ago
  4. mortalman7 1 times, last 8 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Failed to allocate a 52962812 byte allocation with 16764752 free bytes and 41MB until OOM

    at java.lang.StringFactory.newStringFromChars()
  2. Java RT
    StringBuilder.toString
    1. java.lang.StringFactory.newStringFromChars(Native Method)
    2. java.lang.AbstractStringBuilder.toString(AbstractStringBuilder.java:629)
    3. java.lang.StringBuilder.toString(StringBuilder.java:663)
    3 frames
  3. Android Platform
    JSONObject.toString
    1. org.json.JSONStringer.toString(JSONStringer.java:430)
    2. org.json.JSONObject.toString(JSONObject.java:690)
    2 frames
  4. it.example.sampler
    FileStoreRunnable.run
    1. it.example.sampler.controllers.network.RequestBodyEncoder.serialise(RequestBodyEncoder.java:69)
    2. it.example.sampler.controllers.network.RequestBodyEncoder.createPacket(RequestBodyEncoder.java:50)
    3. it.example.sampler.services.FileStoreRunnable.run(FileStoreRunnable.java:57)
    3 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:818)
    1 frame