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

  1. ,
    Expert tip

    Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

  2. ,

    The memory is leaking. Try to analyze the HEAP or use LeakCanacy (https://github.com/square/leakcanary) to figure out where is the exact problem.

Solutions on the web

via GitHub by galaxyfeeder
, 2 years ago
An error occured while executing doInBackground()
via GitHub by noamamiran
, 1 year ago
An error occured while executing doInBackground()
via GitHub by nirabpudasaini
, 2 years ago
An error occured while executing doInBackground()
via GitHub by blueleader07
, 2 years ago
An error occured while executing doInBackground()
java.lang.OutOfMemoryError: Failed to allocate a 37602252 byte allocation with 16776720 free bytes and 29MB until OOM	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)	at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:863)	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:839)	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:877)	at net.faraznet.provider.arrayadapters.CourierArrayAdapter$LoadImageTask.doInBackground(CourierArrayAdapter.java:99)	at net.faraznet.provider.arrayadapters.CourierArrayAdapter$LoadImageTask.doInBackground(CourierArrayAdapter.java:76)	at android.os.AsyncTask$2.call(AsyncTask.java:292)	at java.util.concurrent.FutureTask.run(FutureTask.java:237)