java.lang.OutOfMemoryError: Failed to allocate a 37440820 byte allocation with 16777120 free bytes and 18MB until OOM

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by tom808
, 1 year ago
Failed to allocate a 37440820 byte allocation with 16777120 free bytes and 18MB until OOM
via Stack Overflow by AndroidFreek
, 2 years ago
Failed to allocate a 966540 byte allocation with 777308 free bytes and 759KB until OOM
via Stack Overflow by honey
, 2 months ago
Failed to allocate a 46633948 byte allocation with 16777120 free bytes and 39MB until OOM
via Stack Overflow by AggieDev
, 2 years ago
Failed to allocate a 58363924 byte allocation with 16777216 free bytes and 53MB until OOM
via Stack Overflow by rlebosse
, 1 year ago
Failed to allocate a 55161940 byte allocation with 16777216 free bytes and 39MB until OOM
via GitHub by zubaliy
, 10 months ago
Failed to allocate a 64 byte allocation with 3640 free bytes and 3KB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 37440820 byte allocation with 16777120 free bytes and 18MB until OOM
at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:133)
at java.lang.StringBuilder.append(StringBuilder.java:124)
at libcore.net.UriCodec.appendEncoded(UriCodec.java:119)
at libcore.net.UriCodec.encode(UriCodec.java:133)
at java.net.URLEncoder.encode(URLEncoder.java:57)
at com.amazonaws.util.HttpUtils.urlEncode(HttpUtils.java:74)
at com.amazonaws.auth.AbstractAWSSigner.getCanonicalizedQueryString(AbstractAWSSigner.java:173)
at com.amazonaws.auth.AWS3Signer.sign(AWS3Signer.java:112)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:326)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:199)
at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.invoke(AmazonSimpleEmailServiceClient.java:2630)
at uk.co.nwhub.nwtapp.services.EmailService.onHandleIntent(EmailService.java:126)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.