java.lang.RuntimeException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web93

  • via GitHub by atoone
    ,
  • via GitHub by tartina
    ,
  • Stack trace

    • 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 com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2329) 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) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:610) at dalvik.system.NativeStart.main(Native Method)

    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

    Unknown visitor
    Unknown visitorOnce,
    Agócs TamásAgócs Tamás
    4 times, last one
    Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    balajivaishnavbalajivaishnav
    7 times, last one
    1 more bugmates