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 emilianogonzalezar
, 1 year ago
Can't copy a recycled bitmap
via GitHub by TommyVisic
, 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 rini-m
, 1 year ago
Can't copy a recycled bitmap
via GitHub by Gi0rgi0s
, 1 year ago
Can't copy a recycled bitmap
via GitHub by Zspecial
, 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:239)
at android.graphics.Bitmap.copy(Bitmap.java:428)
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.cloneMetadataIfNeeded(MediaSessionCompat.java:1436)
at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.setMetadata(MediaSessionCompat.java:1450)
at android.support.v4.media.session.MediaSessionCompat.setMetadata(MediaSessionCompat.java:419)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateMediaSessionMetadata(VideoCastManager.java:2415)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.setUpMediaSession(VideoCastManager.java:2249)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateMediaSession(VideoCastManager.java:2354)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.onRemoteMediaPlayerStatusUpdated(VideoCastManager.java:2058)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.access$200(VideoCastManager.java:140)
at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager$22.onStatusUpdated(VideoCastManager.java:1795)
at com.google.android.gms.cast.RemoteMediaPlayer.onStatusUpdated(Unknown Source)
at com.google.android.gms.cast.RemoteMediaPlayer.zza(Unknown Source)
at com.google.android.gms.cast.RemoteMediaPlayer$1.onStatusUpdated(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:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:4987)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)

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.