jfeinstein10 / SlidingMenu

An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
Apache License 2.0
11.08k stars 5.04k forks source link

trying to use a recycled bitmap #396

Open mlefrapper opened 11 years ago

mlefrapper commented 11 years ago

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

donnfelker commented 11 years ago

Do you have a Test project to demonstrate this behavior?

curious0ne commented 11 years ago

same problem here..

helado commented 10 years ago

same here....

evorotnikov commented 10 years ago

one more...

ChanningSun commented 10 years ago

same here....

chaoren399 commented 10 years ago

same here....

glm-mawla commented 10 years ago

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

crowbarsolutions commented 10 years ago

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.

KunamiPT commented 9 years ago

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