java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@27625cc0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by atoone
, 1 year ago
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@27625cc0
via Stack Overflow by superuserdo
, 2 years ago
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@432bc210
via GitHub by blFeedbackBot
, 2 years ago
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@43107cf0
via GitHub by jt-gilkeson
, 2 years ago
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@20260fad
via Stack Overflow by Hilda
, 1 year ago
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@4180103
via GitHub by HildaChen
, 2 years ago
Canvas: trying to use a recycled bitmap android.graphics.Bitmap@41801038
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@27625cc0
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1084)
at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:811)
at org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay.drawMyLocation(MyLocationNewOverlay.java:259)
at org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay.draw(MyLocationNewOverlay.java:323)
at org.osmdroid.views.overlay.DefaultOverlayManager.onDraw(DefaultOverlayManager.java:134)
at org.osmdroid.views.MapView.dispatchDraw(MapView.java:1076)
at android.view.View.getDisplayList(View.java:13364)
at android.view.View.getDisplayList(View.java:13411)
at android.view.View.draw(View.java:14190)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13364)
at android.view.View.getDisplayList(View.java:13411)
at android.view.View.draw(View.java:14190)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13364)
at android.view.View.getDisplayList(View.java:13411)
at android.view.View.draw(View.java:14190)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13364)
at android.view.View.getDisplayList(View.java:13411)
at android.view.View.draw(View.java:14190)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13364)
at android.view.View.getDisplayList(View.java:13411)
at android.view.View.draw(View.java:14190)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14476)
at android.widget.FrameLayout.draw(FrameLayout.java:472)
at android.view.View.getDisplayList(View.java:13369)
at android.view.View.getDisplayList(View.java:13411)
at android.view.HardwareRenderer$GlRenderer.buildDisplayList(HardwareRenderer.java:1570)
at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1449)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2377)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2249)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1879)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:771)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:544)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:757)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:149)
at android.app.ActivityThread.main(ActivityThread.java:5045)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)

Users with the same issue

4 times, 1 year ago
3 times, 1 year ago
7 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.