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

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
    The image you're trying to use is too big for Canvas, try compressing it or reducing resolution so the size becomes smaller.
  2. 1

    Force close when trying to set image resoure using if statements

    Stack Overflow | 5 months ago | Aniello Scartozzi
    java.lang.RuntimeException: Canvas: trying to draw too large(241864000bytes) bitmap.
  3. 0

    Android activity error. Click button and "application keeps stopping"

    Stack Overflow | 2 months ago | james.d_12
    java.lang.RuntimeException: Canvas: trying to draw too large(121480800bytes) bitmap.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Attempting to change views on click of button

    Stack Overflow | 2 months ago | Nick Parsons
    java.lang.RuntimeException: Canvas: trying to draw too large(110327008bytes) bitmap.
  6. 0

    Canvas: trying to use a recycled bitmap android.graphics.Bitmap

    Stack Overflow | 6 years ago | shiami
    java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@4384c218

    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(241864000bytes) 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.widget.ImageView.onDraw(ImageView.java:1286)
      5. android.view.View.draw(View.java:17068)
      6. android.view.View.updateDisplayListIfDirty(View.java:16050)
      7. android.view.View.draw(View.java:16834)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      9. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      10. android.view.View.updateDisplayListIfDirty(View.java:16045)
      11. android.view.View.draw(View.java:16834)
      12. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      13. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      14. android.view.View.updateDisplayListIfDirty(View.java:16045)
      15. android.view.View.draw(View.java:16834)
      16. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      17. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      18. android.view.View.updateDisplayListIfDirty(View.java:16045)
      19. android.view.View.draw(View.java:16834)
      20. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      21. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      22. android.view.View.updateDisplayListIfDirty(View.java:16045)
      23. android.view.View.draw(View.java:16834)
      24. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      25. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      26. android.view.View.updateDisplayListIfDirty(View.java:16045)
      27. android.view.View.draw(View.java:16834)
      28. android.view.ViewGroup.drawChild(ViewGroup.java:3764)
      29. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)
      30. android.view.View.draw(View.java:17071)
      30 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:16050)
      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