java.lang.OutOfMemoryError: Failed to allocate a 409534333 byte allocation with 9927994 free bytes and 177MB 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

Solutions on the web

via Stack Overflow by okunato
, 11 months ago
Failed to allocate a 409534333 byte allocation with 9927994 free bytes and 177MB until OOM
via GitHub by dvdobrovolskiy
, 1 year ago
Failed to allocate a 344766614 byte allocation with 11726298 free bytes and 239MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 409534333 byte allocation with 9927994 free bytes and 177MB until OOM
at com.android.tools.fd.runtime.FileManager.readRawBytes(FileManager.java:831)
at com.android.tools.fd.runtime.FileManager.checkInbox(FileManager.java:249)
at com.android.tools.fd.runtime.BootstrapApplication.createResources(BootstrapApplication.java:126)
at com.android.tools.fd.runtime.BootstrapApplication.attachBaseContext(BootstrapApplication.java:235)
at android.app.Application.attach(Application.java:187)
at android.app.Instrumentation.newApplication(Instrumentation.java:1020)
at android.app.Instrumentation.newApplication(Instrumentation.java:1004)
at android.app.LoadedApk.makeApplication(LoadedApk.java:573)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4749)
at android.app.ActivityThread.access$1600(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)

Users with the same issue

3 times, 1 year ago

Write tip

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