java.lang.RuntimeException: Canvas: trying to draw too large(110327008bytes) bitmap.

Stack Overflow | Nick Parsons | 4 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
    samebug tip
    Android has some problem with big images, so, probably, the image you're trying to use is too big for Canvas. You can either use Picasso or compress your image to reduce it's size (both pixel wise and filesize wise)
  2. 0

    Android Studio Canvas: drawing too large bitmap

    Stack Overflow | 6 months ago | Francisco
    java.lang.RuntimeException: Canvas: trying to draw too large(216090000bytes) bitmap.
  3. 0

    Canvas: trying to use a recycled bitmap

    GitHub | 10 months ago | pauliktamas
    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@342ab43
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.RuntimeException: Canvas: trying to draw too large bitmap

    Stack Overflow | 3 months ago | JeongHyeon
    java.lang.RuntimeException: Canvas: trying to draw too large(110250000bytes) bitmap.
  6. 0

    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap

    Stack Overflow | 2 months ago | M.Baraka
    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@135eeb95
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.RuntimeException

    Canvas: trying to draw too large(110327008bytes) bitmap.

    at android.view.DisplayListCanvas.throwIfCannotDraw()
  2. Android Platform
    View.draw
    1. android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)
    2. android.graphics.Canvas.drawBitmap(Canvas.java:1415)
    3. android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:545)
    4. android.view.View.getDrawableRenderNode(View.java:17314)
    5. android.view.View.drawBackground(View.java:17250)
    6. android.view.View.draw(View.java:17062)
    7. android.view.View.updateDisplayListIfDirty(View.java:16053)
    8. android.view.View.draw(View.java:16837)
    9. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
    10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
    11. android.view.View.updateDisplayListIfDirty(View.java:16048)
    12. android.view.View.draw(View.java:16837)
    13. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
    14. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
    15. android.view.View.updateDisplayListIfDirty(View.java:16048)
    16. android.view.View.draw(View.java:16837)
    17. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
    18. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
    19. android.view.View.updateDisplayListIfDirty(View.java:16048)
    20. android.view.View.draw(View.java:16837)
    21. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
    22. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
    23. android.view.View.updateDisplayListIfDirty(View.java:16048)
    24. android.view.View.draw(View.java:16837)
    25. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
    26. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
    27. android.view.View.draw(View.java:17074)
    27 frames
  3. Android
    DecorView.draw
    1. com.android.internal.policy.DecorView.draw(DecorView.java:751)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.updateDisplayListIfDirty(View.java:16053)
    2. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:656)
    3. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:662)
    4. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:770)
    5. android.view.ViewRootImpl.draw(ViewRootImpl.java:2796)
    6. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2604)
    7. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2211)
    8. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
    9. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
    10. android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
    11. android.view.Choreographer.doCallbacks(Choreographer.java:683)
    12. android.view.Choreographer.doFrame(Choreographer.java:619)
    13. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
    14. android.os.Handler.handleCallback(Handler.java:751)
    15. android.os.Handler.dispatchMessage(Handler.java:95)
    16. android.os.Looper.loop(Looper.java:154)
    17. android.app.ActivityThread.main(ActivityThread.java:6077)
    17 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
    2 frames