java.lang.RuntimeException

An error occured while executing doInBackground()


Samebug tips1

For most cases,recommend that you use the Glide library to fetch, decode, and display bitmaps in your app. Glide abstracts out most of the complexity in handling these and other tasks related to working with bitmaps and other images on Android.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web18915

Solution icon of coderanch
via Coderanch by Gabriela Cristian, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by himani mittal, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by maulidan abdillah, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by egbai mmumene, 7 months ago
An error occured while executing doInBackground()

Solution icon of bugzilla
An error occured while executing doInBackground()

Solution icon of github
via GitHub by galaxyfeeder
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by pkirankmr
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
An error occured while executing doInBackground()

Solution icon of github
via GitHub by milon87
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by MrAlex1598
, 1 year ago
An error occured while executing doInBackground()

Stack trace

  • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856) Caused by: java.lang.OutOfMemoryError at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:623) at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.loadBitmapFromStream(UrlImageViewHelper.java:109) at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.access$100(UrlImageViewHelper.java:27) at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.onDownloadComplete(UrlImageViewHelper.java:582) at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$3.doInBackground(UrlImageViewHelper.java:648) at com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$3.doInBackground(UrlImageViewHelper.java:645) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask.run(FutureTask.java:234) ... 3 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 9 months ago
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 months ago
2 more bugmates