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


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by nbreunig3
, 5 months ago
Canvas: trying to draw too large(118692000bytes) bitmap.

Solution icon of github
via GitHub by ScreamingHawk
, 5 months ago
Canvas: trying to draw too large(xxxbytes) bitmap.

Solution icon of stackoverflow
Canvas: trying to draw too large(216090000bytes) bitmap.

Solution icon of stackoverflow
Canvas: trying to draw too large(118914624bytes) bitmap.

Solution icon of github
**Canvas: trying to draw too large(157599736bytes) bitmap.**

Solution icon of github
Canvas: trying to draw too large(132986880bytes) bitmap.

Solution icon of stackoverflow
Canvas: trying to draw too large(110327008bytes) bitmap.

Solution icon of stackoverflow
Canvas: trying to draw too large(110250000bytes) bitmap.

Solution icon of stackoverflow
via Stack Overflow by Paul
, 4 months ago
Canvas: trying to draw too large(112896000bytes) bitmap.

Solution icon of stackoverflow
Canvas: trying to draw too large(241864000bytes) bitmap.

Stack trace

java.lang.RuntimeException: Canvas: trying to draw too large(118692000bytes) bitmap.
	at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)
	at android.graphics.Canvas.drawBitmap(Canvas.java:1415)
	at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:528)
	at android.widget.ImageView.onDraw(ImageView.java:1316)
	at android.view.View.draw(View.java:17185)
	at android.view.View.updateDisplayListIfDirty(View.java:16167)
	at android.view.View.draw(View.java:16951)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3727)
	at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1230)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
	at android.view.View.draw(View.java:17188)
	at android.view.View.updateDisplayListIfDirty(View.java:16167)
	at android.view.View.draw(View.java:16951)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3727)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
	at android.view.View.updateDisplayListIfDirty(View.java:16162)
	at android.view.View.draw(View.java:16951)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3727)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
	at android.view.View.updateDisplayListIfDirty(View.java:16162)
	at android.view.View.draw(View.java:16951)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3727)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
	at android.view.View.updateDisplayListIfDirty(View.java:16162)
	at android.view.View.draw(View.java:16951)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3727)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
	at android.view.View.updateDisplayListIfDirty(View.java:16162)
	at android.view.View.draw(View.java:16951)
	at android.view.ViewGroup.drawChild(ViewGroup.java:3727)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
	at android.view.View.draw(View.java:17188)
	at com.android.internal.policy.DecorView.draw(DecorView.java:754)
	at android.view.View.updateDisplayListIfDirty(View.java:16167)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:648)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:654)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:762)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2800)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2608)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2215)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6338)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
	at android.view.Choreographer.doCallbacks(Choreographer.java:686)
	at android.view.Choreographer.doFrame(Choreographer.java:621)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6121)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

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

4 times, 1 year ago
89 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 months ago
Once, 4 months ago
1 more bugmates