java.lang.RuntimeException: An error occured while executing doInBackground()


Samebug tips

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.


,
via github.com by Unknown author

Solutions on the web

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

Solution icon of github
via GitHub by christocracy
, 10 months ago
An error occured while executing doInBackground()

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

Solution icon of github
via GitHub by lognaturel
, 5 months ago
An error occured while executing doInBackground()

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

Solution icon of github
via GitHub by zhugscn
, 6 months ago
An error occured while executing doInBackground()

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

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

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

Solution icon of github
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, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates