Does any have the issue `java.lang.RuntimeExceptio...
# compose
t
Does any have the issue
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap
after upgrade to beta06 with accompanist 0.9.0, full stacktrace in thread
c
Coil or Glide?
t
It's Glide, I'm using accompanist-glide
And it only happens on my Xiaomi Mix2S, both Nexus 6P and Pixel 3 XL does not have the issue.
c
Yeah I guessed so. Glide is extremely aggressive at recycling bitmaps. Are you using any transformations?
t
No, just standard usage of Glide like
rememberGlidePainter(request = data, fadeIn = true)
Swiching to Coil resolve the issue, seemes like it's a Glide related issue
c
I found this myself last week but thought that I had fixed it. I don’t think it is device specific, but rather a race condition.