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

GitHub | TMSantos | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    OutOfMemoryError crash

    GitHub | 7 months ago | TMSantos
    java.lang.RuntimeException: An error occured while executing doInBackground()
  2. 0

    GitHub comment 67#222611172

    GitHub | 10 months ago | pkirankmr
    java.lang.RuntimeException: An error occured while executing doInBackground()
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug 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
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Failed to allocate a 20457196 byte allocation with 4194208 free bytes and 13MB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    Bitmap.createBitmap
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.Bitmap.nativeCreate(Native Method)
    3. android.graphics.Bitmap.createBitmap(Bitmap.java:812)
    4. android.graphics.Bitmap.createBitmap(Bitmap.java:789)
    5. android.graphics.Bitmap.createBitmap(Bitmap.java:720)
    5 frames
  3. com.theartofdev.edmodo
    BitmapCroppingWorkerTask.doInBackground
    1. com.theartofdev.edmodo.cropper.BitmapUtils.rotateBitmapInt(BitmapUtils.java:499)
    2. com.theartofdev.edmodo.cropper.BitmapUtils.cropBitmap(BitmapUtils.java:197)
    3. com.theartofdev.edmodo.cropper.BitmapCroppingWorkerTask.doInBackground(BitmapCroppingWorkerTask.java:176)
    4. com.theartofdev.edmodo.cropper.BitmapCroppingWorkerTask.doInBackground(BitmapCroppingWorkerTask.java:25)
    4 frames
  4. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:292)
    1 frame
  5. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame