android-sliding-layer-lib
android-sliding-layer-lib copied to clipboard
Canvas: trying to use a recycled bitmap android.graphics.Bitmap
Hi,
I am getting the below error.I am not able to solve it. Can anyone help me.
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap
Met the same issue.
Same issue here! But only in a virtual device with relatively low RAM! Maybe this really is a bug in this lib, cause it happens exactly when opening a slider - AND look at this: http://stackoverflow.com/a/17635220/273456 I guess within the sliding layer lib, they do a lot of actions like this as well! Could anybody please help??
One more thing to note: turning hardware acceleration off is the key! Only with hardware acceleration, the sliding lib works. Turn it off and even on my real device I get the same exception!
I have the same issue
I have the same issue Too
Alright, so with HW accel it works for all? Let's gather information about the versions where this is happening so that we can focus our tests on those and propose an alternate solution. There are many variances on how the OS enabled/disabled hardware accel based on different circumstances, especially on the transition to ICS and JB.
Sloved after adding this parameter on the manifest.xml <application android:hardwareAccelerated="true" android:largeHeap="true"> Thanks
Yeah, still would be great to avoid devs facing this issue. When it doesn't work on software we should probably force hardware.
solved it @JlUgia
by adding android:hardwareAccelerated="true"
Thanks man
And this one looks like a dupe.
not working
please give solution fast