SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

trying to use a recycled bitmap

Open mlefrapper opened this issue 12 years ago • 9 comments
trafficstars

Exception Type: java.lang.RuntimeException Reason: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@41ea06b8

CustomViewAbove.java line 817 com.slidingmenu.lib.CustomViewAbove.dispatchDraw

mlefrapper avatar May 02 '13 12:05 mlefrapper

Do you have a Test project to demonstrate this behavior?

donnfelker avatar May 06 '13 21:05 donnfelker

same problem here..

curious0ne avatar Sep 12 '13 09:09 curious0ne

same here....

helado avatar Dec 22 '13 12:12 helado

one more...

evorotnikov avatar Feb 17 '14 07:02 evorotnikov

same here....

ChanningSun avatar Aug 25 '14 03:08 ChanningSun

same here....

chaoren399 avatar Aug 26 '14 03:08 chaoren399

image is not exist of the path that you pass as a parameter. Check image path and image file on that path.

glm-mawla avatar Aug 26 '14 04:08 glm-mawla

I had the same issue and it is NOT due to sliding menu's code. It's because a bitmap referenced by your code (doesn't even have to be inside of the sliding menu) was recycled, and when your object attempts to retrieve the reference to the bitmap, it sees that it's not longer there and throws the error.

crowbarsolutions avatar Aug 27 '14 01:08 crowbarsolutions

How to solve this? EDIT: nevermind.. crowbarsolutions is right.

KunamiPT avatar Jun 05 '15 17:06 KunamiPT