java.lang.RuntimeException

An error occured while executing doInBackground()

Samebug tips2

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

This was issue #159 in Fresco, and was fixed recently, in v1.3.0.

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

Solutions on the web18652

  • via JIRA by Dong Jun, 10 months ago
    An error occured while executing doInBackground()
  • via JIRA by Dor Druker, 1 year ago
    An error occured while executing doInBackground()
  • via JIRA by Gao Dexiang, 1 year ago
    An error occured while executing doInBackground()
  • Stack trace

    • java.lang.RuntimeException: An error occured while executing doInBackground() at jc.done(SourceFile:256) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:903) at android.graphics.Bitmap.createBitmap(Bitmap.java:880) at android.graphics.Bitmap.createBitmap(Bitmap.java:847) at rv.Since(SourceFile:140) at arm.Since(SourceFile:265) at arm.and(SourceFile:246) at arm.Since(SourceFile:60) at arp.version(SourceFile:374) at jm.Since(SourceFile:21) at jm.The(SourceFile:1) at jb.call(SourceFile:243) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 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

    Once, 11 months ago
    3 times, 1 year ago
    7 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    11 more bugmates