java.lang.IllegalStateException: Can't copy a recycled bitmap

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Gi0rgi0s
, 11 months ago
Can't copy a recycled bitmap
via GitHub by Zspecial
, 1 year ago
Can't copy a recycled bitmap
via GitHub by xtools-at
, 1 year ago
Can't copy a recycled bitmap
via GitHub by rini-m
, 1 year ago
Can't copy a recycled bitmap
via GitHub by styrken
, 1 year ago
Can't copy a recycled bitmap
via GitHub by TommyVisic
, 1 year ago
Can't copy a recycled bitmap
java.lang.IllegalStateException: Can't copy a recycled bitmap
at android.graphics.Bitmap.checkRecycled(Bitmap.java:345)
at android.graphics.Bitmap.copy(Bitmap.java:554)
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.cloneMetadataIfNeeded(MediaSessionCompat.java:1296)
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.setMetadata(MediaSessionCompat.java:1311)
at android.support.v4.media.session.MediaSessionCompat.setMetadata(MediaSessionCompat.java:404)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateMediaSessionMetadata(VideoCastManager.java:2387)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.onRemoteMediaPlayerMetadataUpdated(VideoCastManager.java:2131)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager$24.onMetadataUpdated(VideoCastManager.java:1819)
at com.google.android.gms.cast.RemoteMediaPlayer.onMetadataUpdated(Unknown Source)
at com.google.android.gms.cast.RemoteMediaPlayer.zzb(Unknown Source)
at com.google.android.gms.cast.RemoteMediaPlayer$1.onMetadataUpdated(Unknown Source)
at com.google.android.gms.cast.internal.zzm.zza(Unknown Source)
at com.google.android.gms.cast.internal.zzm.zzbZ(Unknown Source)
at com.google.android.gms.cast.RemoteMediaPlayer.onMessageReceived(Unknown Source)
at com.google.android.gms.cast.internal.zze$zzb$4.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5105)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at dalvik.system.NativeStart.main(NativeStart.java)

Users with the same issue

28 times, 1 year ago
2 times, 1 year ago
1200 times, 1 year ago
2 times, 1 year ago
24 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.